]> git.proxmox.com Git - pve-storage.git/commit
rbd: unmap volume after rename
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 28 Apr 2022 08:47:18 +0000 (10:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Apr 2022 11:44:21 +0000 (13:44 +0200)
commit959471784834e6015f2c8edd50a642a87f2528a6
treef3670cc715c23eea38cca6f497f05f45a24db750
parentcc682faafc88a6b76d9c97d65b59fc994e404353
rbd: unmap volume after rename

When krbd is used, subsequent removal after an an operation
involving a rename could fail with
> librbd::image::PreRemoveRequest: 0x559b7506a470 \
> check_image_watchers: image has watchers - not removing
because the old mapping was still present.

For both operations with a rename, the owning guest should be offline,
but even if it weren't, unmap simply fails when the volume is in-use.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/RBDPlugin.pm