Salt Master报错:Minion did not return. [No response]

本文详细解析了SaltStack中minion与master通信失败的问题,具体表现为执行salt‘*’test.ping时,minion端出现[Noresponse]错误。通过分析minion日志,发现与master的公钥不匹配导致验证失败。文章提供了详细的解决方案,包括删除minion端的公钥文件,重启minion服务,并重新加载key,从而恢复正常通信。

在salt master端执行salt ‘*’ test.ping时,某一节点出现如下报错:
Minion did not return. [No response]

登陆到这一节点查看minion的日志,发现如下的问题:

1 $ tail -f /var/log/salt/minion
2 The master may need to be updated if it is a version of Salt lower than 2015.5.3, or
3 If you are confident that you are connecting to a valid Salt Master, then remove the master public key and restart the Salt Minion.
4 The master public key can be found at:
5 /etc/salt/pki/minion/minion_master.pub
6 2015-11-23 23:30:02,645 [salt.crypt                               ][ERROR   ][3530] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
7 2015-11-23 23:30:05,108 [salt.crypt                               ][ERROR   ][3586] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
8 2015-11-23 23:30:15,136 [salt.crypt                               ][ERROR   ][3586] The Salt Master has cached the public key for this node, this salt minion will wait for 10 seconds before attempting to re-authenticate
9  

minion大概的意思就是,minion端拿到的key与master端的不符,验证无法通过。
解决方法是删除minion端的key,再重新与master进行连接和认证。

 1 $ cat pki/minion/minion_master.pub 
 2 -----BEGIN PUBLIC KEY-----
 3 MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtzq0AjuyQsVEgsx692GN
 4 ... ...
 5 7fbuudp4yu5vcYcqksKIFcm0J3E+OR+rx/NUIHt0ZL8HLxcSn4Si/S6dVp/vE7Oc
 6 swIDAQAB
 7 -----END PUBLIC KEY-----
 8 [root@localhost salt]# rm -fr pki/minion/minion_master.pub
 9 
10 [root@localhost salt]# service salt-minion restart
11 Stopping salt-minion daemon:                               [  OK  ]
12 Starting salt-minion daemon:                               [  OK  ]
13 salt-key -A      ##重新加载key

至此,master与minion端的通信正常。

转载于:https://www.cnblogs.com/phennry/p/5419451.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值