Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMarcus Sorensen
2015-07-14 19:02:50 UTC
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
How reproducible:
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
Actual results:
some qcow2 disks have snapshot
Expected results:
all qcow2 disks have no snapshot
Additional info:
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.
commit af957387547b05ed6dc4d84c10cca42700a7aeda
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 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:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23
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.
Reproduce this bug on qemu-kvm-rhev-2.1.2-16.el7.x86_64.
Host:
3.10.0-302.el7.x86_64
qemu-kvm-rhev-2.1.2-16.el7.x86_64
Guest:
win7-64
Steps:
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
Result:
Snapshot still exist.
[root@dhcp-11-16 images]# qemu-img info win7.qcow2
image: win7.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 1.9M
cluster_size: 65536
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
1 1438851175 0 2015-08-06 16:52:55 00:00:30.913
Format specific information:
compat: 1.1
lazy refcounts: true
Verify this bug on qemu-kvm-rhev-2.3.0-15.el7.x86_64.
Result:
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.
https://rhn.redhat.com/errata/RHBA-2015-2546.html
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 How reproducible: 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 Actual results: some qcow2 disks have snapshot Expected results: all qcow2 disks have no snapshot Additional info: 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. commit af957387547b05ed6dc4d84c10cca42700a7aeda 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>