Error while bringing up minion for multi-master.

部署saltstack3000.2版本

启动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.

排错第三步:

salt-minion报错日志路径:/var/log/salt/minion

排错第四步:(解决了我的问题)

[root@kafka-02 ~]#  salt-minion -l debug
/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.
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG   ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG   ] Configuration file path: /etc/salt/minion
[DEBUG   ] Configuration file path: /etc/salt/minion.d/99.conf
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO    ] Setting up the Salt Minion "minion-02"
[INFO    ] An instance is already running. Exiting the Salt Minion
[INFO    ] Shutting down the Salt Minion
[DEBUG   ] Stopping the multiprocessing logging queue listener
[DEBUG   ] closing multiprocessing queue
[DEBUG   ] joining multiprocessing queue thread
[DEBUG   ] Stopped the multiprocessing logging queue listener
The Salt Minion is shutdown.

debug列出了,服务器上另有配置文件,打开一看,果然问题就在这。

[root@kafka-02 salt]# cat /etc/salt/minion.d/99.conf 
master: 10.0.0.22

删除该配置文件即可。

你可能感兴趣的:(linux服务器部署安装,运维,linux)