找到你要的答案

Q:No minions matched the target. No command was sent, no jid was assigned

Q:没有奴才相匹配的目标。没有命令的发送,没有孩子被分配

I installed saltstack and added one minion to master. I get the command output as below

$ salt-key
Accepted Keys:
xxxx.abcd.com
Denied Keys:
Unaccepted Keys:
Rejected Keys:

but when I hit the

$salt \* test.ping

command. I get response as

No response from minion

Not very sure what is going wrong.

我安装和添加一个奴才掌握SaltStack。我得到命令输出如下

$ salt-key
Accepted Keys:
xxxx.abcd.com
Denied Keys:
Unaccepted Keys:
Rejected Keys:

但当我击中

$salt \* test.ping

命令。我得到回应

从奴才没有反应

不太清楚到底出了什么问题。

answer1: 回答1:

These are two issues with different reasons.

1

No minions matched the target. No command was sent, no jid was assigned.

This happens when you targeted minions which are not registered on the master.

In other words, none of the minions is listed under Accepted Keys: of salt-key command output.

2

No response from minion

This happens when you targeted minions which are registered but they do not respond.

这是两个原因不同的问题。

没有奴才相匹配的目标。没有命令的发送,没有孩子被分配.

当你有针对性的奴才不在主注册。

换句话说,这奴才没有列在接受键:盐键命令的输出。

从奴才没有反应

这发生在当你的目标仆从注册的但他们不回应。

answer2: 回答2:

I found the solution for this:

seems that minion was having an old copy of the public key of master and hence handshake was not happening. steps of resolution:

1. go to folder /etc/salt/pki/minion/ on minion
2. remove master_public file
3. restart the minion 

now test.ping responds as required

我找到了解决方法:

seems that minion was having an old copy of the public key of master and hence handshake was not happening. steps of resolution:

一. go to folder /etc/salt/pki/minion/ on minion
二. remove master_public file
3. restart the minion 

现在test.ping响应要求

salt-stack