Allow libvirt rbd params to be independent of cinder
Removed dependency for ``cinder_backends_rbd_inuse`` in nova.conf when setting ``rbd_user`` and ``rbd_secret_uuid`` variables. Cinder delivers all necessary values via RPC when attaching the volume, so those variables are only necessary for ephemeral disks stored in Ceph. These variables are required to be set up on cinder-volume side under backend section. Change-Id: If505dc58b4adb46e08230b0482d48d8898529460 Closes-Bug: #1673570
This commit is contained in:
parent
335eb7912a
commit
402771006d
@ -0,0 +1,8 @@
|
||||
---
|
||||
features:
|
||||
- Removed dependency for ``cinder_backends_rbd_inuse`` in nova.conf
|
||||
when setting ``rbd_user`` and ``rbd_secret_uuid`` variables.
|
||||
Cinder delivers all necessary values via RPC when attaching the
|
||||
volume, so those variables are only necessary for ephemeral
|
||||
disks stored in Ceph. These variables are required to be set up
|
||||
on cinder-volume side under backend section.
|
@ -264,12 +264,10 @@ cpu_mode = {{ nova_cpu_mode }}
|
||||
virt_type = {{ nova_virt_type }}
|
||||
remove_unused_resized_minimum_age_seconds = {{ nova_remove_unused_resized_minimum_age_seconds }}
|
||||
|
||||
{% if cinder_backends_rbd_inuse|bool or nova_libvirt_images_rbd_pool is defined %}
|
||||
rbd_user = {{ nova_ceph_client }}
|
||||
rbd_secret_uuid = {{ nova_ceph_client_uuid }}
|
||||
{% endif %}
|
||||
{% if nova_libvirt_images_rbd_pool is defined %}
|
||||
# ceph rbd support
|
||||
rbd_user = {{ nova_ceph_client }}
|
||||
rbd_secret_uuid = {{ nova_ceph_client_uuid }}
|
||||
images_type = rbd
|
||||
images_rbd_pool = {{ nova_libvirt_images_rbd_pool }}
|
||||
images_rbd_ceph_conf = /etc/ceph/ceph.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user