博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The Salt Master has cached the public key
阅读量:6691 次
发布时间:2019-06-25

本文共 3519 字,大约阅读时间需要 11 分钟。

故障现象:

某台服务器,重新安装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-minionJan 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-authenticateJan 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-authenticateJan 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-minionJan 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-minionJan 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.pingLVS-RS01.saltstack.com:    True

到此,问题得到解决。

转载于:https://blog.51cto.com/molewan/2060851

你可能感兴趣的文章
二叉树学习笔记之二叉查找树(BSTree)
查看>>
Python中使用Flask、MongoDB搭建简易图片服务器
查看>>
ORACLE E-BUSINESS SUITE 12.2.3 RELEASE UPDATE PACK (补丁程序集)
查看>>
二叉查找树
查看>>
request.getcontextPath() 详解
查看>>
InforReport4.2 的安装运行
查看>>
shell脚本编程之“最简单的死循环”【转】
查看>>
图像保存到XML文件和从XML中取出图像显示
查看>>
分享一个Cnblogs简易APP
查看>>
【原创】腾讯微博的XSS攻击漏洞
查看>>
ADO.NET Entity Framework Beta2(五)/快速入门(实体框架)
查看>>
linux sudo 命令
查看>>
HTML5本地存储——IndexedDB(二:索引)
查看>>
log4net 中错误 System.Web.HttpException (0x80004005): 文件不存在
查看>>
SqlServer将没有log文件的数据库文件附加到服务器中
查看>>
[Android Pro] Android的5个进程等级
查看>>
使用jenkins配置.net mvc网站进行持续集成一
查看>>
全网最全最详细的Windows下安装Anaconda2 / Anaconda3(图文详解)
查看>>
GNU make manual 翻译( 一百四十二)
查看>>
Excel里的多列求和(相邻或相隔皆适用)
查看>>