From 2352f99863ef1e35e47a354ac359bb873fb83c22 Mon Sep 17 00:00:00 2001
From: Jeffrey Zhang <zhang.lei.fly@gmail.com>
Date: Fri, 21 Jul 2017 16:25:07 +0800
Subject: [PATCH] Add default volume_backend_name for rbd driver in cinder
 volume

volume_backend_name is required when using volume type.

Change-Id: Idab2ab98dea4940ba9404b219dbed935db0d51ed
Closes-Bug: #1705657
---
 ansible/roles/cinder/templates/cinder.conf.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2
index 9862eaf618..90837a079b 100644
--- a/ansible/roles/cinder/templates/cinder.conf.j2
+++ b/ansible/roles/cinder/templates/cinder.conf.j2
@@ -104,6 +104,7 @@ iscsi_protocol = iscsi
 {% if enable_ceph | bool and cinder_backend_ceph | bool %}
 [rbd-1]
 volume_driver = cinder.volume.drivers.rbd.RBDDriver
+volume_backend_name = rbd-1
 rbd_pool = {{ ceph_cinder_pool_name }}
 rbd_ceph_conf = /etc/ceph/ceph.conf
 rbd_flatten_volume_from_snapshot = false