Fix glance configuration when using external ceph

When using external ceph, enable_ceph=no and glance_backend_ceph=yes,
glance.conf should enable rbd store.

Change-Id: Ia09cd57c829b00f28674cddf44fb55583e193d0f
This commit is contained in:
Jeffrey Zhang 2018-12-05 11:59:42 +08:00
parent 29ad317faa
commit 6f020a0483
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ glance_backends:
- name: http
enabled: true
- name: "rbd"
enabled: "{{ enable_ceph | bool and glance_backend_ceph | bool }}"
enabled: "{{ glance_backend_ceph | bool }}"
- name: "vmware"
enabled: "{{ glance_backend_vmware | bool }}"
- name: cinder

View File

@ -56,7 +56,7 @@ filesystem_store_datadir = /var/lib/glance/images/
stores = {{ glance_store_backends|map(attribute='name')|join(',') }}
{% endif %}
{% if enable_ceph | bool and glance_backend_ceph | bool %}
{% if glance_backend_ceph | bool %}
rbd_store_user = glance
rbd_store_pool = {{ ceph_glance_pool_name }}
rbd_store_chunk_size = 8