Using Ceph for Glance with RDO
Configuring Glance
On the RDO node, configure the Glance API configuration file. The default configuration file has commented out sections for Ceph, which you can uncomment and configure.
-
As
root
, edit the/etc/glance/glance-api.conf
file. -
Change
default_store=file
todefault_store=rbd
. -
Enable
rbd_store_user
and set the user name toimages
(corresponds to userclient.images
). -
Enable
rbd_store_pool
and set the pool name toimages
(corresponds to the poolimages
). -
Enable
show_image_direct_url
and set the value toTrue
. -
Enable
rbd_store_ceph_conf
and leave the default Ceph configuration file path unchanged. -
Enable
rbd_store_chunk_size
and set the value to8
.
When you are done, the configuration (without comments) should look something like this:
default_store=rbd
rbd_store_user=images
rbd_store_pool=images
show_image_direct_url=True
rbd_store_ceph_conf=/etc/ceph/ceph.conf
rbd_store_chunk_size=8
Restart glance to ensure that the configuration changes take effect.
sudo service openstack-glance-api restart