- From: Douglas Garstang <
>
- To:
- Subject: [chef] Chef Search Again
- Date: Tue, 16 Jun 2015 11:50:33 -0700
The battle continues with chef search. I'm trying to use chef search to discover zookeeper nodes. The very first thing in my run list is node.save, which seems to cause the Chef server to immediately have access to the data I need, the role and the environment.
I just did a test, where one window had the result of "knife search node "chef_environment:dev AND roles:role-zookeeper". I could see that the data was populated immediately after the call to node.save. A few minutes later, when the recipe did it's search, no nodes were found, as evidenced from an empty log() statement in the recipe.
I've run the test a few times, and basically, the result are unreliable. On my latest test, two of the nodes discovered all three nodes, and one of the nodes discovered only one node (not itself btw).
How can I make this reliable?
Doug
- [chef] Chef Search Again, Douglas Garstang, 06/16/2015
Archive powered by MHonArc 2.6.16.