libvirt snapshot does not save source in xml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
=======
SRU Justification:
1. Impact: a host reboot loses domain information after a external snapshot
2. Test case: see comment #2
3. Regression potential: this patch is a direct cherrypick from upstream with no churn. It should have no side effects.
=======
Ubuntu 14.04.1 tls trusty
Using library: libvirt 1.2.2
Using API: QEMU 1.2.2
Running hypervisor: QEMU 2.0.0
When you create a snapshot through "virsh snapshot-create-as" when a virtual machine is on,
then the source tag in the xml is changed.
But when you reboot the HOST, then the changes in the source tag are discared (the old/previous source path is used again).
I'v reproduced this bug on a clean Ubuntu 14.04 Trusty with fully updated packages.
Could not reproduce this on a 12.04 tls, so only 14.04 is affected (with libvirt version 1.2.2)
Reproduce:
- Create VM => vm.qcow2
- Start VM
- Create snashot (through snasphot-create-as) => snapshot.qcow2
- reboot the host
- now the old source path is used again => vm.qcow2
description: | updated |
description: | updated |
Changed in libvirt (Ubuntu): | |
status: | Incomplete → New |
Changed in libvirt (Ubuntu Trusty): | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in libvirt (Ubuntu): | |
status: | Triaged → Fix Released |
description: | updated |
Changed in libvirt (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
Thanks for reporting this bug. I'd like to reproduce it. Could you please show the full commands you are using, and attach the relevant xml files?