Time needed: 10 minutes
There are multiple reasons why your minion did not return.
Hereby a couple checks you can do for troubleshooting your Salt – minion configuration.
- Check if your minion is running.
On Linux:
systemctl status salt-minion
On Windows:
Check it with services.msc - Check if you can resolve the salt master.
If not, add to dns or hostfile
- Check your firewall settings.
On both master and minion, maby something is blocked.
To disable the firwall on Linux:
Ubuntu: sudo ufw disable
CentOS: sudo systemctl stop firewalld , sudo systemctl disable firewalld
To disable the firewall on Windows:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False - Test ping your minion.
salt VM01 test.ping
If not..
Then mostly increasing the timeout value of salt master fix it
Sudo nano /etc/salt/master
Search for timeout
Increase it to for example 60
Restart your salt-master.
sudo pkill salt-master
sudo salt-master -d - Reinstall your minion.
The last one, reinstall your minion. If you have more troubleshooting options, please comment below 🙂