Actions
Bug #47665
closedrbd-nbd: unmap ignores namespace when searching device by image spec
% Done:
0%
Source:
Tags:
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
When unmapping an image by the image spec, the rbd-nbd ignores the namespace when searching for the nbd device, which may result in unmapping an image from a wrong namespace (if you have a chance of mapping images with the same name but from different namespaces.
% rbd-nbd map rbd/test /dev/nbd0 % rbd-nbd map rbd/ns/test /dev/nbd1 % rbd-nbd list-mapped id pool namespace image snap device 6327 rbd test - /dev/nbd0 6365 rbd ns test - /dev/nbd1 % rbd-nbd unmap rbd/ns/test % rbd-nbd list-mapped id pool namespace image snap device 6365 rbd ns test - /dev/nbd1
Actions