spawned ssh processes are left in defunct state when their task completed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dish (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dish
Using dish to run apt-get update on a bunch of machines works fine, as long as the hosts are proccessed sequentially.
Using -f or -F, the commands still get run, but after the ssh connection is closed, the ssh process stays in <defunct> state
and never returns - so does dish. I would have expected dish to exit after all clients have completed when using -f .
Ssh login is done using an authorized key and sudo does not require a password to be entered for the issued commands.
Also, no output (except for errors) should be produced by apt-get normally. The hosts are read from a file using -g.
10057 pts/1 S+ 0:00 | \_ /bin/sh ./bin/updater.sh
10134 pts/1 Sl+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10155 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10173 ? Zs 0:00 | | \_ [ssh] <defunct>
10156 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10171 ? Zs 0:00 | | \_ [ssh] <defunct>
10157 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10172 ? Zs 0:00 | | \_ [ssh] <defunct>
10158 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10192 ? Zs 0:00 | | \_ [ssh] <defunct>
10159 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10189 ? Zs 0:00 | | \_ [ssh] <defunct>
10160 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10164 ? Zs 0:00 | | \_ [ssh] <defunct>
10161 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10163 ? Zs 0:00 | | \_ [ssh] <defunct>
10165 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10193 ? Zs 0:00 | | \_ [ssh] <defunct>
10170 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10181 ? Zs 0:00 | | \_ [ssh] <defunct>
10174 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10180 ? Zs 0:00 | | \_ [ssh] <defunct>
10175 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10186 ? Zs 0:00 | | \_ [ssh] <defunct>
10182 pts/1 S+ 0:00 | \_ /usr/bin/expect -- /usr/bin/dish -p0 -f -T 1200 -p0 -e sudo DEBIAN_
10191 ? Zs 0:00 | \_ [ssh] <defunct>
Related branches
tags: | added: lucid |
summary: |
- defunct + spawned ssh processes are left in defunct state when their task + completed |
This has been with ubuntu lucid
Package: dish Maintainer: Dimitar Ivanov <email address hidden> d/dish/ dish_1. 17.1-1_ all.deb c8f1cff4fbe4091 90 4b6e7e1e6387fe4 77077b918e e025d0831d8ac9d d3741897978942b 4f07a543cf4abf7 b8c3 distributed shell for parallel sysadmin dish.mirendom. net /bugs.launchpad .net/ubuntu/ +filebug
Priority: optional
Section: universe/admin
Installed-Size: 196
Maintainer: Ubuntu Developers <email address hidden>
Original-
Architecture: all
Version: 1.17.1-1
Depends: expect
Recommends: openssh-client | ssh, telnet | inetutils-telnet | telnet-ssl
Filename: pool/universe/
Size: 47926
MD5sum: 63ea602fb395d1b
SHA1: 03bb2576adb4291
SHA256: 78a96ec12a170b4
Description: the diligence/
Dish executes commands simultaneously on several systems via 'ssh', 'rsh',
'telnet', 'mysql', or other command-line programs. It also makes easy the
distribution of files by 'scp' and 'rcp', or a remote password change.
Dish could be used as a flexible tool for managing large number of any
type of hosts such as (clustered) servers, switches, databases, etc.
Homepage: http://
Bugs: https:/
Origin: Ubuntu