Just thought I'd follow up with a typical output with -vvvv; This is a play
where I'm installing a couple of apt packages to three AWS hosts (shortened
host1-3 for brevity). You see one of the hosts succeed while the other two
apparently do not. The one that succeeds is in EU (Ireland) while the
unfinished hosts are both in different AZs in East US.
I logged in to the hosts which did not resume play and verified that the
temporary directory actually had been deleted.
TASK: [common | Install common packages]
**************************************
<host1> ESTABLISH CONNECTION FOR USER: ubuntu
<host2> ESTABLISH CONNECTION FOR USER: ubuntu
<host3> ESTABLISH CONNECTION FOR USER: ubuntu
<host2> REMOTE_MODULE apt pkg=git,supervisor update_cache=yes state=present
<host1> REMOTE_MODULE apt pkg=git,supervisor update_cache=yes state=present
<host3> REMOTE_MODULE apt pkg=git,supervisor update_cache=yes state=present
<host2> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host2', "/bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031 && echo
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031'"]
<host1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host1', "/bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790 && echo
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790'"]
<host3> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host3', "/bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899 && chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899 && echo
$HOME/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899'"]
<host3> PUT /var/folders/f6/hp9f9y0933q95_9mlbhk27dm0000gn/T/tmpQGGHOr TO
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899/apt
<host1> PUT /var/folders/f6/hp9f9y0933q95_9mlbhk27dm0000gn/T/tmp38enSO TO
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790/apt
<host2> PUT /var/folders/f6/hp9f9y0933q95_9mlbhk27dm0000gn/T/tmpYViEBl TO
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031/apt
<host3> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host3', u'/bin/sh -c \'sudo -k && sudo -H -S -p
"[sudo via ansible, key=uuhortuzkrrxndipfnakoyezwvmlbrrg] password: " -u
root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-uuhortuzkrrxndipfnakoyezwvmlbrrg;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899/apt; rm
-rf /home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-65992156942899/
>/dev/null 2>&1\'"\'"\'\'']
<host1> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host1', u'/bin/sh -c \'sudo -k && sudo -H -S -p
"[sudo via ansible, key=kmkiimakutvlojnbqartowszmpdbndzk] password: " -u
root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-kmkiimakutvlojnbqartowszmpdbndzk;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790/apt; rm
-rf /home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-242263817184790/
>/dev/null 2>&1\'"\'"\'\'']
<host2> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ForwardAgent=yes', '-o',
'IdentityFile="/Users/toreo/.ssh/cargame-ssh.pem"', '-o',
'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'User=ubuntu', '-o',
'ConnectTimeout=10', u'host2', u'/bin/sh -c \'sudo -k && sudo -H -S -p
"[sudo via ansible, key=iyzsrbntouwziaxcxllqidtsopvifmac] password: " -u
root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-iyzsrbntouwziaxcxllqidtsopvifmac;
LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python
/home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031/apt; rm
-rf /home/ubuntu/.ansible/tmp/ansible-tmp-1415964802.72-81109603826031/
>/dev/null 2>&1\'"\'"\'\'']
ok: [host3] => (item=git,supervisor) => {"changed": false, "item":
"git,supervisor"}
On Tuesday, November 11, 2014 1:53:57 PM UTC+1, Tore Olsen wrote:
>
> Hello,
>
> I'm having problems with SSH connections hanging seemingly indefinitely. I
> don't recognize any patterns as to what tasks or handlers this happens on.
> I'm running ansible 1.7.1 on OS X Yosemite against a bunch of ec2
> instances. I also deploy to vagrant but don't think it has had similar SSH
> hangs.
>
> Today I determined to kill -HUP the ssh process that was hung, and then
> ansible resumed happily.
>
> I'd be grateful if anyone has troubleshooting tips for this.
>
> -Tore
>
>
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6b2be8f9-9e25-4300-97fe-74ad0180ab96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.