If Swift Object Storage is in place, Glance can use the existing Swift cluster as a datastore to store virtual machine images. In this recipe, we will configure the Glance backend driver for swift object storage.
Before configuring Glance Swift backend, we need to make sure that the Database, message broker and Keystone are set for Glance, and both glance-api.conf
and glance-registry.conf
are configured correctly to use them.
Follow these steps to configure Glance with the Swift backend:
Using the
openstack-config
command, edit theglance-api
configuration file which is under default section and setdefault_store
to swift:default_store = swift
Make sure that the stores option includes swift store under
glance_store
section as follows...