-
Notifications
You must be signed in to change notification settings - Fork 26
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
provisioning of hosts freezes #65
Comments
Is this behavior consistent? Or does it only occur some of the time? Also, I'm curious about the last few lines of output:
The Perhaps the root cause of this is that the Vagrant shell provider isn't enabling the synchronous mode of Net:SSH which is causing a race condition when the command is executed before the PTY is allocated. I've seen commands fail/hang in weird ways from using PTY support before, perhaps this is the source of those issues. Anyway, thanks for the bug report! Perhaps there's a better way to work around the |
Some additional information for the related issue. Reproducible every time with:
Vagrant file:
|
Problem still presented. Some more information. I have started After vmjb has been provisioned, up and running, vmjava is being to started up. It will froze when (I think according output in console) vmjava is trying to updata vmjb:/etc/hosts. While vagrant up is frozen like this:
On vmjb machine there seems to be /tmp/hosts present and not swapped yet:
On vmjava (that one which provisioning is currently frozen on another console), it seems that /etc/hosts is fine (through I would suggest to delete /tmp/hosts after successfully copy):
|
When I have configured provisioning of hosts for all machines in config file before listing machines, vagrant provisioning freezes on hosts provisioning step. Simplified Vagrant config (actually not able to reproduce my problem):
Running vagrant up with debug points to not ending some ssh connection:
Given simplified version of script does not stuck, like my original vagrant file (I have provisioning of salt stack there and a few minor things). First time it started to stuck while going up after addition of hosts. Now I am not able to simulate it with simplified environment, but on other side, I am not able to get rid of provision freezing on my work vagrant file. I have also tried to delete .vagrant directory (there was some older machine names which are not used now) and also I have tried to delete ~/.vagrant.d/data dir. Nothing have helped.
I hope that debug log will be enough to fix this problem. If no, please instruct me how to provide more help.
The text was updated successfully, but these errors were encountered: