OpenStack Glance

Post on 04-Aug-2015

111 views 1 download

Tags:

transcript

OPENSTACK GLANCEOpenStack STL Meetup

5/21/2015

2

OpenStack Glance

• OpenStack Glance introduction• Releases• Software Architecture• Deployment architecture• Using OpenStack Glance

3

OpenStack Glance• Glance image services include discovering, registering, and retrieving virtual machine 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 a variety of locations from simple filesystems to object-storage systems like the OpenStack Swift project.

4

OpenStack Glance Components• glance-api

• Accepts Image API calls for image discovery, retrieval, and storage.

• glance-registry• Stores, processes, and retrieves metadata about images. Metadata

includes items such as size and type.

• glance database• Stores image metadata and you can choose your database

depending on your preference. Most deployments use MySQL or SQLite.

• Storage repository for image files

5

OpenStack Glance - Supported Disk and Container formats• Disk Formats

• raw (unstructured)• qcow2 (Qemu)• iso• vhd, vmdk, vdi (Hyper-V, Esxi, Virtual Box)• aki, ari, ami (amazon images)

• Container Formats• bare• OVF• aki, ari, ami

6

OpenStack Glance Architecture

7

OpenStack Glance Image Status Flow

8

OpenStack Glance Images & Instances

9

OpenStack Glance Image Cache• By default, image caching is disabled.

• The Glance API server may be configured to have an optional local image cache. A local image cache stores a copy of image files, essentially enabling multiple API servers to serve the same image file, resulting in an increase in scalability due to an increased number of endpoints serving an image file.

10

OpenStack Glance - Keystone Authentication

• [filter:authtoken]• paste.filter_factory = keystonemiddleware.auth_token:filter_factory

• identity_uri = http://127.0.0.1:35357• admin_user = glance_admin• admin_tenant_name = service_admins• admin_password = password1234

11

OpenStack Glance Storage Backend• There are a number of configuration options in Glance

that control how Glance stores disk images.

• glance-api.conf config file

• Available options for this option are (file, swift, s3, rbd, sheepdog, cinder or vsphere).

12

OpenStack Glance vSphere Backend

13

Using OpenStack Glance

$ qemu-img create -f qcow2 /data/centos-6.4.qcow2 10G

$ glance image-create --name centos64-image --disk-format=qcow2 \ --container-format=bare --is-public=True –file=/data/centos-6.4.qcow2

14

OpenStack Glance – Image updates• OpenStack Linux image requirements

• http://docs.openstack.org/image-guide/content/ch_openstack_images.html

• Tools for manipulating disk files• guestfish• Libfuestfs

• Tools for creating images• Diskimage-builder• Oz• Packer

15

OpenStack Glance Contributors

16

OpenStack Glance Kilo Release• Ability to deactivate an image. • Basic support for Image conversion during the import

process of an Image• Images v2 API supports new sorting syntax including

ability to specify the sort dir for each key.• Multiple datastore support for VMware Storage driver.• Glance Swift Store to use Multiple Containers for Storing

Images.

17

Q & A

• Thanks to our Sponsors (Cisco)