systemctl stop rbdmap unmaps all rbds and not just the ones in /etc/ceph/rbdmap
Copy of downstream bug report:
When stopping the service rbdmap it unmaps ALL mapped RBDs instead just unmapping the ones configured in /etc/ceph/rbdmap.
Expectation is that starting the service maps and mounts only the ones listed in /etc/ceph/rbdmap and stopping the service unmounts and unmaps the ones configured.
Unfortunately it unmounts and unmaps also all other RBDs that were manually mapped and mounted and due to that can cause service interruption.
#1 Updated by David Disseldorp about 1 year ago
I have a fix which uses an RBDMAP_UNMAP_ALL parameter in /etc/sysconfig/ceph to control whether all RBD images (if "yes, the default), or only images listed in /etc/ceph/rbdmap should be unmapped.
I'm unsure whether this makes sense, or whether I should just drop the unmap-all behaviour completely, and always consult the /etc/ceph/rbdmap list during unmap. Will ask for feedback in the upstream PR.