[chef] Re: Re: chef-server-ctl reindex with nodes?


Chronological Thread 
  • From: Jesse Campbell < >
  • To: chef < >
  • Subject: [chef] Re: Re: chef-server-ctl reindex with nodes?
  • Date: Fri, 9 Aug 2013 19:46:51 -0400

knife node list shows all the nodes, knife search node id:* lists only the 4 nodes that checked in (most of my nodes only check in overnight)

knife search <insert_data_bag> id:* shows all data bag entries, and looking at the expander log, it definitely reindexed all of the data bag items.

It is now 7 hours later, so i'm thinking it's done and just didn't reindex the nodes...

-Jesse


On Fri, Aug 9, 2013 at 12:42 PM, Seth Falcon < " target="_blank"> > wrote:
Hi there,

"> writes:
> So I restarted the whole server, and ran chef-server-ctl reindex.
>
> After a few minutes everything was there *except* for the nodes
>
> Nodes, it seems, only show up in search when chef client runs on them.
>
> And that happens overnight.
>
> And some of my recipes depend on the results of search.
>
> Any ideas? Any command I can run to push at least what is in the pg db for
> the nodes into solr?

So the way reindex works in Chef 11 Server is that it fetches all
objects out of the db and puts them on the queue to be indexed.

Can you confirm that your nodes are in the db? For example `knife node
list` shows all the nodes you're expecting to see?

Might then be worth looking at some logs of expander and solr. Do you
see logs indicating the reindexing happened? Can you find node data
there or confirm no node data?

How long did you wait? Is it possible that you're expander is working
through the backlog?

+ seth

--
Seth Falcon | Development Lead | Opscode | @sfalcon




Archive powered by MHonArc 2.6.16.

§