Configuring Glance with the Ceph backend
Glance can use the existing Ceph pools as a datastore to store virtual machine images. In this recipe, we will configure the Glance backend driver for the Ceph RADOS Block Device.
Getting ready
Before configuring Glance to use the Ceph RBD 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. We also need to make sure that a Ceph volume with a corresponding pool for glance was created, and the ceph.conf
and key.ring
files were preconfigured.
The CephFS Python
package is also required to use the Ceph RBD backend driver:
[root@controller ~]# yum install -y python-cephfs
How to do it...
Follow these steps to configure Glance with the Ceph storage backend:
Using the
openstack-config
command, edit theglance-api
configuration file, and under the default section, setdefault_store
tordb
:[root@controller ~]# openstack-config ...