Salt Master报错:Minion did not return. [No response]
2024-08-29 14:57:53
在salt master端执行salt ‘*’ test.ping时,某一节点出现如下报错:Minion did not return. [No response]
登陆到这一节点查看minion的日志,发现如下的问题:
$ tail -f /var/log/salt/minion
The master may need to be updated if it is a version of Salt lower than 2015.5., or
If you are confident that you are connecting to a valid Salt Master, then remove the master public key and restart the Salt Minion.
The master public key can be found at:
/etc/salt/pki/minion/minion_master.pub
-- ::, [salt.crypt ][ERROR ][] The Salt Master has cached the public key for this node, this salt minion will wait for seconds before attempting to re-authenticate
-- ::, [salt.crypt ][ERROR ][] The Salt Master has cached the public key for this node, this salt minion will wait for seconds before attempting to re-authenticate
-- ::, [salt.crypt ][ERROR ][] The Salt Master has cached the public key for this node, this salt minion will wait for seconds before attempting to re-authenticate
minion大概的意思就是,minion端拿到的key与master端的不符,验证无法通过。
解决方法是删除minion端的key,再重新与master进行连接和认证。
$ cat pki/minion/minion_master.pub
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtzq0AjuyQsVEgsx692GN
... ...
7fbuudp4yu5vcYcqksKIFcm0J3E+OR+rx/NUIHt0ZL8HLxcSn4Si/S6dVp/vE7Oc
swIDAQAB
-----END PUBLIC KEY-----
[root@localhost salt]# rm -fr pki/minion/minion_master.pub [root@localhost salt]# service salt-minion restart
Stopping salt-minion daemon: [ OK ]
Starting salt-minion daemon: [ OK ]
13 salt-key -A ##重新加载key
至此,master与minion端的通信正常。
最新文章
- LintCode-Longest Increasing Subsequence
- Docker学习笔记 — 配置国内免费registry mirror
- Python脚本控制的WebDriver 常用操作 <;三>; 浏览器最大化
- MATLAB连通域标记函数
- 零门槛!ZBLibrary仿微信朋友圈自定义View,就是这么简单!
- money 和 smallmoney
- Java设计模式模式观测(Observer Pattern)
- linux内核系统调用--sendfile函数
- Binder机制,从Java到C (10. Binder驱动)
- 四维dp 或者 剪枝 + dfs Codeforces Beta Round #6 (Div. 2 Only) D
- HDU5723 Abandoned country (最小生成树+深搜回溯法)
- Unity 使用TexturePackerGUI打包图集 Sprite 图片边上有线
- 【java】io流之字符输出流:java.io.Writer类及子类的子类java.io.FileWriter
- GIT入门笔记(11)- 多种撤销修改场景和对策--实战练习
- 苹果新的编程语言 Swift 语言进阶(八)--属性
- IMCASH:卖掉了比特币回老家生活的现在怎么样了?
- SQL-42 删除emp_no重复的记录,只保留最小的id对应的记录
- python中的列表的嵌套与转换
- 转 jeecg3.5中多数据源的配置
- 爬虫mm131明星照片