Skip to content
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

Running parallel commands that require a sudo password borks input #2680

Closed
purpleidea opened this issue Dec 18, 2013 · 7 comments

Comments

Projects
None yet
3 participants
@purpleidea
Copy link
Contributor

commented Dec 18, 2013

Running a command like:

vagrant destroy host

will cause sudo to prompt if it's necessary to clear an NFS mount for example. It's annoying, but not impossible to enter your password.

Running a parallel command such as:

vagrant destroy host1 host2 ...

Causes multiple sudo prompts to happen at the same time (or near the same time). Attempts to enter a password were not successful. I had to ^c multiple times, and then 'reset' the terminal.

Cheers,
James

This is related to: #2642 and #2643

@purpleidea

This comment has been minimized.

Copy link
Contributor Author

commented Dec 18, 2013

Note: the only workaround I found was to run the command with the --no-parallel flag, unfortunately this disables the parallel goodness.

@tmatilai

This comment has been minimized.

Copy link
Collaborator

commented Dec 18, 2013

@purpleidea As a workaround, would it help to warm up the sudo cache just before?

sudo true; vagrant destroy host1 host2 ...
@purpleidea

This comment has been minimized.

Copy link
Contributor Author

commented Dec 18, 2013

@tmatilai indeed I do, actually, however if the command runs longer than the sudo timeout, it's not possible. Or more specifically, if enough machines are getting deployed/changed, eventually you'll reach timeout and bork the whole lot.

@mitchellh

This comment has been minimized.

Copy link
Member

commented Dec 18, 2013

Good bug. Thanks.

@purpleidea

This comment has been minimized.

Copy link
Contributor Author

commented Dec 18, 2013

@mitchellh no problem. I've been vagrant-ing a lot lately ;) I quite like it so far, except for the occasional bug of course...
cheers!

mitchellh added a commit that referenced this issue Dec 30, 2013

@mitchellh

This comment has been minimized.

Copy link
Member

commented Dec 30, 2013

Fixed

@mitchellh mitchellh closed this Dec 30, 2013

@purpleidea

This comment has been minimized.

Copy link
Contributor Author

commented Dec 30, 2013

Sweet, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.