From 6495419a9f6b617428e6dd25eb3102309fdcd146 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 24 Apr 2020 18:30:25 +0300 Subject: [PATCH] Fix glance stores Patch [1] brought a bug to glance configuration due to which glance-api wasn't brought up. The issue was in the multiple backends issue which require each backend to be specified in their own section.[2] [1] https://review.opendev.org/#/c/718513/2 [2] https://docs.openstack.org/glance/train/admin/multistores.html Change-Id: If0c06a5b727c4f0c3e5abf36bd6d2434f09b5857 Related-Bug: #1846052 --- templates/glance-api.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/glance-api.conf.j2 b/templates/glance-api.conf.j2 index 92fc7bd8..f644e3c3 100644 --- a/templates/glance-api.conf.j2 +++ b/templates/glance-api.conf.j2 @@ -85,10 +85,12 @@ flavor = {{ glance_flavor }} default_backend = {{ glance_default_store }} {% if 'file' in glance_available_stores %} +[file] filesystem_store_datadir = {{ glance_system_user_home }}/{{ glance_nfs_local_directory }}/ {% endif %} {% if 'swift' in glance_available_stores %} +[swift] swift_store_config_file = {{ glance_etc_dir }}/glance-swift-store.conf default_swift_reference = swift1 swift_store_auth_insecure = {{ glance_swift_store_auth_insecure | bool }} @@ -102,6 +104,7 @@ swift_store_endpoint_type = {{ glance_swift_store_endpoint_type }} {% endif %} {% if 'rbd' in glance_available_stores %} +[rbd] rbd_store_pool = {{ glance_rbd_store_pool }} rbd_store_user = {{ glance_rbd_store_user }} rbd_store_ceph_conf = /etc/ceph/ceph.conf