[root@saltstack_s ~]# salt '*' test.ping
Salt request timed out. The master is not responding. If this error persists after verifying the master is up, worker_threads may need to be increased.
[root@saltstack_clien2 ~]# getenforce
Enforcing
[root@saltstack_clien2 ~]# setenforce 0
[root@saltstack_clien2 ~]# getenforce
Permissive
首先根据错误提示,修改配置文件/etc/salt/master里面的worker_threads 参数,,将其值改大,重启 master端
网上的其他故障导致
iptables防火墙设置的规则没有save保存,导致master与minion机不通信,解决如下:
[root@scj ~]# iptables -A INPUT -p tcp --dport 4505 -j ACCEPT
[root@scj ~]# iptables -A INPUT -p tcp --dport 4506 -j ACCEPT
[root@scj ~]# /etc/init.d/iptables save
[root@scj ~]# salt "*" test.ping
192.168.186.129:
True