cinder-volume: rbd driver set backend_host value

Closes-Bug #1807384

Change-Id: I59d7dd0c3ab9a8ae68dc8438866b158abfbad9a9
This commit is contained in:
Justin Alford 2018-12-07 06:36:23 -07:00
parent 89c7b4eee4
commit 8b86eb7a9d
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ enabled_backends={% for backend in cinder_backends|dictsort %}{{ backend.0 }}{%
{% for backend_section in cinder_backends|dictsort %}
[{{ backend_section.0 }}]
{% for key, value in (backend_section.1 | dictsort) if key not in ['extra_volume_types', 'shares'] %}
{% if key == "volume_driver" and value == "cinder.volume.drivers.rbd.RBDDriver" %}
backend_host="rbd:volumes"
{% endif %}
{{ key }}={{ value }}
{% endfor %}