No way to specify a common volume_backend_name across multiple backends

Bug #1884511 reported by Nobuto Murata on 2020-06-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack cinder-ceph charm
Undecided
Nobuto Murata

Bug Description

OpenStack actually allows setting the same volume_backend_name across multiple storage backends.
https://docs.openstack.org/cinder/ussuri/admin/blockstorage-multi-backend.html#enable-multiple-storage-back-ends

However, the charm takes the approach to set it from the application name in Juju. So at this moment, the same name for volume_backend_name cannot be set since Juju doesn't allow the same application in the model. Would be nice to pass an arbitrary volume_backend_name through a charm config.

[cinder-ceph-c1]
volume_backend_name = cinder-ceph-c1
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = cinder-ceph-c1
rbd_user = cinder-ceph-c1
rbd_secret_uuid = b0ff5b30-9b5f-48b0-8827-750924276a19
rbd_ceph_conf = /var/lib/charm/cinder-ceph-c1/ceph.conf
report_discard_supported = True
rbd_exclusive_cinder_pool = True
rbd_flatten_volume_from_snapshot = False

[cinder-ceph-c2]
volume_backend_name = cinder-ceph-c2
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = cinder-ceph-c2
rbd_user = cinder-ceph-c2
rbd_secret_uuid = 0afd2211-14ae-4d65-99c9-659a3f0f7377
rbd_ceph_conf = /var/lib/charm/cinder-ceph-c2/ceph.conf
report_discard_supported = True
rbd_exclusive_cinder_pool = True
rbd_flatten_volume_from_snapshot = False

Nobuto Murata (nobuto) on 2020-06-22
Changed in charm-cinder-ceph:
assignee: nobody → Nobuto Murata (nobuto)
assignee: Nobuto Murata (nobuto) → nobody
Nobuto Murata (nobuto) on 2020-06-23
Changed in charm-cinder-ceph:
assignee: nobody → Nobuto Murata (nobuto)

Fix proposed to branch: master
Review: https://review.opendev.org/737506

Changed in charm-cinder-ceph:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers