Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 680378 - no error message when loading zero size internal snapshot
no error message when loading zero size internal snapshot
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.1
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Jes Sorensen
Virtualization Bugs
:
Depends On:
Blocks: 580953
  Show dependency treegraph
 
Reported: 2011-02-25 06:02 EST by Shirley Zhou
Modified: 2015-03-04 19:52 EST (History)
8 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.164.el6
Doc Type: Bug Fix
Doc Text:
Small fix for a corner case: show an error message for loading snapshot without VM state. [not relevant enough to require Technical Notes]
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-06 10:44:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1531 normal SHIPPED_LIVE Moderate: qemu-kvm security, bug fix, and enhancement update 2011-12-05 20:23:30 EST

  None (edit)
Description Shirley Zhou 2011-02-25 06:02:22 EST
Description of problem:
Create internal snapshot for previous installed guest using "qemu-img snapshot -c", then boot guest, when loadvm of internal snapshot, guest become paused. As talked with kwolf in IRC, there should be error message pops up.

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.147.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.create internal snapshot for previous installed guest image
#qemu-img snapshot -c interna_sn1 win08R2.qcow2

2. Check this snapshot 
# qemu-img info win08R2.qcow2 
image: win08R2.qcow2
file format: qcow2
virtual size: 30G (32212254720 bytes)
disk size: 13G
cluster_size: 65536
Snapshot list:
ID        TAG                 VM SIZE                DATE       VM CLOCK
1         interna_sn1               0 2011-02-21 21:52:52   00:00:00.000

3. run this guest image, and load internal snapshot  interna_sn1  

  
Actual results:
after step3, guest become paused

Expected results:
There should be error pops to indicate can not load internal snapshot without vm state.

Additional info:
Comment 2 Jes Sorensen 2011-02-25 07:51:53 EST
Do we support internal snapshots in the first place?

I don't think this is severe enough to warrant 6.1 status?
Comment 4 Kevin Wolf 2011-02-25 09:45:01 EST
Not really relevant for RHEL. Should be a one-liner, though (add an error_report call somewhere in savevm.c), so we can as well fix it.
Comment 7 juzhang 2011-06-07 05:24:30 EDT
Easy to reproduce using comment0 steps,mark qa_ack+
Comment 10 Mike Cao 2011-08-26 06:21:46 EDT
Reproduced on qemu-kvm-0.12.1.2-2.160.el6.x86_64
Tested on qemu-kvm-0.12.1.2-2.183.el6.x86_64 seems still hit some issue.

steps:
1.qemu-img snapshot -c sp1 /home/rhel61.qcow2
2.start guest 
CLI:/usr/libexec/qemu-kvm -M rhel6.2.0 -cpu Westmere -enable-kvm -m 2048 -smp 4,sockets=1,cores=4,threads=1 -name win7_32_2222 -uuid 9408d7d1-4f26-4e1c-92a8-50c9bfbeed96 -monitor stdio -boot c  -drive serial=hellomike,file=/home/rhel61.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x9,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=00:1a:4a:42:09:03,bus=pci.0,addr=0x3 -usb -device usb-tablet,id=usbtablet0 -spice port=5944,disable-ticketing -k en-us -vga qxl -global qxl-vga.vram_size=67108864
3.(qemu)loadvm sp1

Actual Results:
on qemu-kvm-0.12.1.2-2.160.el6.x86_64 ,guest stopped
on qemu-kvm-0.12.1.2-2.183.el6.x86_64 ,guest still *stopped* and with prompts msg"This is a disk-only snapshot. Revert to it offline using qemu-img."

Based on above I don't think patch fully fixed the issue.
Guest should still *running * and with msg prompted.


Based on above ,re-assign this issue.
Comment 11 Kevin Wolf 2011-08-26 07:54:33 EDT
No, after a failed loadvm the expected state is that the VM is stopped. This is how upstream has decided that things should work.
Comment 12 Mike Cao 2011-08-28 22:50:47 EDT
Thanks for your explanation.

Based on comment #10 & comment #11 ,this issue has been fixed already
Comment 14 Eduardo Habkost 2011-11-18 11:11:58 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Small fix for a corner case: show an error message for loading snapshot without VM state. [not relevant enough to require Technical Notes]
Comment 15 errata-xmlrpc 2011-12-06 10:44:47 EST
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.

http://rhn.redhat.com/errata/RHSA-2011-1531.html

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