Hi,
I’m trying to search windows nodes using knife-search command.
But knife-search did not return windows nodes with some attributes.
Searching linux nodes works fine.
My chef server is version 0.10.0 and installed on RHEL5.5.
[Node that is registered with the Chef server]
$ knife node list
LinuxNode
WindowsNode
[Search result]
$ knife search node -q “platform:[* TO *]” -a "platform"
1 items found
id: LinuxNode
platform: redhat
However, another query worked ok.
[Search result]
$ knife search node -q “ipaddress:[* TO *]” -a "ipaddress"
2 items found
id: LinuxNode
ipaddress: 192.168.0.1
id: WindowsNode
ipaddress: 192.168.0.2
It seemed that the index for node attributes did not reflect correctly.
I think this is like “CHEF-2117”.
http://tickets.opscode.com/browse/CHEF-2117
But, I used chef 0.10.0 and I could not find “chef-solr/lib/chef/solr.rb”.
In addition, when using Opscode Platform(https://manage.opscode.com/), there is
no problem.
I can search windows nodes with the same query above.
[Product version of my Chef server]
OS :Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Chef :0.10.0
Ohai :0.6.4
ruby :1.8.7 (2011-02-18 patchlevel 334) [i386-linux]
rybygems :1.7.2
RabbitMQ :2.2.0
couchdb :0.11.2
chef-expander :0.10.0
chef-solr :0.10.0
I refered Chef server installation procedure below.
http://blog.frameos.org/2011/04/29/installing-chef-server-0-10-in-centos-5-rhel-5/
Any help would be appreciated.
Thanks,
Kenji