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:

  1. Using the openstack-config command, edit the glance-api configuration file, and under the default section, set default_store to file as follows:
    [root@controller ~]# openstack-config --set /etc/glance/glance-api.conf default default_store file ...

Get Production Ready OpenStack - Recipes for Successful Environments now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.