Barry Kaplan
2015-07-27 11:08:10 UTC
I am now getting these errors with a playbook that has been working for
ages. I just recreated the ec2 instances -- so that is what is different --
but they were created using an existing ansible playbook.
I can ssh into the instances. I have added 'scp_if_ssh=True' (base on other
posts with the problem).
Below is the full output. I ran with ANSIBLE_KEEP_REMOTE_FILES=true but
none of the files named below exists on either the control or target nodes.
What could be causing this?
TASK: [Get target plant agent data from consul]
*******************************
<10.0.17.36> ESTABLISH CONNECTION FOR USER: bkaplan
<10.0.16.95> ESTABLISH CONNECTION FOR USER: bkaplan
<10.0.17.36> REMOTE_MODULE consul_kv key=connect/agents/ dc=production
separator=/ action=get
<10.0.16.95> REMOTE_MODULE consul_kv key=connect/agents/ dc=production
separator=/ action=get
<10.0.17.36> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=30m -o ControlPath="/home/bkaplan/.ansible/cp/ansible-ssh-%h
-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 10.0.17.36 /bin/sh -c
'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762 &&
chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762 &&
echo $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762'
<10.0.16.95> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=30m -o ControlPath="/home/bkaplan/.ansible/cp/ansible-ssh-%h
-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 10.0.16.95 /bin/sh -c
'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697 &&
chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697 &&
echo $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697'
<10.0.17.36> PUT /tmp/tmpSRuXAO TO
/home/barry/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762/consul_kv
<10.0.16.95> PUT /tmp/tmpPMQztN TO
/home/barry/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697/consul_kv
fatal: [10.0.17.36] => failed to transfer file to
/home/barry/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762/consul_kv:
Couldn't read packet: Connection reset by peer
fatal: [10.0.16.95] => failed to transfer file to
/home/barry/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697/consul_kv:
Couldn't read packet: Connection reset by peer
FATAL: all hosts have already failed -- aborting
ages. I just recreated the ec2 instances -- so that is what is different --
but they were created using an existing ansible playbook.
I can ssh into the instances. I have added 'scp_if_ssh=True' (base on other
posts with the problem).
Below is the full output. I ran with ANSIBLE_KEEP_REMOTE_FILES=true but
none of the files named below exists on either the control or target nodes.
What could be causing this?
TASK: [Get target plant agent data from consul]
*******************************
<10.0.17.36> ESTABLISH CONNECTION FOR USER: bkaplan
<10.0.16.95> ESTABLISH CONNECTION FOR USER: bkaplan
<10.0.17.36> REMOTE_MODULE consul_kv key=connect/agents/ dc=production
separator=/ action=get
<10.0.16.95> REMOTE_MODULE consul_kv key=connect/agents/ dc=production
separator=/ action=get
<10.0.17.36> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=30m -o ControlPath="/home/bkaplan/.ansible/cp/ansible-ssh-%h
-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 10.0.17.36 /bin/sh -c
'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762 &&
chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762 &&
echo $HOME/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762'
<10.0.16.95> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o
ControlPersist=30m -o ControlPath="/home/bkaplan/.ansible/cp/ansible-ssh-%h
-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 10.0.16.95 /bin/sh -c
'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697 &&
chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697 &&
echo $HOME/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697'
<10.0.17.36> PUT /tmp/tmpSRuXAO TO
/home/barry/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762/consul_kv
<10.0.16.95> PUT /tmp/tmpPMQztN TO
/home/barry/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697/consul_kv
fatal: [10.0.17.36] => failed to transfer file to
/home/barry/.ansible/tmp/ansible-tmp-1437995130.55-158041250609762/consul_kv:
Couldn't read packet: Connection reset by peer
fatal: [10.0.16.95] => failed to transfer file to
/home/barry/.ansible/tmp/ansible-tmp-1437995130.56-253943851193697/consul_kv:
Couldn't read packet: Connection reset by peer
FATAL: all hosts have already failed -- aborting
--
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/da6d76e7-8a98-4bb0-bab2-203f68c8970e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/da6d76e7-8a98-4bb0-bab2-203f68c8970e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.