[Crowbar] crowbar installtion failure Errno::ECONNREFUSED

Andi_Abes at Dell.com Andi_Abes at Dell.com
Mon Jul 9 11:50:56 CDT 2012


It stays yellow (not blinking) since you haven’t actually deployed anything to the machine…..

Hmm… your install seems abit hosed…. The exception seems to indicate that crowbar networking wasn’t fully installed on the admin node. It might be because the expected parameter to the install script is a node name, not domain name…. validation should have caught it..


So, rather than
- run ./install mydomain.com

Do:
- run ./install admin.mydomain.com



Hth
a


From: Ramon Makkelie [mailto:ramon.makkelie at klm.com]
Sent: Monday, July 09, 2012 12:10 PM
To: Abes, Andi
Cc: crowbar
Subject: RE: [Crowbar] crowbar installtion failure Errno::ECONNREFUSED

okay i got the fred2 iso partly  to work not without problems though

steps i have been trough

- installed the essex-fred2.iso
- rebooted
- run ./install mydomain.com
- restarted
- run chef-client
- now crowbar and nagios and chef-server are all up and running

at this point i can run chef-client and no errors show up.
but this all changed when i connected a second machine to the network

the machine installed from pxe booting
and came up in to crowbar
i assigned it
the machine installed ubuntu and i could log in
but it only installed the ubuntu image it stayed yellow in crowbar

so loged in to the machine run chef-client. but it told me that the run list was empty
so i looked in to crowbar again and noticed that the admin server in crowbar was gray
and the state was No Data (off).
bu the server definitely on.

so now i tried to run chef-client again on the admin server
and showed me the following error







[Mon, 09 Jul 2012 18:01:25 +0200] INFO: *** Chef 10.12.0 ***

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Run List is [role[crowbar], role[deployer-client], role[crowbar-admin_crowbar_klm_com]]

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Run List expands to [utils, sudo, crowbar, barclamp, repos, crowbar-hacks, ohai, kernel-panic, bmc-nat::router, network::switch_config, network, resolver, bind9, logging::server, ntp, ganglia::server, nagios::server, dhcp, nfs-server, provisioner::dhcp_update, provisioner::update_nodes, provisioner::setup_base_images, provisioner::base]

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Starting Chef Run for admin.crowbar.klm.com

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Running start handlers

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Start handlers complete.

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Loading cookbooks [apache2, barclamp, bind9, bluepill, bmc-nat, crowbar, crowbar-hacks, dhcp, ganglia, ipmi, kernel-panic, logging, nagios, network, nfs-server, ntp, ohai, provisioner, rails, repos, resolver, ruby, sudo, utils]

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: ohai plugins will be at: /etc/chef/ohai_plugins

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Processing directory[/etc/chef/ohai_plugins] action create (ohai::default line 23)

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Processing remote_directory[/etc/chef/ohai_plugins] action create (ohai::default line 32)

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Processing cookbook_file[/etc/chef/ohai_plugins/crowbar.rb] action create (dynamically defined)

[Mon, 09 Jul 2012 18:01:26 +0200] INFO: Processing cookbook_file[/etc/chef/ohai_plugins/README] action create (dynamically defined)

[Mon, 09 Jul 2012 18:01:27 +0200] INFO: Conduit mapping for this node:  {"intf0"=>{"if_list"=>["eth0"]}, "intf1"=>{"if_list"=>["eth0"]}, "intf2"=>{"if_list"=>["eth0"]}}

[Mon, 09 Jul 2012 18:01:27 +0200] INFO: will allow routers from admin

[Mon, 09 Jul 2012 18:01:27 +0200] INFO: Current interfaces:

{"eth0"=>{:config=>"static", :broadcast=>"192.168.124.255", :netmask=>"255.255.255.0", :order=>0, :router=>"192.168.124.1", :ipaddress=>"192.168.124.10", :interface_list=>[], :interface=>"eth0", :auto=>true}}



[Mon, 09 Jul 2012 18:01:27 +0200] INFO: New interfaces:

{"eth0"=>{:config=>"static", :broadcast=>"192.168.124.255", :netmask=>"255.255.255.0", :order=>0, :router=>"192.168.124.1", :interface_list=>[], :ipaddress=>"192.168.124.10", :auto=>true, :interface=>"eth0"}}



[Mon, 09 Jul 2012 18:01:27 +0200] INFO: eth0 did not change, skipping.

[Mon, 09 Jul 2012 18:01:27 +0200] INFO: Sleeping for 0 seconds due new link coming up

[Mon, 09 Jul 2012 18:01:27 +0200] ERROR: Running exception handlers

[Mon, 09 Jul 2012 18:01:27 +0200] FATAL: Saving node information to /var/cache/chef/failed-run-data.json

[Mon, 09 Jul 2012 18:01:27 +0200] ERROR: Exception handlers complete

[Mon, 09 Jul 2012 18:01:27 +0200] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out

[Mon, 09 Jul 2012 18:01:27 +0200] FATAL: NoMethodError: undefined method `[]' for nil:NilClass


in the stacktrace /var/cache/chef/chef-stacktrace.out






Generated at Mon Jul 09 18:03:51 +0200 2012

NoMethodError: undefined method `[]' for nil:NilClass

/var/cache/chef/cookbooks/barclamp/libraries/barclamp_library.rb:25:in `list_networks'

/var/cache/chef/cookbooks/bind9/recipes/default.rb:149:in `from_file'

/var/cache/chef/cookbooks/bind9/recipes/default.rb:145:in `each'

/var/cache/chef/cookbooks/bind9/recipes/default.rb:145:in `from_file'

/usr/lib/ruby/vendor_ruby/chef/cookbook_version.rb:578:in `load_recipe'

/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:46:in `load_recipe'

