[chef] Re: Node Role isn't updated


Chronological Thread 
  • From: Ranjib Dey < >
  • To:
  • Subject: [chef] Re: Node Role isn't updated
  • Date: Sun, 30 Jun 2013 09:53:14 -0700

Can you check if the issue is specific to search?
Try;
knife node show <name> -a roles
And check if you can see the role. If you can then its a sold specific issue , otherwise its something to do with chef.
How the role is being applied? Directly using run list or via some other means?

On Jun 30, 2013 7:20 AM, "Michael L." < "> > wrote:
Hi,
I am deploying a windows node with Chef (for the first time I use windows OS with Chef).
All goes well beside one thing:

1. The windows machine has chef client and successfully runs it.
2. I see the windows node amongst other nodes in chef server.
3. I see that the windows machine has the proper "role" name (converter) in its run list.

The major problem is when I am trying to search the nodes under this role name I get empty list:

$ knife search node "roles:converter"
0 items found

Another issue I have noticed:
When I run the chef-client on the windows node, I have 404 warning, below is the full output of chef-client run:

chef-client

[2013-06-30T15:17:09+01:00] INFO: *** Chef 11.4.4 ***
[2013-06-30T15:17:13+01:00] WARN: unable to detect ip6address
[2013-06-30T15:17:25+01:00] INFO: Run List is [role[converter]]
[2013-06-30T15:17:25+01:00] INFO: Run List expands to [windows]
[2013-06-30T15:17:25+01:00] INFO: HTTP Request Returned 404 Not Found: No routes match the request: /reports/nodes/win-conv1/runs
[2013-06-30T15:17:25+01:00] INFO: Starting Chef Run for win-conv1
[2013-06-30T15:17:25+01:00] INFO: Running start handlers
[2013-06-30T15:17:25+01:00] INFO: Start handlers complete.
[2013-06-30T15:17:27+01:00] INFO: Loading cookbooks [chef_handler, windows]
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-api] action install (windows::default line 23)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-service] action install (windows::default line 23)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[windows-api] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[windows-pr] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-dir] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-event] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-mutex] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-api] action install (windows::default line 23)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-service] action install (windows::default line 23)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[windows-api] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[windows-pr] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-dir] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-event] action install (windows::default line 31)
[2013-06-30T15:17:27+01:00] INFO: Processing chef_gem[win32-mutex] action install (windows::default line 31)
[2013-06-30T15:17:31+01:00] INFO: Chef Run complete in 5.4756 seconds
[2013-06-30T15:17:31+01:00] INFO: Running report handlers
[2013-06-30T15:17:31+01:00] INFO: Report handlers complete


Please advise.

Thanks !





Archive powered by MHonArc 2.6.16.

§