Description of problem:
Creating a snapshot, then deleting a snapshot, on a domain with multiple disks fails to delete internal snapshots on all disks but the first.
Version-Release number of selected component (if applicable):
qemu-kvm-ev 2.1.2-23.el7_1.3 (and also checked newer version in oVirt 3.6
On domain with multiple qcow2 disks:
1. virsh snapshot-create <domain>
2 .virsh snapshot-delete <domain> <snapshotname>
3. do 'qemu-img info' on all disk files attached to domain, and note that disks still contain qcow2 snapshots. This further causes problems for subsequent snapshot-create
some qcow2 disks have snapshot
all qcow2 disks have no snapshot
This is already fixed in qemu-kvm upstream. Just need to backport the patch and include it. I have backported the patch for my own use, but I'd like to see this fixed upstream so we don't have to maintain it.
Author: Zhang Haoyu <zhanghy>
Date: Mon Sep 29 16:38:02 2014 +0800
snapshot: fix referencing wrong variable in while loop in do_delvm
The while loop variabal is "bs1",
but "bs" is always passed to bdrv_snapshot_delete_by_id_or_name.
Broken in commit a89d89d, v1.7.0.
Signed-off-by: Zhang Haoyu <zhanghy>
Reviewed-by: Markus Armbruster <armbru>
Signed-off-by: Stefan Hajnoczi <stefanha>
This bug needs to be filed in the qemu or centos tracker, Node is just reusing this build.
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.
(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)
More information and reason for this action is here:
Thanks for moving it. Ideally we'd like to see it end up in qemu-kvm-ev-2.1.2-23.el7_1.5 or similar, as built by http://cbs.centos.org/koji/packageinfo?packageID=539. I must say it's a bit confusing trying to find who is responsible for the "ev" packages, I was going to try to submit a patch myself, but the CentOS qemu-kvm(1.5.3) isn't what we're after.
Hi, I'm the one rebuilding qemu-kvm-ev from qemu-kvm-rhev for CentOS Virt SIG.
Moving to qemu-kvm-rhev to let the maintainer know about this issue.
Could you add this bz into rhel7.2 qemu-kvm-rhev erratum?
Reproduce this bug on qemu-kvm-rhev-2.1.2-16.el7.x86_64.
1. Start vm with a data disk
2. Create snapshot
virsh # snapshot-create win7
Domain snapshot 1438851175 created
3. Delete snapshot.
virsh # snapshot-delete win7 1438851175
Domain snapshot 1438851175 deleted
4. Check data disk image
Snapshot still exist.
[root@dhcp-11-16 images]# qemu-img info win7.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 1.9M
ID TAG VM SIZE DATE VM CLOCK
1 1438851175 0 2015-08-06 16:52:55 00:00:30.913
Format specific information:
lazy refcounts: true
Verify this bug on qemu-kvm-rhev-2.3.0-15.el7.x86_64.
All snapshot deleted by virsh command.
This bug has been fixed.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.