- From: Madhurranjan Mohaan <
>
- To:
- Subject: [chef] Windows chef clients not registering with server
- Date: Mon, 28 Nov 2011 00:16:22 +0530
Hello experts,
I have been able to configure "knife " but I am unable to register a couple of windows boxes that I am playing with in chef. I am running chef 0.10.4. The chef-installer has been installed in c:\opscode\chef.
Home directory where chef-client is running
C:\Documents and Settings\user.ABC\chef-repo\
client.rb on both boxes is configured as -
log_level :info
log_location STDOUT
validation_client_name 'chef-validator'
validation_key 'C:\Documents and Settings\user.ABC\chef-repo\validation.pem'
The error on the 1st box ( The first box also runs knife from %HOMEPATH%/chef-repo/.chef) when I run chef-client -c client.rb -K validation.pem or chef-client -c client.rb
[Sun, 27 Nov 2011 18:24:06 +0000] INFO: *** Chef 0.10.4 ***
[Sun, 27 Nov 2011 18:24:21 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
[Sun, 27 Nov 2011 18:24:21 +0000] WARN: Failed to read the private key validation.pem: #<Errno::ENOENT: No such file or directory - validation.pem>
[Sun, 27 Nov 2011 18:24:21 +0000] FATAL: Stacktrace dumped to C:/var/chef/cache/chef-stacktrace.out
[Sun, 27 Nov 2011 18:24:21 +0000] FATAL: Chef::Exceptions::PrivateKeyMissing: I cannot read validation.pem, which you told me to use to sign requests!
On the 2nd box:
[Sun, 27 Nov 2011 18:40:37 +0000] INFO: *** Chef 0.10.4 ***
[Sun, 27 Nov 2011 18:40:51 +0000] INFO: Client key /etc/chef/client.pem is not present - registering
[Sun, 27 Nov 2011 18:40:53 +0000] FATAL: Stacktrace dumped to C:/var/chef/cache/chef-stacktrace.out
[Sun, 27 Nov 2011 18:40:53 +0000] FATAL: Errno::ENOENT: No such file or directory - /etc/chef/client.pem
"knife client list" shows me that both these agents have been registered as clients but they don't register themselves as nodes.
Logs show:
INFO: Authenticating client chef-validator
INFO: Sending client(4ecf64a7-4ef9-4b8f-abb0-2e08fbe94a63) to the index queue for addition.
merb : chef-server (api) : worker (port 4000) ~ Started request handling: Sun Nov 27 18:40:52 +0000 2011
merb : chef-server (api) : worker (port 4000) ~ Params: {"name"=>"
node1.internal.com", "action"=>"create", "admin"=>false, "controller"=>"clients"}
merb : chef-server (api) : worker (port 4000) ~ {:before_filters_time=>0.014587, :dispatch_time=>0.457, :action_time=>0.455808, :after_filters_time=>2.2e-05}
merb : chef-server (api) : worker (port 4000) ~
Can you please point out what I am missing here ?
thanks
Ranjan
- [chef] Windows chef clients not registering with server, Madhurranjan Mohaan, 11/27/2011
Archive powered by MHonArc 2.6.16.