[PVE-User] Destroying VM (sometimes) does not delete HDD

Brian :: bc at iptel.co
Thu Feb 2 12:22:22 CET 2017


Would make sense to have TASK WARN maybe - that would certainly make
you check backup the output. Or perhaps try to delete the disk first,
if that fails then do nothing else in the task.

Are you using KRBD? Its usually the RBD being mounted with the kernel
module on a different box than the one you are deleting on that causes
this I think...




On Thu, Feb 2, 2017 at 9:55 AM, Florent B <florent at coppint.com> wrote:
> Hi everyone,
>
> On a testing cluster, I have a problem when I destroy some VM, sometimes
> the task is "OK" but VM disk is not removed on RBD.
>
> See the task log :
>
> Removing all snapshots: 50% complete...2017-02-02 10:51:44.123621
> 7fa1a3fff700 -1 librbd::Operations: update notification timed-out
> 2017-02-02 10:51:55.058198 7fa1a3fff700 -1 librbd::Operations: update
> notification timed-out
> Removing all snapshots: 100% complete...
> Removing all snapshots: 100% complete...done.
> image has watchers - not removing
> Removing image: 0% complete...failed.
> rbd: error: image still has watchers
> Could not remove disk 'PVE01-RBD01:vm-107-disk-1', check manually: rbd
> rm 'vm-107-disk-1' error: rbd: error: image still has watchers
> image has watchers - not removing
> Removing image: 0% complete...failed.
> rbd: error: image still has watchers
> rbd rm 'vm-107-disk-1' error: rbd: error: image still has watchers
> TASK OK
>
>
> Maybe task should not be "OK" if disk is not removed, no ? And it
> deletes the VM config, it is deleted from PVE view.
>
> I'm running PVE 4.4-12/e71b7a74
>
> Thank you.
>
> Flo
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user



More information about the pve-user mailing list