saltstack故障解決
故障一:
[root@scj ~]# salt '*' test.ping
[ERROR] Salt request timed out. If this error persists, worker_threads may need to be increased.
Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
解決方法:
首先根據錯誤提示,修改配置文件/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