Book Image

Salt Cookbook

By : Anirban Saha
Book Image

Salt Cookbook

By: Anirban Saha

Overview of this book

Table of Contents (18 chapters)
Salt Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Troubleshooting the Salt minion


Not only the Salt master but also the Salt minions can face a lot of problems. In this recipe, you will learn how to determine the problems with Salt minions and the procedures to troubleshoot and solve them.

How to do it...

  1. Run the following command from the Salt master:

    [root@salt-master ~]# salt -vv 'salt-minion' test.ping
    Executing job with jid 20150220033703911853
    -------------------------------------------
    
    salt-minion:
        Minion did not return. [Not connected]
    
  2. On the minion, check if the salt-minion service is running. If not, start it.

  3. If the preceding issue still persists, check the log file on the minion:

    [root@salt-minion ~]# cat /var/log/salt/minion
    2015-02-20 02:40:44,160 [salt.crypt                               ][CRITICAL] The Salt Master has rejected this minion's public key!
    
  4. To repair this issue, either delete the public key for this minion on the Salt master and restart this minion, or restart the Salt master in open mode to clean out the keys...