-
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
Fetch module does not understand sudo #3111
Comments
I'm not sure it ever did though. The idea is fetch would have to revert to slurp usage when it couldn't We never implemented that. On Mon, Jun 3, 2013 at 3:46 PM, Romeo Theriault notifications@github.comwrote:
|
Just tried again on 1.1 and it works great for me. |
Perhaps this is something you would like to try to work on? |
Sure. I'll see if I can track down what changed in the fetch module between 1.1 and now and see if I can "fix" it or what the deal is. Pretty swamped at work so no promises on time but I'll see what I can do. |
I don't think I'll have time to track down the root cause of this for a while but I enabled verbose (-vvv) logging on 1.1 where it worked and 1.2 where it's not and put both of their outputs into a gist so you can see what's happening: https://gist.github.com/romeotheriault/dd8e833797daf248afd0 Hope this helps. |
Tried the 1.1 fetch.py (/usr/lib/python2.6/site-packages/ansible/runner/action_plugins) on 1.2 to see if it was any of the changes to the fetch action_plugin which may be causing the issue. It still fails exactly the same way so it appears to be some change outside of the fetch action_plugin that's causing the issue. |
We know fetch isn't sudo aware currently. See my previous comment about slurp. I'll assume we never implemented it. |
Testing some of the things I do in 1.1 on 1.2 and notice that 'fetch' is failing for me on a playbook where it used to work fine.
This is now failing on most hosts whereas it worked fine on all hosts on 1.1. The error I'm getting with -v is:
fatal: [odb27.pvt.hawaii.edu] => failed to transfer file from /etc/init.d/dbora
fatal: [odb39.pvt.hawaii.edu] => failed to transfer file from /etc/init.d/dbora
fatal: [odb41.pvt.hawaii.edu] => failed to transfer file from /etc/init.d/dbora
fatal: [odb42.pvt.hawaii.edu] => failed to transfer file from /etc/init.d/dbora
It seems that fetch is now trying to grab the file before sudoing, or something similar, whereas before this worked fine.
The text was updated successfully, but these errors were encountered: