-
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
md5sum command fails unusually with -K #5800
Comments
@phy1729 can you please point out the exact lines in the second output which contain the problem. |
I'd had redirected the output but not stderr so I could see the sudo prompt. Here's just a copy paste from the terminal https://gist.github.com/phy1729/8739115 The first warning is at line 34. |
@phy1729 please "vagrant ssh" to the host, "sudo su -" and then run these two commands:
I would like to see the full output. |
It's a actual server not a vagrant box.
The quote changes each time. |
@phy1729 so the md5sum is different? Can you run it a few times and show me the variations? |
The hash is always the same. The quote after the sudo command changes. I also realized that sudo is setup to be passwordless. |
@phy1729 what connection mode are you using? (ssh/paramiko/smart) What OS/version is the control machine? What version of openssh is on the control machine? |
ssh |
I've got the same issue, I'm using a paramiko connection to a ScientificLinux 6.4 server from Ubuntu 13.10 |
I think I've found the bug. When ansible is called with --ask-sudo-pass, it runs on the remote like this:
Now, when sudo is configured to run passwordless, but ansible runs with --ask-sudo-pass, it expects sudo to ask for a password and expects sudo to actually show that prompt. sudo doens't do that, the output isn't what ansible expects, hence the warning |
So as far as I can tell, this is not an error, but instead is happening because the SSH connection to the host is failing. The Probably the best solution would be to detect an empty stdout from the execution of the md5sum commands and return "INVALIDMD5SUM" in that case. I think this is the course I'm going to take for now. |
This should now be resolved in the devel branch. Please let me know if you continue to have problems with this issue. Thanks! |
"ansible-playbook -i inventory lugbox.yml -CK" gives multiple warnings that md5sum failed unusually; however "ansible-playbook -i inventory lugbox.yml -C" does not. The remote box (lugbox) is Arch Linux. The error is on every copy command.
Playbooks are at https://github.com/utdlug/lug-config using 518ade2
% ansible --version
ansible 1.5 (devel 1584d8f) last updated 2014/01/28 10:03:38 (GMT -500)
-vvvv stdout with -C: https://gist.github.com/1cfea9a4539afd0af127
-vvvv stdout with -CK: https://gist.github.com/4504cb4f07df56ca4b76
The text was updated successfully, but these errors were encountered: