标签:code /etc err ice start htm ade running his
故障现象:某台服务器,重新安装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
到此,问题得到解决。
The Salt Master has cached the public key
标签:code /etc err ice start htm ade running his
原文地址:http://blog.51cto.com/molewan/2060851