O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connectivity, DNS, and ports

In this recipe, you will learn about the network and network-service-related problems, which can affect both master and minions in Salt.

How to do it...

  1. When communication between the Salt master and the minion fails, the log file on the minion tells us about the suspected problem:
    2015-02-20 03:46:32,765 [salt.utils       ][ERROR   ] DNS lookup of 'salt-master' failed.
    2015-02-20 03:46:32,765 [salt.minion      ][ERROR   ] Master hostname: 'salt-master' not found. Retrying in 30 seconds
    
  2. Try to reach the Salt master:
    [root@salt-minion ~]# ping salt-master
    ping: unknown host salt-master
    
  3. Add a DNS entry for the Salt master. If it is already present, check the /etc/resolv.conf file to see if the DNS servers are properly set. Also, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required