Skip to content

Commit

Permalink
cinder-volume: rbd driver set backend_host value
Browse files Browse the repository at this point in the history
Closes-Bug #1807384

Change-Id: I59d7dd0c3ab9a8ae68dc8438866b158abfbad9a9
  • Loading branch information
jlalford committed Dec 7, 2018
1 parent 89c7b4e commit 8b86eb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/cinder.conf.j2
Expand Up @@ -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 %}

Expand Down

0 comments on commit 8b86eb7

Please sign in to comment.