- From: Daniel Oliver <
>
- To: "
" <
>
- Subject: [chef] RE: Search problem(can't search node of windows platform)
- Date: Tue, 26 Jul 2011 09:50:53 +0100
- Accept-language: en-US
- Acceptlanguage: en-US
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:
[mailto:
Sent: 26 July 2011 09:43
To:
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Archive powered by MHonArc 2.6.16.