坑-minion改IP

  • minion IP,192.168.184.129更改为 192.168.184.133,重启master和minion服务后,发现master端未发现192.168.184.133,仍是如下:
[root@localhost ~]# salt-key -L
Accepted Keys:
192.168.184.129
Denied Keys:
Unaccepted Keys:
Rejected Keys:
  • 查看master日志,并未有发现
  • 查看minion日志:
2017-09-19 16:45:43,691 [salt.crypt                                            ][ERROR   ][12951] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:45:52,700 [salt.utils.parsers                                    ][WARNING ][12951] Minion received a SIGTERM. Exiting.
2017-09-19 16:45:55,151 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:05,159 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:15,177 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:25,195 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:35,212 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:45,230 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:46:55,248 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:47:05,266 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:47:15,279 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:47:25,296 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
2017-09-19 16:47:35,314 [salt.crypt                                            ][ERROR   ][13323] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
  • 原因是因为master端在这个minion上有着缓存的key,存的是192.168.184.129,所以无法识别192.168.184.133
  • 解决方法:minion端上执行rm -rf /etc/salt/minion_id,后重启服务。
展开阅读全文

没有更多推荐了,返回首页