Bug 747708 - Shutting down RHEV guest puts it into 'paused' state
Summary: Shutting down RHEV guest puts it into 'paused' state
Keywords:
Status: CLOSED DUPLICATE of bug 747543
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-20 20:11 UTC by Michael Brown
Modified: 2011-10-21 18:14 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 18:14:16 UTC
Target Upstream Version:


Attachments (Terms of Use)
Screenshot demonstrating problem (96.70 KB, image/png)
2011-10-20 20:11 UTC, Michael Brown
no flags Details
Requested logs (175.25 KB, application/x-gzip)
2011-10-21 16:20 UTC, Michael Brown
no flags Details

Description Michael Brown 2011-10-20 20:11:43 UTC
Created attachment 529379 [details]
Screenshot demonstrating problem

Description of problem:
Shutting down a RHEV guest (RHEL 6.0/6.1) causes it to go into the 'Paused' state instead of 'Shutdown'.

I've tried:
* 'Shut Down' on the guest from RHEV
* 'poweroff' from the guest command line
with the same result.

Expected Result:
Guest shuts down and goes into 'Powered Off' state.

Actual Result:
Guest shuts down and goes into 'Paused' state.

Comment 2 Dan Kenigsberg 2011-10-21 13:19:26 UTC
Would you provide the versions of vdsm, qemu-kvm, and libvirt, on you host?
Please attach the relevant parts of /var/log/vdsm/vdsm.log and /var/log/libvirtd.log (which can become huge in size), and /var/log/libvirt/qemu/<vmname>.log.

If you log into the host and run

virsh -r list

do you see your guest listed as paused?

I'm asking all these questions because I think it is a libvirt or qemu bug.

Comment 3 Michael Brown 2011-10-21 16:19:47 UTC
Versions:
vdsm-4.9-106.el6.x86_64
qemu-kvm-0.12.1.2-2.184.el6.x86_64
libvirt-0.9.4-16.el6.x86_64

Yep, it shows as paused:
[root@rhev1 ~]# virsh -r list
 Id Name                 State
----------------------------------
  1 rhes-6               paused

Comment 4 Michael Brown 2011-10-21 16:20:14 UTC
Created attachment 529535 [details]
Requested logs

Comment 5 Dan Kenigsberg 2011-10-21 17:57:12 UTC
guest most probably exited correctly

12:16:24.927: 3137: debug : qemuMonitorEmitRTCChange:913 : mon=0x7f96d80032f0

but qemu does not exit

12:16:27.546: 3137: debug : qemuMonitorEmitShutdown:873 : mon=0x7f96d80032f0
12:16:27.546: 3137: debug : qemuProcessHandleShutdown:466 : vm=0x7f96d8001ce0
12:16:27.546: 3137: debug : qemuProcessKill:3209 : vm=rhes-6 pid=29782 gracefully=1
12:16:27.548: 3137: debug : qemuMonitorEmitStop:903 : mon=0x7f96d80032f0
12:16:27.548: 3137: debug : qemuProcessHandleStop:489 : Got STOP event after SHUTDOWN, assuming we are stopping for shutdown
12:16:27.548: 3137: debug : qemuProcessHandleStop:494 : Transitioned guest rhes-6 to paused state, reason=shutdown

since its command line has -no-shutdown.

Comment 6 Eric Blake 2011-10-21 18:14:16 UTC
(In reply to comment #3)
> Versions:
> vdsm-4.9-106.el6.x86_64
> qemu-kvm-0.12.1.2-2.184.el6.x86_64
> libvirt-0.9.4-16.el6.x86_64

This is a known bug with your version of qemu.  See bug 747543, and upgrade to qemu-kvm-0.12.1.2-2.192.el6 or newer.

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


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