Issue #9536 has been reported by Dan Bode.

----------------------------------------
Bug #9536: unhandled connaction error Errno::ECONNRESET
https://projects.puppetlabs.com/issues/9536

Author: Dan Bode
Status: Unreviewed
Priority: Normal
Assignee: 
Category: cloudpack
Target version: 
Keywords: 
Branch: 


I can reliably recreate the following failure with the test harness:

It looks like cloud provisioner does not handle tcp resets.


<pre>
 [00;00m  * test that we can install PE agent on 
ec2-107-20-113-101.compute-1.amazonaws.com
 [01;30mcentos-55-386-3: RemoteExec(["puppet node install --keyfile 
/root/.ssh/id_rsa --login ubuntu --install-script=gems --server 
ec2-50-16-130-206.compute-1.amazonaws.com --debug --verbose --trace 
ec2-107-20-113-101.compute-1.amazonaws.com"])
 [00;00m [01;30m
 [00;00m [01;30m<STDOUT>
centos-55-386-3:  [0;36mnotice: Waiting for SSH response ... [0m
 [0;32minfo: Executing remote command ... [0m
 [0;32minfo: Failed to connect with issue Connection refused - connect(2) 
(Retry 1) [0m
 [0;32minfo: This may be because the machine is booting.  Retrying the 
connection... [0m
 [0;32minfo: Executing remote command ... [0m
 [0;32minfo: Connection test timed-out: (Retry 2) [0m
 [0;32minfo: This may be because the machine is booting.  Retrying the 
connection... [0m
 [0;32minfo: Executing remote command ... [0m
 [1;35merr: Unhandled connection robustness error: Errno::ECONNRESET 
[#<Errno::ECONNRESET: Connection reset by peer>] [0m
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/agent.rb:156:in
 `read'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/agent.rb:156:in
 `read_packet'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/agent.rb:167:in
 `send_and_wait'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/agent.rb:85:in
 `negotiate!'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/agent.rb:57:in
 `connect'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:174:in
 `agent'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/key_manager.rb:100:in
 `each_identity'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/methods/publickey.rb:19:in
 `authenticate'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:73:in
 `authenticate'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:65:in
 `each'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh/authentication/session.rb:65:in
 `authenticate'
/opt/puppet/lib/ruby/gems/1.8/gems/net-ssh-2.1.4/lib/net/ssh.rb:187:in `start'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/cloudpack.rb:542:in 
`ssh_remote_execute'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/cloudpack.rb:579:in 
`ssh_test_connect'
/opt/puppet/lib/ruby/1.8/timeout.rb:67:in `timeout'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/cloudpack.rb:578:in 
`ssh_test_connect'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/cloudpack.rb:622:in 
`ssh_connect'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/cloudpack.rb:511:in 
`install'
/opt/puppet/puppetlabs-cloud-provisioner/lib/puppet/face/node/install.rb:13:in 
`install implementation, required on Ruby 1.8'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/interface/action.rb+eval[wrapper]:203:in
 `__send__'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/interface/action.rb+eval[wrapper]:203:in
 `install'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:235:in `send'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application/face_base.rb:235:in `main'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:315:in `run_command'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:411:in `hook'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:402:in `exit_on_fail'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/application.rb:307:in `run'
/opt/puppet/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:69:in `execute'
/usr/local/bin/puppet:4
 [1;35merr: Connection reset by peer [0m
 [1;35merr: Try 'puppet help node install' for usage [0m

</STDOUT>
 [00;00m [01;30m<STDERR>
centos-55-386-3: 
</STDERR>
 [00;00m [01;30mcentos-55-386-3: Exited with 1
 [00;00m
 [01;31mError: 
../puppet-cloudpack/acceptance_tests/tests/create_ec2_instance.rb failed
 [00;00m [01;31m [00;00m  Test Suite: acceptance @ Thu Sep 15 23:44:13 -0700 
2011
</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