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 2039136 - 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 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: liang cong
URL:
Whiteboard:
Depends On:
Blocks: 2043584
TreeView+ depends on / blocked
 
Reported: 2022-01-11 03:42 UTC by Yanqiu Zhang
Modified: 2022-05-17 13:07 UTC (History)
7 users (show)

Fixed In Version: libvirt-8.0.0-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2043584 (view as bug list)
Environment:
Last Closed: 2022-05-17 12:46:17 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-107353 0 None None None 2022-01-11 03:43:07 UTC
Red Hat Product Errata RHBA-2022:2390 0 None None None 2022-05-17 12:46:49 UTC

Description Yanqiu Zhang 2022-01-11 03:42:13 UTC
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

Comment 1 Ján Tomko 2022-01-20 14:18:26 UTC
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 3 liang cong 2022-01-21 11:10: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

steps:
1. Prepare a shutoff domain
# virsh list --inactive
 Id   Name   State
-----------------------
 -    vm1    shut off

2. create a internal snapshot
# virsh snapshot-create-as vm1 s1
Domain snapshot s1 created

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

4. create another internal snapshot
# virsh snapshot-create-as vm1 s2
Domain snapshot s2 created


5. revert snapshot
# virsh snapshot-revert vm1 s1
# virsh snapshot-revert vm1 s2

Actual results: no erro occurrs.

Also tried active snapshot revert and get no error.

Comment 6 liang cong 2022-01-27 01:58:53 UTC
Verified on libvirt-8.0.0-2.el9.x86_64

# rpm -q libvirt qemu-kvm
libvirt-8.0.0-2.el9.x86_64
qemu-kvm-6.2.0-5.el9.x86_64

# virsh destroy vm1
Domain 'vm1' destroyed

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

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

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

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

# virsh snapshot-revert vm1 s1

# virsh start vm1
Domain 'vm1' started

# virsh snapshot-revert vm1 s2

Comment 8 errata-xmlrpc 2022-05-17 12:46:17 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 (new packages: libvirt), 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/RHBA-2022:2390


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