Red Hat Bugzilla – Bug 981460
libvirt does not check for existing snapshots while deleting disk image
Last modified: 2016-04-09 19:59:03 EDT
Description of problem:
Snapshot's supporting disk image may be deleted through libvirt with no warning.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a disk image, set up any operating system.
2. Make a snapshot of this image and boot from the snapshot.
3. Delete the suporting image through virt-manager, and be left hanging.
The snapshot's supporting image is deleted, no questions asked
Some warning, maybe a complete denial to delete image while snapshot exists.
Sorry this didn't receive a timely response. Deleting disks through virt-manager uses libvirt's storage APIs which I don't think will grow any awareness about if they contain snapshots, or say if a VM is even using the disk, similar to how 'rm' isn't going to tell you what depends on the file. This could be something instead that virt-manager warns about, please file a bug against virt-manager if you're still interested