[pve-devel] bug ? vmstate state snapshot file not closed on cancel

Alexandre DERUMIER aderumier at odiso.com
Wed Nov 19 14:27:43 CET 2014


I have notice with rbd, that if we cancel a running snapshot with vmstate,
It seem that the vmstate file is not closed,
so we can't remove it with rbd.
(Not sure about the behaviour without other storage, but it seem to be wrong anyway)

I have check inside internal-snapshot-async.patch, I don't see any bdrv_close anywhere





#qm snapshot 100 snap1 --vmstate

-->abort here

^Csnapshot create failed: starting cleanup
Removing all snapshots: 100% complete...done.
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
rbd: error: image still has watchers
image has watchers - not removing
Removing image: 0% complete...failed.
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-100-state-snap2' error: rbd: error: image still has watchers
received interrupt



More information about the pve-devel mailing list