Issue #8676 has been updated by Carl Caum.

I've managed to track down what I think is the cause.  Net::SSH waits for SSH 
to connect, which is good.  The problem is that once the ssh server starts, it 
immediately allows connections even though it's not really ready.  Thus the 
connection hangs and times out.  I've reproduced this several times with the 
ssh command on the command line.    

If we can have the ssh_test_connect method test to see if the server is 
listening instead of waiting for a login, then sleep for one second, I think it 
will fix the issue.  
----------------------------------------
Bug #8676: Bootstrap can timeout waiting for instance
https://projects.puppetlabs.com/issues/8676

Author: Carl Caum
Status: Accepted
Priority: Normal
Assignee: 
Category: cloudpack
Target version: 
Keywords: 
Branch: 


When doing a bootstrap on an instance, I got an error saying there is no route 
to the host.  However after the error I can ssh in to the instance fine

<pre>
[root@ip-10-204-65-156 .ssh]# puppet node bootstrap --image=ami-3624d65f 
--keypair ccaum_rsa --login root --keyfile /root/.ec2/ccaum_rsa.pem --certname 
puppetagent02 --type m1.small
notice: Creating new instance ...
notice: Creating new instance ... Done
notice: Creating tags for instance ...
notice: Creating tags for instance ... Done
notice: Launching server i-1f2e937e ...
############################################################################################
notice: Server i-1f2e937e is now launched
notice: Server i-1f2e937e public dns name: 
ec2-50-19-161-122.compute-1.amazonaws.com
notice: Waiting for SSH response ...
err: Unhandled connection robustness error: Errno::EHOSTUNREACH 
[#<Errno::EHOSTUNREACH: No route to host - connect(2)>]
err: No route to host - connect(2)
err: Try 'puppet help node bootstrap' for usage
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to