The "knife ssh" command uses the chef search function. The link to the Chef Indexer , which was suggested by @Manak Wadhwa, says:
The chef's indexer consists of the RabbitMQ message queue, chef-expander, which extracts messages from the queue and formats them, and chef-solr is a thin shell around Solr.
So, you can also check if chef-solr and chef-expander work and work. Ensure that all configuration files have the correct server IP addresses for each component:
- Chef Server
- Chef configuration settings (check solr.rb and server.rb)
Try a simple search from your workstation, for example: knife search node "*:*" or even knife status (the status of the knife uses search) to get a list of all the nodes. I would prefer the status of a knife, as it will return a list of all nodes, while a knife search will return all nodes as objects, and this will not help if you have many nodes. In any case, if the result is a list of all the nodes you have, then the search works as it should. If so, then the next thing I will try is to rebuild the index with:
knife index rebuild -y from the workstation or modify maxFieldLength in the solrconfig.xml file, as described in more detail below (2).
Two other links for checking with troubleshooting: 1. nodes [of the chef] that do not appear in the status of "knife" , where people in the list of options try to execute the command knife index rebuild -y to rebuild the search index and check related with cache-solr directories permissions.
2. CHEF-2346 , where they talk about maxFieldLength in solr for systems that produce large amounts of index data. Indexing data, as you probably already know, is data obtained from ohai and all attributes, nodes, databases, etc. The case I had was with all my window systems, as with most other people. (The reason I also provide this link is because I cannot estimate the amount of your indexing data.) LDAP, for example, can generate a large amount of data. Of course, if you have large amounts of data in your case, you can disable several ohai plugins if you do not need them. (Disable Ohai plugins.)
source share