Project

General

Profile

Bug #18884

systemctl stop rbdmap unmaps all rbds and not just the ones in /etc/ceph/rbdmap

Added by David Disseldorp about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Low
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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.


Related issues

Copied to rbd - Backport #19357: jewel: systemctl stop rbdmap unmaps all rbds and not just the ones in /etc/ceph/rbdmap Resolved

History

#1 Updated by David Disseldorp about 7 years 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.

#2 Updated by Jason Dillaman about 7 years ago

  • Status changed from 12 to Resolved

#3 Updated by Nathan Cutler about 7 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to jewel

#4 Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #19357: jewel: systemctl stop rbdmap unmaps all rbds and not just the ones in /etc/ceph/rbdmap added

#6 Updated by Nathan Cutler almost 7 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF