saltstack故障解决

[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

 

posted @ 2015-11-27 18:31  众里寻,阑珊处  阅读(1237)  评论(0编辑  收藏  举报
返回顶部