/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:33:in `include_recipe'

/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:27:in `each'

/usr/lib/ruby/vendor_ruby/chef/mixin/language_include_recipe.rb:27:in `include_recipe'

/usr/lib/ruby/vendor_ruby/chef/run_context.rb:72:in `load'

/usr/lib/ruby/vendor_ruby/chef/run_context.rb:69:in `each'

/usr/lib/ruby/vendor_ruby/chef/run_context.rb:69:in `load'

/usr/lib/ruby/vendor_ruby/chef/client.rb:199:in `setup_run_context'

/usr/lib/ruby/vendor_ruby/chef/client.rb:162:in `run'

/usr/lib/ruby/vendor_ruby/chef/application/client.rb:254:in `run_application'

/usr/lib/ruby/vendor_ruby/chef/application/client.rb:241:in `loop'

/usr/lib/ruby/vendor_ruby/chef/application/client.rb:241:in `run_application'

/usr/lib/ruby/vendor_ruby/chef/application.rb:70:in `run'

/usr/bin/chef-client:25




i hope someone can help me out here


On Fri, 2012-07-06 at 12:43 +0200, Andi_Abes at Dell.com<mailto:Andi_Abes at Dell.com> wrote:
So, the temporary failure is known – while the rails app starts, it might spit a few connection attempts, but eventually succeeds.

The install then tries to make sure that chef-expander is done processing all the updates into solr (the indexing engine that’s part of chef) – that’s what the “expander queue total” messages report – how many updates are pending. This is relatively heavy work, and requires quite a lot of memory.



I’m not familiar with the z210 – what cpu/memory does it have?


From: crowbar-bounces On Behalf Of Ramon Makkelie
Sent: Friday, July 06, 2012 6:14 AM
To: crowbar
Subject: [Crowbar] crowbar installtion failure Errno::ECONNREFUSED



hi,

i have hp z210 machine and tried to install the Crowbar 1.4 RC with OpenStack Essex<http://crowbar.zehicle.com/openstack-fred2.iso> (Ubuntu 12.04)
from  http://crowbar.zehicle.com/

all go's fine until i run ./install admin.crowbar.mydomain.com

at first i get this error

Install run done for version: v1.2-openstack-2403-g5b608ce-dev







2012-07-05 10:52:25 -0500: Running chef-client

[Thu, 05 Jul 2012 10:52:25 -0500] INFO: *** Chef 10.12.0 ***

[Thu, 05 Jul 2012 10:52:26 -0500] INFO: Client key /etc/chef/client.pem is not present - registering

[Thu, 05 Jul 2012 10:52:26 -0500] INFO: HTTP Request Returned 500 Internal Server Error: Connection refused - connect(2)

[Thu, 05 Jul 2012 10:52:26 -0500] ERROR: Server returned error for http://admin.crowbar.klm.com:4000/clients, retrying 1/5 in 3s

[Thu, 05 Jul 2012 10:52:29 -0500] INFO: HTTP Request Returned 409 Conflict: Client already exists

[Thu, 05 Jul 2012 10:52:29 -0500] INFO: HTTP Request Returned 403 Forbidden: You are not allowed to take this action.

[Thu, 05 Jul 2012 10:52:29 -0500] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out

[Thu, 05 Jul 2012 10:52:29 -0500] FATAL: Net::HTTPServerException: 403 "Forbidden"





and when i browse to the chef server

and delete the admin.crowbar.mydomain.com client

(because i thought there was maby something wrong with the rsa key or something)



and then i re-run the script again and get the following error





2012-07-06 02:52:37 -0500: service chef-server restart failed.

See /var/log/install-svc.log and /var/log/install-svc.err for more information.

/opt/dell/bin/barclamp_lib.rb:446:in `run_sub_command': /opt/dell/bin/barclamp_lib.rb:446:in `run_sub_command': /usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)

        from /usr/lib/ruby/1.8/net/http.rb:560:in `open'

        from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'

        from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'

        from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'

        from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'

        from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'

        from /usr/lib/ruby/1.8/net/http.rb:542:in `start'

        from /usr/lib/ruby/1.8/net/http.rb:440:in `start'

        from /opt/dell/bin/barclamp_lib.rb:109:in `authenticate'

        from /opt/dell/bin/barclamp_lib.rb:131:in `get_json'

        from /opt/dell/bin/barclamp_lib.rb:243:in `proposal_list'

        from (eval):1:in `run_sub_command'

        from (eval):1:in `eval'

        from /opt/dell/bin/barclamp_lib.rb:446:in `run_sub_command'

        from (eval):1:in `run_sub_command'

        from /opt/dell/bin/barclamp_lib.rb:450:in `eval'

        from /opt/dell/bin/barclamp_lib.rb:446:in `run_sub_command'

        from /opt/dell/bin/barclamp_lib.rb:450:in `run_command'

        from /opt/dell/bin/barclamp_lib.rb:455:in `main'

        from /opt/dell/bin/crowbar_crowbar:21

Proposal create failed, pass 3.  Will kick Chef and try again.

Created default

Committed default

Expander Queue Total =        166

Expander Queue Total =        166

Expander Queue Total =        166

Expander Queue Total =        167

Expander Queue Total =        167

Expander Queue Total =        168

Expander Queue Total =        168

Expander Queue Total =        169

Expander Queue Total =        170

Expander Queue Total =        170

Expander Queue Total =        171

Expander Queue Total =        171

Expander Queue Total =        172

Expander Queue Total =        172

Expander Queue Total =        173

Expander Queue Total =        172


********************************************************
For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286
********************************************************


********************************************************
For information, services and offers, please visit our web site: http://www.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286
********************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/crowbar/attachments/20120709/9f6f487d/attachment-0001.html 


More information about the Crowbar mailing list