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 1179532 - Fail to do snapshot-revert and domain will be paused
Summary: Fail to do snapshot-revert and domain will be paused
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-07 03:12 UTC by Shanzhi Yu
Modified: 2015-01-29 12:25 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-20 08:55:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shanzhi Yu 2015-01-07 03:12:58 UTC
Description of problem:

Fail to do snapshot-revert and domain will be paused

Version-Release number of selected component (if applicable):

libvirt-0.10.2-47.el6.x86_64

How reproducible:

100%

Steps to Reproduce:

1. Prepare a running domain
# virsh list
Id Name State
----------------------------------------------------
23 rh6 running


2. Create two snapshots

# virsh snapshot-create-as rh6 s1
Domain snapshot s1 created
# virsh snapshot-create-as rh6 s2 --memspec file=/var/lib/libvirt/images/rh6.mem.s2
Domain snapshot s2 created

# virsh snapshot-list rh6
Name Creation Time State
------------------------------------------------------------
s1 2015-01-06 13:12:37 +0800 running
s2 2015-01-06 13:13:33 +0800 running

3. Try to do snapshot-revert

# virsh snapshot-revert rh6 s1
error: Requested operation is not valid: the snapshot 's1' does not exist, and was not loaded

# virsh snapshot-revert rh6 s2
error: Requested operation is not valid: the snapshot 's2' does not exist, and was not loaded

4. Check domain status
# virsh list
Id Name State
----------------------------------------------------
23 rh6 paused

# virsh snapshot-list rh6
Name Creation Time State
------------------------------------------------------------
s1 2015-01-06 13:12:37 +0800 running
s2 2015-01-06 13:13:33 +0800 running



Actual results:


Expected results:


Additional info:

Comment 1 Jaroslav Suchanek 2015-01-20 08:55:40 UTC

*** This bug has been marked as a duplicate of bug 1124854 ***

Comment 2 Shanzhi Yu 2015-01-29 10:38:30 UTC
(In reply to Jaroslav Suchanek from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 1124854 ***

This bug is not same as bug 1124854, that bug has been fixed in libvirt-0.10.2-48.el6.x86_64, while I still can reproduce this bug

# rpm -q libvirt
libvirt-0.10.2-48.el6.x86_64

1. Prepare running guest
# virsh list 
 Id    Name                           State
----------------------------------------------------
 10    rhel6.5                        running

2. Create one internal snapshot, one external snapshot

# virsh snapshot-create-as rhel6.5 sp1 
Domain snapshot sp1 created
# virsh list 
 Id    Name                           State
----------------------------------------------------
 10    rhel6.5                        running

# virsh snapshot-create-as rhel6.5 sp2 --memspec file=/tmp/sp2.mem 
Domain snapshot sp2 created

3. Revert to internal snapshot sp1
# virsh snapshot-revert rhel6.5 sp1 
error: Requested operation is not valid: the snapshot 'sp1' does not exist, and was not loaded

4. Check guest status

# virsh list 
 Id    Name                           State
----------------------------------------------------
 10    rhel6.5                        paused

So, should reopen this bug?


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