启动saltstack时报错:
2020-09-01 19:45:08,062 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:45:27,830 [salt.minion :996 ][ERROR ][16535] Minion unable to successfully connect to a Salt Master. 2020-09-01 19:45:58,109 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:46:48,166 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:47:38,220 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:48:28,265 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:49:18,326 [salt.minion :1045][ERROR ][16535] Error while bringing up minion for multi-master. Is master at 10 .0.0.22 responding? 2020-09-01 19:49:25,592 [salt.utils.parsers:1082][WARNING ][16535] Minion received a SIGTERM. Exiting.(由于公司监控比较严格,报错只能凭记忆编写,赶时间可以直接看第四步)
检查防火墙是否关闭
systemctl status firewalld检查配置文件,是否含有报错内容的ip
egrep -v ‘^#|^$’ /etc/salt/minion检查与master的4505、4506端口通信
echo exit | telnet ip 4505 echo exit | telnet ip 4505/usr/bin/salt-minion查看是否报错
[root@kafka-02 ~]# /usr/bin/salt-minion /usr/lib/python2.7/site-packages/salt/scripts.py:212: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. Salt will drop support for Python 2.7 in the Sodium release or later. ... 巴拉巴拉 ... error:类似于有1.libffi.so.5 not found... 2.phython版本正常启动了,应该是这样的
[root@kafka-02 ~]# /usr/bin/salt-minion /usr/lib/python2.7/site-packages/salt/scripts.py:212: DeprecationWarning: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. Salt will drop support for Python 2.7 in the Sodium release or later. ... The Salt Minion is shutdown.debug列出了,服务器上另有配置文件,打开一看,果然问题就在这。
[root@kafka-02 salt]# cat /etc/salt/minion.d/99.conf master: 10.0.0.22删除该配置文件即可。