# Problem with search

**URL:** <https://discourse.chef.io/t/problem-with-search/2335>\
**Category:** Chef Infra (archive)\
**Created:** [January 12, 2012, 3:29am UTC](https://discourse.chef.io/t/problem-with-search/2335 "2012-01-12T03:29:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Jang](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steve_jang/32/690_2.png) [@Steve\_Jang](https://discourse.chef.io/u/Steve_Jang)\
**Post date:** [January 12, 2012, 3:29am UTC](https://discourse.chef.io/t/problem-with-search/2335/1 "2012-01-12T03:29:54Z")

</div>

Hi, Folks,

I have always had bad luck with knife search… it seems to omit some nodes  
that should be listed. (I am running chef server 0.10.4)

Here I can see my [apps1.auto.hulu.com](http://apps1.auto.hulu.com) node using knife command:

$ knife node show [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
Node Name: [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
Environment: automation  
FQDN: [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
IP: 10.16.254.127  
Run List: role[rjs-server]  
Roles: hulu-common, rjs-server  
Recipes: hulu-accounts, hulu-common, runit, rjs-server  
Platform: centos 5.7

As you can see it has role[rjs-server] in the run list. But if I search for  
it as follows, it does not return it.

$ knife search node "role:rjs-server"  
1 items found

Node Name: [apps2.auto.hulu.com](http://apps2.auto.hulu.com)  
Environment: automation  
FQDN:  
IP:  
Run List: role[rjs-server]  
Roles:  
Recipes:  
Platform:

Am I missing something basic here?  
Thanks,

-Steve

---

<div class="post-metadata">

**Author:** ![Steve\_Jang](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steve_jang/32/690_2.png) [@Steve\_Jang](https://discourse.chef.io/u/Steve_Jang)\
**Post date:** [January 12, 2012, 4:17am UTC](https://discourse.chef.io/t/problem-with-search/2335/2 "2012-01-12T04:17:55Z")

</div>

OK... it seems that this has to do with the amount of node data being  
uploaded to chef server.  
I had a machine that was integrated to AD, and it was uploading about 500K  
node data.  
When I disabled passwd ohai plug in, by putting the following line to  
/etc/chef/client.rb:

Ohai::Config[:disabled\_plugins] = ["passwd"]

the node now seems to appear in my search result.

Is there some node data limit for search to work? If there is, is it  
configurable?  
Thanks,

-Steve

On Wed, Jan 11, 2012 at 7:29 PM, Steve Jang [estebanjang@gmail.com](mailto:estebanjang@gmail.com) wrote:

> Hi, Folks,
> 
> I have always had bad luck with knife search... it seems to omit some  
> nodes that should be listed. (I am running chef server 0.10.4)
> 
> Here I can see my [apps1.auto.hulu.com](http://apps1.auto.hulu.com) node using knife command:
> 
> $ knife node show [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
> Node Name: [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
> Environment: automation  
> FQDN: [apps1.auto.hulu.com](http://apps1.auto.hulu.com)  
> IP: 10.16.254.127  
> Run List: role[rjs-server]  
> Roles: hulu-common, rjs-server  
> Recipes: hulu-accounts, hulu-common, runit, rjs-server  
> Platform: centos 5.7
> 
> As you can see it has role[rjs-server] in the run list. But if I search  
> for it as follows, it does not return it.
> 
> $ knife search node "role:rjs-server"  
> 1 items found
> 
> Node Name: [apps2.auto.hulu.com](http://apps2.auto.hulu.com)  
> Environment: automation  
> FQDN:  
> IP:  
> Run List: role[rjs-server]  
> Roles:  
> Recipes:  
> Platform:
> 
> Am I missing something basic here?  
> Thanks,
> 
> -Steve

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [January 12, 2012, 4:27pm UTC](https://discourse.chef.io/t/problem-with-search/2335/3 "2012-01-12T16:27:57Z")

</div>

On Wednesday, January 11, 2012 at 8:17 PM, Steve Jang wrote:

> OK... it seems that this has to do with the amount of node data being uploaded to chef server.  
> I had a machine that was integrated to AD, and it was uploading about 500K node data.  
> When I disabled passwd ohai plug in, by putting the following line to /etc/chef/client.rb:
> 
> Ohai::Config[:disabled\_plugins] = ["passwd"]
> 
> the node now seems to appear in my search result.
> 
> Is there some node data limit for search to work? If there is, is it configurable?  
> You've run in to this:  
> [http://tickets.opscode.com/browse/CHEF-2346](http://tickets.opscode.com/browse/CHEF-2346)

For us to fix it for everyone is tricky because of the way we distribute Solr, but it's simple enough to fix yourself.

--  
Dan DeLeo
