Failure phenomena:
A server, reinstall Salt-minion Client, found salt-master with its communication problems, and then queried the status of the service, found the following error message:
[[email protected] ~]# 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.S altstack.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 20:48:39 lvs-rs01.saltstack.com systemd[1]: Starting the salt Minion ... Jan 20:48:40 lvs-rs01.saltstack.com systemd[1]: Started the Salt minion.jan 20:49:23 lvs-rs01.saltstack.com salt-min ION[43416]: [ERROR] Error while bringing up minion for multi-master. is master at 10.10.10.111 responding? Jan 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 would wait for Seconds before attempting to Re-authenticatejan 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 would wait for seconds before attempting to Re-aut Henticatejan 20:49:58 lvs-rs01.saltstack.com salt-minion[43416]: [ERROR] The salt Master has cached the public key F Or this node, this salt minion would wait for the seconds before attempting to re-authenticate
Processing process:
[[email protected] minion]# >/etc/salt/minion_id [[email protected] minion]# systemctl restart Salt-minion[[email protected] 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 S Un 2018-01-14 20:52:25 CST; 8s ago Docs:man:salt-minion (1) file:///usr/share/doc/salt/html/contents.html Https://docs.saltsta ck.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/py Thon/usr/bin/salt-minionjan 20:52:25 lvs-rs01.saltstack.com systemd[1]: Starting the salt minion ... Jan 20:52:25 lvs-rs01.saltstack.com systemd[1]: Started the Salt minion. If Salt-key-l sees the service key in unaccepted keys, Delete this key[[email protected] Minion]# systemctl status salt-minion salt-minion.service-the salt minion loaded:loaded (/usr/lib/systemd/system/salt-min Ion.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.saltst ack.com/en/latest/contents.html Main pid:45086 (salt-minion) CGroup:/system.slice/salt-minion.service├─4508 6/usr/bin/python/usr/bin/salt-minion├─45095/usr/bin/python/usr/bin/salt-minion└─45101/usr/bin/p Ython/usr/bin/salt-minionjan 20:52:25 lvs-rs01.saltstack.com systemd[1]: Starting the salt Minion ... Jan 20:52:25 lvs-rs01.saltstack.com systemd[1]: Started the Salt minion. [[email protected] minion]# Salt ' * ' test.pinglvs-rs01.saltstack.com:true
Here, the problem is resolved.
The Salt Master has cached the public key