Bug 717525

Summary: destroying PV guest too quickly leaves qemu-dm not killed
Product: Red Hat Enterprise Linux 5 Reporter: Jinxin Zheng <jzheng>
Component: xenAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 5.7CC: drjones, leiwang, mrezanin, pbonzini, xen-maint, yuzhou
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: xen-3.0.3-133.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:55:28 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
the domain config
none
xend.log
none
qemu-dm.log none

Description Jinxin Zheng 2011-06-29 06:36:51 UTC
Description of problem:
Create the guest, then destroy it immediately, qemu-dm is usually left not killed, causing later created guests fail to respond on vnc.

Version-Release number of selected component (if applicable):
xen-3.0.3-132.el5
kernel-xen-2.6.18-269.el5

How reproducible:
70%~80%

Steps to Reproduce:
1. xm create domU
2. after 'xm create' returns, xm destroy domU immediately.
3. ps -ef

Actual results:
qemu-dm is still there.

Expected results:
no qemu-dm running.

Additional info:
Host is AMD with 128G memory. It's more reproducible on a machine with large memory.

The bug 610208, which was closed 'insufficient data', seems relevant.

Comment 1 Jinxin Zheng 2011-06-29 06:37:26 UTC
Created attachment 510397 [details]
the domain config

Comment 2 Jinxin Zheng 2011-06-29 06:37:45 UTC
Created attachment 510398 [details]
xend.log

Comment 3 Jinxin Zheng 2011-06-29 06:38:15 UTC
Created attachment 510399 [details]
qemu-dm.log

Comment 4 Miroslav Rezanina 2011-06-29 09:25:41 UTC
Problem only for PV guest as qemu-dm is setuping xenpv machine and do not recieve kill signal.

Comment 8 Yuyu Zhou 2011-11-30 06:33:32 UTC
reproduce the bug in xen-3.0.3-132.el5 and verify the bug in xen-3.0.3-135.el5.

Steps of reproduce:
1. destroy a pv guest right after it is created
# xm cr pv.cfg; xm des RHEL5.8-64-PV
Using config file "./pv.cfg".
Using <class 'grub.GrubConf.GrubConfigFile'> to parse /grub/menu.lst
Started domain RHEL5.8-64-PV
2. check the xm list, there is no guest running.
# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     2880     2 r-----    942.9
3. Check the processes, and the qemu-dm is not killed
# ps aux | grep qemu
root     11627  0.1  0.1  90444  4824 ?        Sl   14:27   0:00 /usr/lib64/xen/bin/qemu-dm -M xenpv -d 5 -domain-name RHEL5.8-64-PV -vnc 0.0.0.0:0 -vncunused -k en-us
root     11892  0.0  0.0  61172   736 pts/0    S+   14:27   0:00 grep qemu

Verify the bug with same steps as reproduce, and repeat the test for 5 times, the qemu-dm is killed every time.

So change this bug into VERIFIED.

Comment 9 errata-xmlrpc 2012-02-21 05:55:28 UTC
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/RHBA-2012-0160.html