Red Hat Bugzilla – Bug 1248170
virt-manager doesn't clean up ssh processes while running
Last modified: 2015-10-21 14:59:59 EDT
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?
virt-manager --debug output when reproducing
virt-manager version you are using
remote host distro
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.
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
Eric ever get that debug output?
Also are there larger commandlines in ps axwww?