juju ssh spawns many juju and ssh processes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
High
|
Unassigned |
Bug Description
juju version 2.0-beta5-
I built from master because previous master build (sorry i don't know hash) labeled 2.0-beta4-
I deploy a charm and try to ssh to the unit:
$ juju --debug ssh blues-identity/0
2016-04-20 13:45:10 INFO juju.cmd supercommand.go:60 running juju [2.0-beta5 gc go1.6.1]
2016-04-20 13:45:10 INFO juju.juju api.go:213 connecting to API addresses: [10.0.5.118:17070]
2016-04-20 13:45:10 INFO juju.api apiclient.go:494 dialing "wss://
9f-439d-
2016-04-20 13:45:11 INFO juju.api apiclient.go:271 connection established to "wss://
/model/
2016-04-20 13:45:11 DEBUG juju.juju api.go:362 API hostnames unchanged - not resolving
2016-04-20 13:45:11 DEBUG juju.juju api.go:147 failed to connect via bootstrap config: aborted
2016-04-20 13:45:11 DEBUG juju.cmd.
2016-04-20 13:45:11 DEBUG juju.utils.ssh ssh.go:249 using OpenSSH ssh client
Upon this pause, I ctrl-z to suspend the process and look at running processes:
$ ps auxww | grep -E 'juju|s
sh'
sslh 1908 0.0 0.0 19100 1716 ? Ss Mar25 0:00 /usr/sbin/sslh --foreground --user
sslh --listen 0.0.0.0 443 --ssh 127.0.0.1 22 --ssl 127.0.0.1 442
sslh 1980 0.0 0.0 19100 496 ? S Mar25 0:00 /usr/sbin/sslh --foreground --user
sslh --listen 0.0.0.0 443 --ssh 127.0.0.1 22 --ssl 127.0.0.1 442
jrwren 5472 0.0 0.0 49144 5912 pts/3 S+ 09:28 0:00 ssh <email address hidden>
jrwren 5537 0.0 0.0 49276 2756 ? Ss 09:28 0:00 ssh: /home/jrwren/
<email address hidden>:22 [mux]
jrwren 8508 0.4 0.4 172864 38464 pts/2 Tl 09:45 0:00 juju --debug ssh blues-identity/0
jrwren 8515 0.1 0.0 45012 5772 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -t -t -o UserKnownHostsFile /dev/null -i /home/jrwren/.lo
cal/share/
jrwren 8516 0.4 0.4 107328 38556 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.10 22
jrwren 8523 0.1 0.0 45008 5712 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8524 0.4 0.5 107328 40628 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8531 0.1 0.0 45008 5824 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8532 0.4 0.4 99132 38760 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8538 0.1 0.0 45008 5764 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8539 0.4 0.4 114116 38176 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8558 0.1 0.0 45008 5784 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8559 0.4 0.4 115524 39012 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8567 0.1 0.0 45008 5856 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8568 0.3 0.4 107328 37844 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8575 0.1 0.0 45008 5852 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8576 0.4 0.4 105920 38288 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8583 0.1 0.0 45008 5700 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8584 0.4 0.4 105920 38344 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8592 0.1 0.0 45008 5812 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
are/juju/
jrwren 8593 0.3 0.4 172864 38784 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8600 0.1 0.0 45008 5856 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8601 0.4 0.4 107328 37780 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8608 0.2 0.0 45008 5864 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8609 0.4 0.4 107328 37752 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8616 0.2 0.0 45008 5768 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8617 0.4 0.4 172864 38748 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8642 0.2 0.0 45008 5700 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8643 0.4 0.5 172864 40532 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8650 0.2 0.0 45008 5832 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8651 0.4 0.4 107328 38752 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
root 8664 0.0 0.0 157916 4620 ? Ss 09:30 0:00 [lxc monitor] /var/lib/
rs juju-77a68a2e-
jrwren 8669 0.2 0.0 45008 5756 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8670 0.4 0.4 172864 38388 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8678 0.1 0.0 45008 5876 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8679 0.4 0.4 107328 38676 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8686 0.1 0.0 45008 5684 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8687 0.4 0.4 107328 38396 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8696 0.2 0.0 45008 5872 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8697 0.4 0.4 107328 38432 pts/2 Tl 09:45 0:00 /home/jrwren/
jrwren 8705 0.1 0.0 45012 5856 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8706 0.4 0.4 181060 38976 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8725 0.2 0.0 45012 5828 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8726 0.4 0.4 107328 38424 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8733 0.2 0.0 45008 5788 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8734 0.4 0.4 99132 38580 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8741 0.2 0.0 45008 5776 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8742 0.4 0.4 107328 38296 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8749 0.2 0.0 45008 5820 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8750 0.4 0.4 107328 38480 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8757 0.1 0.0 45008 5796 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8758 0.4 0.4 181060 38376 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8766 0.2 0.0 45008 5760 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8767 0.4 0.4 99132 38216 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8773 0.1 0.0 45008 5864 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8774 0.4 0.4 99132 38244 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8794 0.1 0.0 45008 5860 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8795 0.4 0.4 172864 37900 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8802 0.1 0.0 45008 5812 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8811 0.2 0.0 45008 5852 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8812 0.4 0.4 172864 38508 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8819 0.2 0.0 45008 5820 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8822 0.5 0.4 99132 38588 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8835 0.2 0.0 45008 5776 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8836 0.4 0.4 99132 38300 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8842 0.2 0.0 45008 5700 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8843 0.4 0.4 107328 38900 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8850 0.2 0.0 45008 5808 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8851 0.5 0.4 107328 38080 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8859 0.2 0.0 45008 5796 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8876 0.5 0.4 172864 38120 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8883 0.2 0.0 45008 5944 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8884 0.5 0.4 99132 38152 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8890 0.2 0.0 45008 5804 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8891 0.5 0.4 107328 38304 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8898 0.2 0.0 45008 5904 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8899 0.5 0.4 172864 38020 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8906 0.2 0.0 45008 5904 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
jrwren 8907 0.5 0.4 172864 38792 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
jrwren 8914 0.2 0.0 45008 5860 pts/2 T 09:45 0:00 ssh -o StrictHostKeyCh
ProxyCommand /home/jrwren/
uthentication no -o ServerAliveInterval 30 -o UserKnownHostsFile /dev/null -i /home/jrwren/
are/juju/
jrwren 8915 0.5 0.4 107328 38380 pts/2 Tl 09:45 0:00 /home/jrwren/
y=false --pty=false 10.0.5.118 nc 10.0.5.118 22
root 9045 0.0 0.0 148668 2620 ? Ss Apr07 0:02 [lxc monitor] /var/lib/
rs juju-4851bd40-
jrwren 9186 0.0 0.0 14228 1016 pts/2 S+ 09:45 0:00 grep -E juju|ssh
100000 10743 0.0 0.0 61384 3804 ? Ss 09:30 0:00 /usr/sbin/sshd -D
100000 11129 0.0 0.0 61384 1412 ? Ss Apr07 0:00 /usr/sbin/sshd -D
root 11576 0.0 0.0 65612 6436 ? Ss Apr17 0:00 /usr/sbin/sshd -D
root 11614 0.0 0.0 128580 7972 ? Ss 08:05 0:00 sshd: jrwren [priv]
jrwren 11866 0.0 0.0 128844 4612 ? S 08:05 0:00 sshd: jrwren@pts/0,pts/14
100000 14371 0.0 0.3 559328 27736 ? Ssl 09:31 0:00 /var/lib/
machine --data-dir /var/lib/juju --machine-id 2 --debug
100000 14449 0.0 0.3 337896 25120 ? Ssl 09:31 0:00 /var/lib/
tity-0/jujud unit --data-dir /var/lib/juju --unit-name blues-identity/0 --debug
100000 16036 0.3 1.5 4913848 121084 ? Ssl Apr07 72:11 /usr/lib/
var/lib/juju/db --sslOnNormalPorts --sslPEMKeyFile /var/lib/
xxx --port 37017 --syslog --journal --replSet juju --ipv6 --quiet --oplogSize 1024 --auth --keyFile
/var/lib/
100000 16391 0.1 0.6 480204 53876 ? Ssl Apr07 32:09 /var/lib/
machine --data-dir /var/lib/juju --machine-id 0 --debug
100000 18528 0.0 0.0 61384 2436 ? Ss Apr07 0:00 /usr/sbin/sshd -D
jrwren 29902 0.0 0.0 11144 924 ? Ss Apr05 0:00 ssh-agent
And if I resume the suspended process the number of juju and ssh processes continues to grow.
Changed in juju-core: | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: ssh |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | none → 2.1.0 |
maas 1.9.1+bzr4543- 0ubuntu2~ trusty1 trusty- amd64
juju 2.0-beta6-
Same issue struggling from whole 48 Hours,
2016-04-28 04:50:55 DEBUG juju.utils.ssh ssh.go:249 using OpenSSH ssh client cloud-init- output. log on remote host /streams. canonical. com/juju/ tools/agent/ 2.0-beta6/ juju-2. 0-beta6- xenial- amd64.tgz]>
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https:/