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...
- 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]
- On the minion, check if the
salt-minion
service is running. If not, start it. - 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!
- 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...