Configuring Glance with the local file backend
In this recipe, we will configure Glance backend to use local storage driver to store image files on the local disk.
Getting ready
Before getting started with configuring the Glance backend driver, we need to make sure that the database, message broker, and Keystone are set for Glance, and both glance-api.conf
and glance-registory.conf
are configured correctly to use them.
How to do it...
Perform the following steps to configure Glance with the local file backend:
Using the
openstack-config
command, edit theglance-api
configuration file, and under the default section, setdefault_store
to file as follows:[root@controller ~]# openstack-config --set /etc/glance/glance-api.conf default default_store file
Make sure that stores option includes
filesystem store
, underglance_store
section:[root@controller ~]# openstack-config --set /etc/glance/glance-api.conf glance_store stores glance.store.filesystem.Store
Note
Note: if you plan to use multiple back...