-
Notifications
You must be signed in to change notification settings - Fork 1.9k
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fabric "needs to prompt" in parallel mode, but not in serial mode #1433
Comments
Okay this issue is completely off. Someone changed the list of hosts in some environment variable such that one of the hosts was called Still, Fabric shouldn't say that it's prompting for a password when it couldn't possibly SSH to the host. |
// , Fabric isn't really designed to run in Parallel mode, and is not thread safe in it. Consider a saner library if you need this sort of thing |
Yeah, Fabric 1 is pretty sloppy with how it runs. Fabric 2 is supposed to fix a lot of these issues. I actually had good success with using the Ansible Python API. The documentation sucked at the time, but I was able to write a concurrent build system with it. What other libraries would you suggest? |
// , I think ParallelSSH was designed to solve the problems you mentioned above: https://github.com/ParallelSSH/parallel-ssh#frequently-asked-questions |
// , Fabric was mostly intended as a faithful port of Capistrano. |
I'm getting this error when running a Fabric task in parallel mode:
This is with the following code:
However, if I turn off parallel, I don't see any SSH password or sudo prompts, or any errors about them:
@parallel(pool_size=1)
I can also confirm that there are no prompts when SSHing to the
node01
andnode02
boxes manually, nor are there any sudo prompts when running the exact commands on the boxes.This seems to only be an issue with parallel mode.
I've had so many issues with password prompts that I think it would be a good idea to have global settings for disabling both SSH password and sudo prompts. Fabric seems to guess that the prompts are necessary, and breaks when there is no standard input (when using Atlassian Bamboo, Jenkins, or some other build system).
I'd prefer to just manually tell Fabric never to prompt for anything, and fail if the operating system actually prompts.
The text was updated successfully, but these errors were encountered: