-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When ansible can't authenticate against a host, and your answer is no, ansible crash #3466
Comments
Out of curiosity, What operating system are you running from? |
Both are linux (Debian testing) |
Thanks.... looks like I need to make the log locking a little smarter. Will fix this on 1.3. On Mon, Jul 8, 2013 at 9:06 AM, cristobalrosa notifications@github.comwrote:
|
i have the same problem , please any idea for the solution ?? |
Fixes issue #3466 - When ansible can't authenticate against a host, and your answer is no, ansible crash.
fixed per above, so closing |
Hi guys,
I've two hosts on my ansible configuration file. When I try to do a ping against them, and ansible can't authenticate with one of them, Ansible asks me a question:
Are you sure you want to continue connecting (yes/no)?
When my answer is 'no', ansible crashes:
/etc/ansible/hosts:
XXX.XXX.XXX
YYY.YYY.YYY
Steps to reproduce:
ansible all -m ping -u root
paramiko: The authenticity of host 'XXX.XXX.XXX.XXX' can't be established.
The ssh-rsa key fingerprint is zzzzzzzzzzzzzzzz
Are you sure you want to continue connecting (yes/no)?
no
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py", line 70, in _executor_hook
return_data = multiprocessing_runner._executor(host, new_stdin)
File "/usr/local/lib/python2.7/dist-packages/ansible/runner/init.py", line 378, in _executor
self.callbacks.on_unreachable(host, msg)
File "/usr/local/lib/python2.7/dist-packages/ansible/callbacks.py", line 357, in on_unreachable
display("%s | FAILED => %s" % (host, res), stderr=True, color='red', runner=self.runner)
File "/usr/local/lib/python2.7/dist-packages/ansible/callbacks.py", line 114, in display
log_flock(runner)
File "/usr/local/lib/python2.7/dist-packages/ansible/callbacks.py", line 83, in log_flock
fcntl.lockf(LOG_LOCK, fcntl.LOCK_EX)
IOError: [Errno 35] Resource deadlock avoided
yyy.yyy.yyy | success >> {
"changed": false,
"ping": "pong"
}
Ansible has been installed using pip.
The text was updated successfully, but these errors were encountered: