Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 747708

Summary: Shutting down RHEV guest puts it into 'paused' state
Product: Red Hat Enterprise Linux 6 Reporter: Michael Brown <michael>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, acathrow, bazulay, eblake, iheim, yeylon, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-21 18:14:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot demonstrating problem
none
Requested logs none

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 ***