- From: Stuart Cracraft <
>
- To:
- Cc: Stuart Cracraft <
>
- Subject: [chef] Re: Chef 12 duplicates nodes from a node search
- Date: Tue, 09 Jun 2015 20:37:18 -0700
This required the following to fix:
chef-server-ctl reindex ORG
chef-client
My question is why would the index get out-of-order in the first place?
>
On Jun 9, 2015, at 3:58 PM, Stuart Cracraft
>
<
>
>
wrote:
>
>
Has anyone noticed in Chef 12 the following scenario?
>
>
nodes = search(:node, "hostname:*)
>
>
returns duplicates of the last host added.
>
>
So any cookbook which then uses the nodes variable gets a duplicate.
>
>
That's in a ruby recipe and likewise with the cli:
>
>
knife search "hostname:*" -c /etc/chef/client.rb
>
>
also showing a duplicate of the last returned node.
>
>
If you knife node delete and knife client delete the duplicate,
>
the next higher node is then listed as duplicated by the search() query.
>
>
Archive powered by MHonArc 2.6.16.