wetopi / docker-volume-rbd

Docker Engine managed plugin to manage RBD volumes.
MIT License
69 stars 18 forks source link

Support for rbd namespaces #19

Closed fflorens closed 6 months ago

fflorens commented 4 years ago

This patchs adds the necessary bits to enable rbd namespaces while not breaking the behavior for non namespace configurations. When creating a token scopped for a namespace, you will need to also give the token the rights to read the rbd_info in the default namespace, or else you will be unable to create volumes (while mapping/unmapping and removing works)

Signed-off-by: Florian Florensa fflorensa@online.net

fflorens commented 4 years ago

Regarding the peculiarity of adding the capabilities with the allow r pool rbd object_prefix rbd_info I am looking into it to create a patch against ceph so that a simple profile rbd pool=rbd namespace=docker-rbd works as expected and merge it upstream

fflorens commented 4 years ago

btw, https://github.com/ceph/ceph/pull/35699 has been merged, so the allow r pool rbd object_prefix rbd_info will not be needed after the next release :)