openstack glance

17
OPENSTACK GLANCE OpenStack STL Meetup 5/21/2015

Upload: openstackstl

Post on 04-Aug-2015

111 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: OpenStack Glance

OPENSTACK GLANCEOpenStack STL Meetup

5/21/2015

Page 2: OpenStack Glance

2

OpenStack Glance

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

Page 3: 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.

Page 4: OpenStack Glance

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

Page 5: OpenStack Glance

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

Page 6: OpenStack Glance

6

OpenStack Glance Architecture

Page 7: OpenStack Glance

7

OpenStack Glance Image Status Flow

Page 8: OpenStack Glance

8

OpenStack Glance Images & Instances

Page 9: OpenStack Glance

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.

Page 10: OpenStack Glance

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

Page 11: OpenStack Glance

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).

Page 12: OpenStack Glance

12

OpenStack Glance vSphere Backend

Page 13: OpenStack Glance

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

Page 14: OpenStack Glance

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

Page 15: OpenStack Glance

15

OpenStack Glance Contributors

Page 16: OpenStack Glance

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.

Page 17: OpenStack Glance

17

Q & A

• Thanks to our Sponsors (Cisco)