8 Questions about OpenStack Image Service (Glance)

I'm studying for the Mirantis OpenStack Cloud Certification exam.  There's no official training material for Glance yet (that I can find), so I'm writing my own questions based on what I've read.

Glance diagram ( from ilearnstack.com )

1. What is the default storage backend for the OpenStack Image Service (Glance)?

  • The default storage backend is "file".  If you want to configure it to use something else (swift, s3, rbd, sheepdog, cinder, or vsphere), edit the glance-api.conf file in the [glance_store] section.

2. How do you add an image to Glance?

  • glance image-create --name test --min-disk 1 --min-ram 768 --file \ centos-6.5-20140117.0.x86_64.qcow2 --is-public True --property net_model=e1000 --property \ disk_bus=ide --disk-format=qcow2 --container-format ovf --progress

3. How do you get a list of images?

  • glance image-list

4. How are images uniquely identified?

  • By way of a URI that matches the following signature: <Glance Server Location>/v1/images/<UUID>

5. What disk formats are allowed?

  • raw - unstructured disk image format
  • vhd - used by virtual machine monitors from VMWare, Xen, Microsoft, VirtualBox, and others
  • vmdk - supported by many common virtual machine monitors
  • vdi - supported by VirtualBox virtual machine monitor and the QEMU emulator
  • iso - An archive format for the data contents of an optical disc (e.g. CDROM).
  • qcow2 - A disk format supported by the QEMU emulator that can expand dynamically and supports Copy on Write
  • aki - This indicates what is stored in Glance is an Amazon kernel image
  • ari - This indicates what is stored in Glance is an Amazon ramdisk image
  • ami - This indicates what is stored in Glance is an Amazon machine image
6. Where is the Glance API server config file most commonly located?

  • /etc/glance/glance-api.conf

7. Where is the Glance Registry server config file most commonly located?

  • /etc/glance/glance-registry.conf

8. How do you configure SSL support in Glance?

  • cert_file=/path/to/file.crt
  • key_file=/path/to/file.key
  • ca_file=/path/to/ca.bundle

You can put the above options options in the glance-api.conf and glance-registry.conf files, under the [DEFAULT] section. They enable startup and binding behaviour for the API and registry servers, respectively.


Ref: http://docs.openstack.org/developer/glance/
Ref: https://www.mirantis.com/blog/advanced-examples-openstack-image-service-glance-usage/


No comments:

Post a Comment