Bug 1248170

Summary: virt-manager doesn't clean up ssh processes while running
Product: [Community] Virtualization Tools Reporter: Erik Logtenberg <erik>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED INSUFFICIENT_DATA QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, erik, gscrivan, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-21 18:59:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Erik Logtenberg 2015-07-29 19:11:24 UTC
Virt-manager has a nice feature to connect with remote machines through an ssh tunnel. If such a connection somehow fails, it gets re-established, but the original ssh process remains as a zombie process. After having virt-manager open for a while, connected to several hosts, my process list fills up with hundreds of these:

erik     32173  0.0  0.0      0     0 ?        Z    Jul25   0:00  \_ [ssh] <defunct>
erik     32174  0.0  0.0      0     0 ?        Z    Jul25   0:00  \_ [ssh] <defunct>
erik     15906  0.0  0.0      0     0 ?        Z    Jul26   0:00  \_ [ssh] <defunct>
erik     15908  0.0  0.0      0     0 ?        Z    Jul26   0:00  \_ [ssh] <defunct>
erik     15911  0.0  0.0      0     0 ?        Z    Jul26   0:00  \_ [ssh] <defunct>
erik     15912  0.0  0.0      0     0 ?        Z    Jul26   0:00  \_ [ssh] <defunct>

Could virt-manage be made to clean up these processes?

Comment 1 Cole Robinson 2015-08-09 17:28:09 UTC
Please provide:

virt-manager --debug output when reproducing
virt-manager version you are using
host distro
remote host distro

Comment 2 Erik Logtenberg 2015-08-09 18:42:46 UTC
virt-manager-1.1.0-9.git310f6527.fc21.noarch
Fedora release 21 (Twenty One)

remote hosts are Fedora 21 and 22.

I will try running virt-manager with --debug for a while and see what that produces.

Comment 3 Cole Robinson 2015-08-10 18:32:20 UTC
In a brief test I couldn't reproduce. virt-manager does try to clean up all ssh processes so something must be going wrong.

Also does ps axwww give the full ssh command lines? Not sure if that data is saved for a defunct process

Comment 4 Cole Robinson 2015-09-23 22:21:12 UTC
Eric ever get that debug output?
Also are there larger commandlines in ps axwww?