The Salt Master has cached the public key

故障现象:

某台服务器,重新安装salt-minion客户端后,发现salt-master与其通信出现问题,然后查询了服务的状态,发现有如下报错信息:

[root@LVS-RS01 ~]# systemctl status salt-minion -l
● salt-minion.service - The Salt Minion
   Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-01-14 20:48:40 CST; 1min 54s ago
     Docs: man:salt-minion(1)
           file:///usr/share/doc/salt/html/contents.html
           https://docs.saltstack.com/en/latest/contents.html
 Main PID: 43416 (salt-minion)
   CGroup: /system.slice/salt-minion.service
           ├─43416 /usr/bin/python /usr/bin/salt-minion
           ├─43425 /usr/bin/python /usr/bin/salt-minion
           └─43431 /usr/bin/python /usr/bin/salt-minion

Jan 14 20:48:39 LVS-RS01.saltstack.com systemd[1]: Starting The Salt Minion...
Jan 14 20:48:40 LVS-RS01.saltstack.com systemd[1]: Started The Salt Minion.
Jan 14 20:49:23 LVS-RS01.saltstack.com salt-minion[43416]: [ERROR   ] Error while bringing up minion for multi-master. Is master at 10.10.10.111 responding?
Jan 14 20:49:38 LVS-RS01.saltstack.com salt-minion[43416]: [ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
Jan 14 20:49:48 LVS-RS01.saltstack.com salt-minion[43416]: [ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
Jan 14 20:49:58 LVS-RS01.saltstack.com salt-minion[43416]: [ERROR   ] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate

处理过程:

[root@LVS-RS01 minion]# >/etc/salt/minion_id 
[root@LVS-RS01 minion]# systemctl restart salt-minion
[root@LVS-RS01 minion]# systemctl status salt-minion
● salt-minion.service - The Salt Minion
   Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-01-14 20:52:25 CST; 8s ago
     Docs: man:salt-minion(1)
           file:///usr/share/doc/salt/html/contents.html
           https://docs.saltstack.com/en/latest/contents.html
 Main PID: 45086 (salt-minion)
   CGroup: /system.slice/salt-minion.service
           ├─45086 /usr/bin/python /usr/bin/salt-minion
           ├─45095 /usr/bin/python /usr/bin/salt-minion
           └─45101 /usr/bin/python /usr/bin/salt-minion

Jan 14 20:52:25 LVS-RS01.saltstack.com systemd[1]: Starting The Salt Minion...
Jan 14 20:52:25 LVS-RS01.saltstack.com systemd[1]: Started The Salt Minion.
如果salt-key -L看到服务的key在Unaccepted Keys中,则删除这个key
[root@LVS-RS01 minion]# systemctl status salt-minion
● salt-minion.service - The Salt Minion
   Loaded: loaded (/usr/lib/systemd/system/salt-minion.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-01-14 20:52:25 CST; 17s ago
     Docs: man:salt-minion(1)
           file:///usr/share/doc/salt/html/contents.html
           https://docs.saltstack.com/en/latest/contents.html
 Main PID: 45086 (salt-minion)
   CGroup: /system.slice/salt-minion.service
           ├─45086 /usr/bin/python /usr/bin/salt-minion
           ├─45095 /usr/bin/python /usr/bin/salt-minion
           └─45101 /usr/bin/python /usr/bin/salt-minion

Jan 14 20:52:25 LVS-RS01.saltstack.com systemd[1]: Starting The Salt Minion...
Jan 14 20:52:25 LVS-RS01.saltstack.com systemd[1]: Started The Salt Minion.
[root@LVS-RS01 minion]# salt '*' test.ping
LVS-RS01.saltstack.com:
    True

到此,问题得到解决。










本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/2060851,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值