Search code examples
salt-project

No minions matched the target. No command was sent, no jid was assigned<Salt-stack>


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.


Solution

  • 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