- From: GOUTAM CHIRANIA <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Knife Bootstrap for installing anf configuring chef client
- Date: Mon, 19 Nov 2012 01:35:58 +0530
Hi,
while using knife bootstraping it fails out with these errors could
you please in to it . i've attached the file
On Sun, Nov 18, 2012 at 11:19 PM, GOUTAM CHIRANIA
<
>
wrote:
>
Thanks a lot Jeremiah.. :)
>
>
On Sun, Nov 18, 2012 at 6:47 PM, Jeremiah Snapp
>
<
>
>
wrote:
>
> "knife bootstrap" is run from a system (typically a management
>
> workstation) that already has chef-client installed and configured
>
> correctly. "knife bootstrap" is used to install chef-client on other
>
> systems (nodes). During the bootstrap process it uses the information
>
> from your management workstation to correctly configure chef-client on
>
> the node getting bootstrapped.
>
>
>
> The rpms you are using are very out of date but if you want to
>
> continue down that path for now then I would log into your chef-server
>
> and install chef-client using these instructions.
>
>
>
> http://blog.frameos.org/2011/11/04/installing-chef-client-from-rbel-in-rhelcentos/
>
>
>
> Then you should be able to run the following command to configure
>
> knife on your chef-server. You may need to run it as root. You can
>
> change chef.admin and '~/chef-repo' to whatever you want.
>
> cd ~
>
> knife configure -i --defaults -u chef.admin -r ~/chef-repo
>
> knife client list
>
>
>
> Knife should query the server and display 'chef.admin' as proof that
>
> it's working.
>
>
>
> On your workstation you should just use the chef-client install script
>
> found at http://www.opscode.com/chef/install/ to install chef-client.
>
>
>
> Then you can copy the ~/.chef directory from your chef-server to your
>
> management workstation. You will also need to copy the
>
> /etc/chef/validation.pem file from your chef-server to your ~/.chef
>
> directory on your workstation. You will need to modify the paths and
>
> probably the url in ~/.chef/knife.rb on your workstation. Now run
>
> 'knife client list' from your workstation and see if it works.
>
>
>
> Now you should be able to run 'knife bootstrap' from your workstation
>
> to bootstrap other systems (nodes).
>
>
>
> This new blog post might help you if you'd rather not use frameos.org's
>
> rpm's.
>
> http://jtimberman.housepub.org/blog/2012/11/17/install-chef-10-server-on-centos/
chef]# knife bootstrap 10.190.201.39
Bootstrapping Chef on 10.190.201.39
Failed to authenticate root - trying password auth
Enter your password:
10.190.201.39 [2012-11-18T13:35:17-06:00] INFO: *** Chef 10.16.2 ***
10.190.201.39 [2012-11-18T13:35:18-06:00] INFO: Client key
/etc/chef/client.pem is not present - registering
10.190.201.39 [2012-11-18T13:35:18-06:00] ERROR: Connection refused
connecting to localhost:4000 for /clients, retry 1/5
10.190.201.39 [2012-11-18T13:35:23-06:00] ERROR: Connection refused
connecting to localhost:4000 for /clients, retry 2/5
10.190.201.39 [2012-11-18T13:35:28-06:00] ERROR: Connection refused
connecting to localhost:4000 for /clients, retry 3/5
10.190.201.39 [2012-11-18T13:35:33-06:00] ERROR: Connection refused
connecting to localhost:4000 for /clients, retry 4/5
10.190.201.39 [2012-11-18T13:35:38-06:00] ERROR: Connection refused
connecting to localhost:4000 for /clients, retry 5/5
10.190.201.39
10.190.201.39
================================================================================
10.190.201.39
10.190.201.39 Chef encountered an error attempting to create the client
"RHEL_5.3_x64"
10.190.201.39
10.190.201.39
================================================================================
10.190.201.39
10.190.201.39
10.190.201.39 Network Error:
10.190.201.39
10.190.201.39 --------------
10.190.201.39
10.190.201.39 There was a network error connecting to the Chef Server:
10.190.201.39 Connection refused - Connection refused connecting to
localhost:4000 for /clients, giving up
10.190.201.39
10.190.201.39 Relevant Config Settings:
10.190.201.39
10.190.201.39 -------------------------
10.190.201.39
10.190.201.39 chef_server_url "
http://localhost:4000"
10.190.201.39
10.190.201.39 If your chef_server_url is correct, your network could be down.
10.190.201.39
10.190.201.39 [2012-11-18T13:35:43-06:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
10.190.201.39 [2012-11-18T13:35:43-06:00] FATAL: Errno::ECONNREFUSED:
Connection refused - Connection refused connecting to localhost:4000 for
/clients, giving up
Archive powered by MHonArc 2.6.16.