[chef] Re: Re: Re: Re: Re: node search does not return all hosts


Chronological Thread 
  • From: Joshua Timberman < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] Re: Re: Re: Re: Re: node search does not return all hosts
  • Date: Mon, 24 Oct 2011 09:02:22 -0600

Hi Brian,

You can add the following line to your /etc/chef/client.rb to disable user/group information plugin in ohai:

Ohai::Config[:disabled_plugins] = [ "passwd" ]

Then rerun chef-client on nodes and they will be indexed without the data from LDAP. You won't get the local user/group info either, however.

More information here,

I believe this is probably the issue, but not sure how to fix it.  I've discovered the nodes that have the issue have LDAP enabled, which include in the node attributes all our users and groups causing the nodes size to go from 50k json to over 150k when I run knife node show node -l -F json.  If I remove ldap from the node the search works fine on the node.  I don't have any errors in the solr log so I am not sure what setting needs to change.  Anyone have any ideas on what it could be?


Brian Smith
Senior Network Engineer . Bonnier Corporation
">
407.212.7090


On Tue, Oct 18, 2011 at 11:06 AM, Ranjib Dey < "> > wrote:
theres a setting in solr that limits the amount of index data, can you check the solr logs, you can change the max indexable data size and check if that fixes the problem


On Tue, Oct 18, 2011 at 8:34 PM, Brian Smith < " target="_blank"> > wrote:
Thanks for the reply.

The chef server is chef version 0.10.4 and ohai 0.6.4.
On the node having issues  chef 0.10.4 and ohai 0.6.4.
Running ohai hostname on the node returns the hostname correctly and so does the knife show command from the chef server.


Brian Smith
Senior Network Engineer . Bonnier Corporation
" target="_blank">
407.212.7090


On Tue, Oct 18, 2011 at 10:36 AM, Bryan McLellan < " target="_blank"> > wrote:
On Tue, Oct 18, 2011 at 10:22 AM, Brian Smith
< " target="_blank"> > wrote:
> Hello, I am having an issue I am trying to work out with chef.  I have two
> nodes that will not return when doing a node search with hostname:[* TO *]
> but if I use fqdn:[* TO *] they show up. Any suggestions on how to
> troubshoot and correct the issue.  If I look at the node in chef hostname
> and fqdn are defined in chef and hostname and hostname -f resolve correctly
> on the 2 servers that don't show up.  There is a hosts entry on the servers
> also for hostname and hostname.domainname on the server too.

What version of Chef and Ohai are you using?

Can you run 'ohai hostname' on the hosts that aren't working and get
the correct value?

If so, does 'knife node show NODENAME -a hostname' return the proper data?






Archive powered by MHonArc 2.6.16.

§