Support cinder backend for glance

Change-Id: I32de4c37f531a3d22bf80e1eca6635631e489842
Closes-Bug: #1702842
This commit is contained in:
Jeffrey Zhang 2017-07-07 16:56:10 +08:00
parent 8bcbf493f1
commit a6831e945f
2 changed files with 8 additions and 1 deletions

View File

@ -118,6 +118,7 @@ rados_connect_timeout = 5
rbd_user = cinder
rbd_secret_uuid = {{ cinder_rbd_secret_uuid }}
report_discard_supported = True
image_upload_use_cinder_backend = True
{% endif %}
{% if enable_cinder_backend_nfs | bool %}

View File

@ -62,10 +62,16 @@ glance_api_image_full: "{{ glance_api_image }}:{{ glance_api_tag }}"
# Glance
####################
glance_backends:
- name: "rbd,http"
- name: file
enabled: true
- name: http
enabled: true
- name: "rbd"
enabled: "{{ enable_ceph | bool and glance_backend_ceph | bool }}"
- name: "vmware"
enabled: "{{ glance_backend_vmware | bool }}"
- name: cinder
enabled: "{{ enable_cinder | bool }}"
glance_store_backends: "{{ glance_backends|selectattr('enabled', 'equalto', true)|list }}"