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

删除该配置文件即可。

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值