Issue
Description of problem:
[Machines] The vm can not be deleted with internal&external snapshot
Version-Release number of selected components (if applicable):
cockpit-machines-291-1.el9.noarch
cockpit-292-1.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64
libvirt-client-9.3.0-2.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Prepare a vm , like cirros
2. Enter vm details page, click "Create snapshot", fillin :
Name: test1
Description: internal_snapshot
3. On the host, use virsh to create a external_snapshot :
virsh snapshot-create-as --domain cirros --name test2 --description 'external_snapshot' --disk-only
4. Refresh the vm details page
5. Try to delete the test2, there will be error:
Snapshot test2 could not be deleted
Operation not supported: deleting external snapshot that has internal snapshot as parent not supported
6. Try to delete the test1, there will be error:
Snapshot test1 could not be deleted
Operation not supported: disk image 'vda' for internal snapshot 'test1' is not the same as disk image currently used by VM
7. Try to delete the vm, there will be error:
Danger alert:Could not delete cirros
Operation not supported: deleting external snapshot that has internal snapshot as parent not supported
Actual results:
See step5 & step6 & step7.
Expected results:
Can delete in step5/6/7, at least can delete the vm at last.
Additional info: