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.
Bug 2043584 - Snapshot-revert failed with 'cause is unknown' error
Summary: Snapshot-revert failed with 'cause is unknown' error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libvirt
Version: 8.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: liang cong
URL:
Whiteboard:
Depends On: 2039136
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-21 15:06 UTC by Ján Tomko
Modified: 2022-05-10 13:41 UTC (History)
8 users (show)

Fixed In Version: libvirt-8.0.0-2.module+el8.6.0+14025+ca131e0a
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2039136
Environment:
Last Closed: 2022-05-10 13:25:20 UTC
Type: Bug
Target Upstream Version: 8.1.0
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-109124 0 None None None 2022-01-21 15:10:48 UTC
Red Hat Product Errata RHSA-2022:1759 0 None None None 2022-05-10 13:25:59 UTC

Description Ján Tomko 2022-01-21 15:06:40 UTC
+++ This bug was initially created as a clone of Bug #2039136 +++

Description of problem:
 Snapshot-revert failed with 'cause is unknown' error

Version-Release number of selected component (if applicable):
libvirt-8.0.0-0rc1.1.el9.x86_64
qemu-kvm-6.2.0-3.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a shutoff domain
# virsh snapshot-create-as vm  s1
Domain snapshot s1 created

2.# virsh edit vm  (e.g. remove rng device in xml)
Domain 'vm' XML configuration edited.

3.# virsh snapshot-create-as vm  s2
Domain snapshot s2 created

4. # virsh snapshot-revert vm s1
error: An error occurred, but the cause is unknown

Actual results:


Expected results:
Should succeed

Additional info:
Not reproduced in libvirt-7.10.0-1.el9.x86_64

--- Additional comment from Ján Tomko on 2022-01-20 15:18:26 CET ---

Fixed upstream by:
commit 76deb656132bb8817ddae4b7f417930c4db824c9
Author:     Ján Tomko <jtomko>
CommitDate: 2022-01-20 15:16:18 +0100

    qemu: fix inactive snapshot revert

git describe: v8.0.0-124-g76deb65613

Comment 2 liang cong 2022-01-25 05:35:16 UTC
Preverify on:
libvirt: v8.0.0-130-g2b7f9506b1
qemu-6.2.0-2.fc36.x86_64
qemu-kvm-6.2.0-2.fc36.x86_64

preverify info pls refer to https://bugzilla.redhat.com/show_bug.cgi?id=2039136

Comment 5 liang cong 2022-01-28 08:35:53 UTC
Verified on libvirt-8.0.0-2.module+el8.6.0+14025+ca131e0a.x86_64

# rpm -q libvirt qemu-kvm
libvirt-8.0.0-2.module+el8.6.0+14025+ca131e0a.x86_64
qemu-kvm-6.2.0-5.module+el8.6.0+14025+ca131e0a.x86_64

# virsh list --inactive
 Id   Name         State
-----------------------------
 -    qcow2_test   shut off

# virsh snapshot-create-as qcow2_test s1
Domain snapshot s1 created

# virsh edit vm1
error: failed to get domain 'vm1'

# virsh edit qcow2_test
Domain 'qcow2_test' XML configuration edited.

# virsh snapshot-create-as qcow2_test s2
Domain snapshot s2 created

# virsh snapshot-revert qcow2_test s1


# virsh start qcow2_test
Domain 'qcow2_test' started

# virsh snapshot-revert qcow2_test s2

Comment 7 errata-xmlrpc 2022-05-10 13:25:20 UTC
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 (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2022:1759


Note You need to log in before you can comment on or make changes to this bug.