VM snapshot lost after migration
See original GitHub issueDescription a vm snapshot (not disk snapshot) is broken/lost after live migration or power-off
To Reproduce
-
create a new virtual machine named test1 and start it
-
open the virtual machine in sunstone, navigate to “Snapshots” and create one
-
wait for the snapshot to finish
-
live migrate vm “test1” to an other hypervisor
-
the snapshot is still listed in sunstone, but with
virsh snapshot-list <domain>
we see that the snapshot is gone -
there’s no way to remove that broken snapshot in sunstone anymore
-
create a new virtual machine named test2 and start it
-
open the virtual machine in sunstone, navigate to “Snapshots” and create one
-
wait for the snapshot to finish
-
power off vm “test2”
-
snapshot in sunstone is gone
-
power on vm “test2”
-
snapshot in sunstone is still gone, but with
virsh snapshot-list <domain>
you can still see the snapshot
Expected behavior In both cases I would expect the snapshot to be still there and correctly shown in Sunstone
Details
- Affected Component: Sunstone, Storage, libvirtd
- Hypervisor: KVM
- Storage: shared fs - TM_MAD=“qcow2”
- Version: 6.0.2
Additional context NaN
Progress Status
- Branch created
- Code committed to development branch
- Testing - QA
- Documentation
- Release notes - resolved issues, compatibility, known issues
- Code committed to upstream release/hotfix branches
- Documentation committed to upstream release/hotfix branches
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top GitHub Comments
Actually, that feature was never supported. Libvirt will fail if trying to migrate a VM with snapshots, so they needs to be removed, which is a different issue than the poweroff.
We’ve already scheduled this issue for 6.2.1 and we’ll look on what’s the best way of recreating the snapshots after the live migration.
Merged