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
SSH connection errors are unclear #11041
Comments
so in 1.9.1 iirc, we added passing more data from the ssh command line to the ssh errors, please try this with the 1.9 stable version or current devel (2.0), you seem to have an older checkout of devel. |
Updated I'm reporting I'm still seeing Notably now my version is returning 2.0.0 when sourced from hacking/env-setup did I miss something here? |
no, my surprise was that it was returning 1.9 from devel |
Finding a slightly different behavior in the most recent commits {"msg": "ERROR! SSH encountered an unknown error. The output was:\n", "failed": true} ssh foo ansible 2.0.0 (devel 1c85270) last updated 2015/06/03 14:38:43 (GMT -400) |
fixed via bdba807, which restores the previous behavior |
Issue Type:
Bug Report
Ansible Version:
ansible 1.9 (devel ede94dd) last updated 2015/03/29 14:04:17 (GMT -400)
lib/ansible/modules/core: (detached HEAD de4c7f8) last updated 2015/05/19 12:48:28 (GMT -400)
lib/ansible/modules/extras: (detached HEAD cb848fc) last updated 2015/04/03 15:14:36 (GMT -400)
v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/02/26 12:26:47 (GMT -400)
v2/ansible/modules/extras: (detached HEAD 46e316a) last updated 2015/04/03 15:14:36 (GMT -400)
configured module search path = None
Ansible Configuration:
Nothing of note
Environment:
NA
Summary:
Hosts without name resolution result in failures with unclear ssh connection errors.
Steps To Reproduce:
Attempt to connect to a host in inventory which does not have name resolution.
Expected Results:
Ansible with ssh errors more clearly indicates the reason for failure
ansible paramiko
command line ssh
Actual Results:
Ansible with ssh errors are unclear
ansible ssh
Example
If I have hundreds or thousands of hosts some of which need to be bootstrapped in a specific way. I can't tell from the ssh errors if they need to be bootstrapped or if there is some other error which needs to be addressed separately. In the simple case this forces me to fall back to paramiko and bootstrap them all again which is slow.
The text was updated successfully, but these errors were encountered: