Search problem(can't search node of windows platform)


#1

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


#2

Could it be that results appear in searches for a few seconds and then
vanish? I’ve reported this in CHEF-2339 for my test Windows nodes; Linux
ones worked without any problems.

I admit that I’ve not tried a version from git recently, this could already
be fixed.

Dan.

-----Original Message-----
From: hishjs@gmail.com [mailto:hishjs@gmail.com]
Sent: 26 July 2011 09:43
To: chef@lists.opscode.com
Subject: [chef] Search problem(can’t search node of windows platform)

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-r
hel-5/

Any help would be appreciated.

Thanks,
Kenji


#3

Maybe?

http://tickets.opscode.com/browse/CHEF-2346