filesystem_store_datadir should not be set when external Ceph is used

When an external Ceph cluster is used, the "filesystem_store_datadir"
option is set in the "glance-api.conf" configuration file.

It should not, it's because of this condition:

  {% elif enable_ceph | bool and glance_backend_ceph | bool %}

When external Ceph cluster is used "enable_ceph" is false and
"glance_backend_ceph" is true.

glance_backend_ceph variable should be enought for this condition.

Change-Id: I2a2ab420727888cfd9fcbc4bd30a08410163b36e
Closes-Bug: #1718728
This commit is contained in:
goldyfruit 2017-09-21 12:39:48 -04:00
parent e9626f1f07
commit c20cf01872

View File

@ -43,7 +43,7 @@ flavor = keystone
[glance_store] [glance_store]
{% if glance_backend_vmware | bool %} {% if glance_backend_vmware | bool %}
default_store = vsphere default_store = vsphere
{% elif enable_ceph | bool and glance_backend_ceph | bool %} {% elif glance_backend_ceph | bool %}
default_store = rbd default_store = rbd
{% elif enable_swift | bool and glance_backend_swift | bool %} {% elif enable_swift | bool and glance_backend_swift | bool %}
default_store = swift+http default_store = swift+http