Sorry, here goes again:
> Hello,
> I'm running ansible-playbook 1.7.2 on Centos 6 and after running ok for
> a couple of weeks, now I'm getting this:
>
PLAY [all]
********************************************************************
TASK: [Get stats]
*************************************************************
<10.250.1.55> ESTABLISH CONNECTION FOR USER: root
<10.250.1.55> REMOTE_MODULE command cat /usr/src/ap/gateway.ini #USE_SHELL
<10.250.1.55> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto',
'-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/%h-%r',
'-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10',
'10.250.1.55', "/bin/sh -c 'mkdir -p
/tmp/ansible-tmp-1414787762.25-20167395212794 && echo
/tmp/ansible-tmp-1414787762.25-20167395212794'"]
<10.250.1.55> PUT /tmp/tmpRAIc9O TO command
<10.250.1.55> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto',
'-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/%h-%r',
'-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10',
'10.250.1.55', u"/bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python command'"]
failed: [10.250.1.55] => {"failed": true, "parsed": false}
invalid output was: /usr/bin/python: can't open file 'command': [Errno 2]
No such file or directory
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_request_forwards: requesting forwardings: 0 local, 0
remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 1749
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
debug1: mux_client_request_session: master session id: 2
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 2
Shared connection to 10.250.1.55 closed.
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/j_gw_stats.retry
10.250.1.55 : ok=0 changed=0 unreachable=0 failed=1
>
> Note that the /tmp full path is missing. I used to get this:
>
> PLAY [all]
********************************************************************
TASK: [Get stats]
*************************************************************
<10.250.1.55> ESTABLISH CONNECTION FOR USER: root
<10.250.1.55> REMOTE_MODULE command cat /usr/src/ap/gateway.ini #USE_SHELL
<10.250.1.55> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto',
'-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/%h-%r',
'-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10',
'10.250.1.55', "/bin/sh -c 'mkdir -p
/tmp/ansible-tmp-1414784342.55-92617073727981 && echo
/tmp/ansible-tmp-1414784342.55-92617073727981'"]
<10.250.1.55> PUT /tmp/tmpF_msTP TO
/tmp/ansible-tmp-1414784342.55-92617073727981/command
<10.250.1.55> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto',
'-o', 'ControlPersist=60s', '-o', 'ControlPath=/root/.ansible/cp/%h-%r',
'-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o',
'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey',
'-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10',
'10.250.1.55', u"/bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python
/tmp/ansible-tmp-1414784342.55-92617073727981/command; rm -rf
/tmp/ansible-tmp-1414784342.55-92617073727981/ >/dev/null 2>&1'"]
changed: [10.250.1.55] => {"changed": true, "cmd": "cat
/usr/src/ap/gateway.ini", "delta": "0:00:00.072717", "end": "2014-10-31
19:39:07.888074", "rc": 0, "start": "2014-10-31 19:39:07.815357", "stderr":
"", "stdout": "[id]\r\ngatewayid = 1;\r\nhopseed = 1;\r\n\r\n[fw]\r\nfwname
= \"P01-0208.bin\";\r\nfwlength = 79872;\r\nrecords =
2560;\r\n\r\n[noc]\r\nport = 23005;\r\n\r\n[debug]\r\ndebug=0;"}
...snip...
> Same playbook, same command. The playbook has not changed, and the two
> examples you see above were run on the same day. The weird thing is that
> around half the time it now fails with the above symptom. The other half
> it continues to work just fine for the entire playbook. It is as if
> between the EXEC line and the PUT line that the path-to-be-appended is
> being lost.
>
> I have tried reverting to 1.7.1 without success.
> Suggestions?
>
> Thank you,
> Paul
>
--
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/e631954f-1fa1-4f2b-b1ab-e82106333468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.