-
Notifications
You must be signed in to change notification settings - Fork 155
Eternal hang at "Waiting for SSH to become available" #68
Comments
@derks I don't suppose you've tried running the Vagrantfile since? Doesn't sound like something likely to be transient but... |
@elight Yeah, we've definitely been using it since.. and everything is working fine. I imagine that the cloud provider had issues at the time, being that I couldn't even ssh directly to them. The primary issue however is that I would have expected Vagrant or Fog to timeout at some point... but neither ever did. |
That cloud provider is us (Rackspace) so 🙀! Sorry it took me so long to see this! It may be an issue with excon as well. I'll take a quick look. |
@elight Hey thanks... I am familiar with Support (I was a racker for 9 years ;). However I'm not really concerned about why the servers didn't come up as expected. My concern is as it relates to Vagrant and the Rackspace plugin in this situation. If a server doesn't come up, or Vagrant can not SSH to it for any reason, the plugin should handle that more gracefully. Having Vagrant wait for a server to come up indefinitely, with no timeout, is not very useful (and can be pretty expensive) in automated environments like we are using it for testing. Ideally, Vagrant would have timed out at some point waiting for SSH... my automated tests would have failed... and I would have resolved it in the morning just like anything else. But coming in to find that Vagrant was spinning it's tires on the companies dime was a bit of a PITA. Just hoping to improve the way the plugin handles this type of situation. Hopefully it won't be a regular occurrence, but I'd rather have Vagrant tell me that something failed and that it handled that failure, rather than our bank account revealing that something didn't fail and we ended up paying for those 4 dozen test instances that were only suppose to be online for 5-10 minutes each... but were instead all online for 72 hours over the weekend while nobody was looking. ;) |
I was able to reproduce, or at least create a similar scenario, by building a VM without public_net. Just added this to my Vagrantfile: rs.network '00000000-0000-0000-0000-000000000000', :attached => false It looks like @derks is right. There is a timeout for server creation, but not waiting for SSH: vagrant-rackspace/lib/vagrant-rackspace/action/create_server.rb Lines 121 to 131 in 6860891
|
Fog OpenStack doesn't handle private IPs with respect to SSH. I wonder if the same is true for fog-rackspace. On Tue, Jan 21, 2014 at 9:15 PM, Max Lincoln [email protected]
|
@elight This issue effects all providers. It just opened up an issue for it the other day. It should be easy enough to fix. |
I think there are at least three issues, only one of them related to fog/fog#2584:
Vagrant has a retriable helper that makes the first two fairly easy to fix, but the question of what action to take after all retries are exhausted is interesting. Just exiting with a non-zero error code but would require the user/script to handle the error and cleanup unwanted servers. "Rolling back" gets more complicated, as you'd need to distinguish between |
Alright; @maxlinc is splitting this in two. Let's track discussions there instead. |
I suppose this is likely an issue with Fog more so than vagrant-rackspace, however it should be noted here. Last night half a dozen or so of our builds hung up at "Waiting for SSH to become available" and sat there all night long in that state. In Rackspace I could see that the box was active, but trying "vagrant ssh" also hung manually... and simply "ssh [email protected]" also hung.
As we are using Vagrant for automated testing, etc... I would have expected Vagrant to timeout at some point... am I missing something, or shouldn't this already be implemented?
Thanks.
The text was updated successfully, but these errors were encountered: