openstack glance

15
Openstack Glance

Upload: shameem-farhath

Post on 19-Feb-2017

54 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Openstack glance

Openstack Glance

Page 2: Openstack glance

Openstack GlanceGlance image service include discovering, registering and retrieving

virtual images. Glance has a RESTful API that allows querying of VM image metadata as well as retrieval of the actual image.

VM images made available through glance can be stored in variety of locations from simple file system to object storage systems.

Page 3: Openstack glance

Glance Components

rbdswift

file system s3

Page 4: Openstack glance

Glance Components

Glance-api: Accepts image API calls for image discovery, retrieval and storage.

Glance-registry: Stores, processes and retrieve metadata about images.

Glance database: Stores image metadata and we can choose our database depending on preference. Most deployments use MySQL or SQLite.

Glance store: Glance supports normal file systems, RADOS Block Devices, Amazon S3, Swift.

Page 5: Openstack glance

Glance Architecture

Page 6: Openstack glance

Glance FormatsDisk Formats

-raw (unstructured)

-qcow2 (Qemu)

-iso (optical)

-vhd, vmdk, vdi (Hyper-V, Esxi, Virtualbox)

-aki, ari, ami (amazon images)

Page 7: Openstack glance

Glance FormatsContainer Formats

-bare

-OVF

-aki, ari, ami

Page 8: Openstack glance

$ glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img \ --disk-format qcow2 --container-format bare --visibility public --progress

Progress : Show upload progress bar.

Page 9: Openstack glance

[[=============================>] 100%+-----------------------------+-----------------------------------------------------------+| Property | Value

|+-----------------------------+-----------------------------------------------------------+| checksum | 133eae9fb1c98f45894a4e60d8736619 || container_format | bare || created_at | 2015-03-26T16:52:10Z || disk_format | qcow2

|| id | 38047887-61a7-41ea-9b49-27987d5e8bb9 || min_disk | 0

|| min_ram | 0

|| name | cirros-0.3.4-x86_64 || owner | ae7a98326b9c455588edd2656d723b9d || protected | False

|| size | 13200896

|| status | active

|| tags | [ ]

|| updated_at | 2015-03-26T16:52:10Z || virtual_size | None

|| visibility | public

|+----------------------------+------------------------------------------------------------+

Page 10: Openstack glance

Glance status flow

Page 11: Openstack glance

# glance image-list+--------------------------------------------------------------+---------------------------+| ID | Name |+--------------------------------------------------------------+---------------------------+| 38047887-61a7-41ea-9b49-27987d5e8bb9 | cirros-0.3.4-x86_64 |+--------------------------------------+-----------------------+---------------------------+

Page 12: Openstack glance

Glance Configuration Files

glance-api.conf : Configuration file for image service API.

glance-registry.conf : Configuration file for image service registry, which stores the metadata about images.

glance-scrubber.conf : Utility for the image service that cleans up images that have been deleted.

policy.json : Additional access control that apply to image service.

Page 13: Openstack glance

Openstack image & instance

Page 14: Openstack glance

Glance commands

# glance image-list

# glance image-show <image-id>

# glance image-delete <image-id>

Page 15: Openstack glance

THANKS