[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 13:35:09 -0700

even if the search fails, `knife node show <nodename> -a roles` should reflect the roles, as long as chef-client on the node ran successfully and posted the data back to chef server



On Sun, Jun 30, 2013 at 1:26 PM, Peter Donald < " target="_blank"> > wrote:
Hi,


On Monday, July 1, 2013, 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
 
My guess is that the windows node is producing too much ohai data and is thus silently failing to be indexed and if that is the case then no search will return the node. To fix this you can disable ohai plugins from the node, remove ohai data explicitly at the end of chef run or update the indexer to handle the larger size.

For the last one search in the sole config file (sole-config.xml iirc) and look for value for maxKeysize or similar - it will be 10000 - add an extra 0 in. Sorry for being less specific but I am away from my laptop.


--
Cheers,

Peter Donald




Archive powered by MHonArc 2.6.16.

§