Saltstack操作test.ping命令时报错:( salt '*' test.ping时报错)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[root@fxq01 ~] # salt '*' test.ping
fxq01: True
web3: True
web2: True
web1: Minion did not return . [No response]
[root@fxq01 ~] # salt-key -L
Accepted Keys: fxq01 web1 web2 web3 Denied Keys: Unaccepted Keys: Rejected Keys: |
出现这个问题时,我操作了以下几个步骤解决了:
-
在fxq01上操作:salt-key -d web1 删除rm -rf /etc/salt/pki/master/minions/web1
-
在web1上操作:rm /etc/salt/pki/minion/* -rf ;重启服务 systemctl restart salt-minion 然后查看ls /etc/salt/pki/minion/ 看有无文件(minion.pem minion.pub)如果没有重启机器。
3.关闭两台机器selinx,和防火墙:setenforce 0 (临时生效); iptables -F ;systemctl disable firewalld
本文转自 枫叶云 51CTO博客,原文链接:http://blog.51cto.com/fengyunshan911/2064650