salt: Minion doesn't connect to master

I’ve got a minion in a machine that does not connect to the master. The same minion used to work but not longer. It gets stuck when starting

[root@hep-cream02 salt]# salt-minion -l debug
[INFO    ] Loaded configuration file: /etc/salt/minion
[WARNING ] Setting up the Salt Minion "hep-cream02.ecm.ub.es"
[DEBUG   ] Failed to import module rh_ip, this is most likely NOT a problem: No module named pkg_resources
[DEBUG   ] Attempting to authenticate with the Salt Master at 161.116.81.3
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion.pem'

The master is accessed by other minions without problems. If’ve reinstalled the machine but it keeps getting stuck. It’s as if the master has something stuck for this minion. The new key doesn’t show up in the salt-key -L command. Where can I look for some clue?

Cheers

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

I had a similar issue yesterday, and I tried to run this command: “salt-call -l debug state.highstate”. It gave me the following:

[DEBUG ] Reading configuration from /etc/salt/minion [DEBUG ] Guessing ID. The id can be explicitly in set /etc/salt/minion [INFO ] Found minion id from getfqdn(): localhost.localdomain [INFO ] Configuration file path: /etc/salt/minion

[DEBUG ] Reading configuration from /etc/salt/minion

So, what I did was, to edit the /etc/salt/minion and made sure that the following line says this:

id: minion-hostname-or-IP

Then, I re-started the minion, and it finally connected to the salt master.

Hope this helps… -Conrad