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 968896 - virt-manager will hang when shutdown lxc guest after open the console
Summary: virt-manager will hang when shutdown lxc guest after open the console
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-30 08:49 UTC by tingting zheng
Modified: 2014-06-18 00:00 UTC (History)
6 users (show)

Fixed In Version: virt-manager-0.10.0-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:39:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description tingting zheng 2013-05-30 08:49:30 UTC
Description
virt-manager will hang when shutdown lxc guest after open the console

Version:
virt-manager-0.10.0-0.4.gitb68faac8.el7.noarch
libvirt-1.0.5-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Make sure you  have a lxc guest,Application container is ok.

2.Start the guest,open the graphics console.

3.Force off the guest,then virt-manager will hang forever.

4.If you restart virt-manager and not open the console,just Force off the guest,it can be shutdown successfully.

Actual results:
As describes.

Expected results:
virt-manager will not hang when shutdown lxc guest.

Additional info:
From libvirt,lxc guest can be boot and destroy successfully.
# virsh -c lxc:/// define test.xml
Domain test defined from test.xml

# virsh -c lxc:/// start test
Domain test started

# virsh -c lxc:/// destroy test
Domain test destroyed

From virt-manager --debug:
2013-05-30 15:15:16,566 (create:1921): Install completed
2013-05-30 15:15:16,694 (create:161): Closing new vm wizard
2013-05-30 15:15:16,879 (serialcon:404): Serial console '0' path changed to /dev/pts/3
2013-05-30 15:15:16,880 (serialcon:194): Opening console stream for dev=<virtinst.VirtualCharDevice.VirtualCharDevice object at 0x3085950> alias=console0
2013-05-30 15:15:16,887 (details:570): Showing VM details: <vmmDomain object at 0x3081aa0 (virtManager+domain+vmmDomain at 0x7f553c003a60)>
2013-05-30 15:15:17,058 (engine:320): window counter incremented to 2
2013-05-30 15:15:17,059 (console:1114): No graphics configured for guest
2013-05-30 15:15:18,537 (details:587): Closing VM details: <vmmDomain object at 0x3081aa0 (virtManager+domain+vmmDomain at 0x7f553c003a60)>
2013-05-30 15:15:18,537 (engine:324): window counter decremented to 1
2013-05-30 15:15:23,952 (engine:850): Destroying vm 'test'
2013-05-30 15:15:23,954 (asyncjob:193): Creating async job for function cb=<function tmpcb at 0x3578500>

Comment 2 Martin Kletzander 2013-06-03 15:56:09 UTC
Could you set your ulimit for coredumps and kill the process with C-\ or SIGSEGV and post the coredump here?  In case the GUI freezes as well, you can try running 'python -m trace --trace /usr/share/virt-manager/virt-manager.py --debug &>virt-manager.huge.log', kill it when it freezes, compress the log and post it here as well, but there is high possibility that the log will have so much graphic events from the X server that it will make it impossible to find where the code freezes.

Comment 4 Martin Kletzander 2013-06-11 07:34:53 UTC
Patch proposed upstream:

https://www.redhat.com/archives/virt-tools-list/2013-June/msg00042.html

Comment 5 Martin Kletzander 2013-06-12 09:19:00 UTC
Moving to POST:

commit 77fb38e60207874d4293448b64945c3d4ec11c30
Author: Martin Kletzander <mkletzan>
Date:   Tue Jun 11 09:32:13 2013 +0200

    serialcon: Close the console at the end of the stream

Comment 6 tingting zheng 2013-07-17 08:24:00 UTC
Tested with:
virt-manager-0.10.0-1.el7.noarch

The issue didn't exist,move the bug to VERIFIED.

Comment 7 Ludek Smid 2014-06-13 09:39:54 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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