Skip to content

[BUG] Salt-minion is not connecting to the Salt master at boot time #61069

Description

@bryceml

see: https://bugzilla.redhat.com/show_bug.cgi?id=2015117

Description

Salt-minion is not connecting to the Salt master at boot time and
remains unresponsive until the daemon is restarted.

The systemd unit for salt-minion says "After=network.target" but not
"After=network-online.target". So the daemon is started in parallel
with the process which negotiates the network (which is managed by
NetworkManager and is configured to use DHCP) and comes up before the
network is ready.

"systemctl status salt-minion" says this:

Oct 18 12:53:05 tw01 systemd[1]: Starting The Salt Minion...
Oct 18 12:53:05 tw01 systemd[1]: Started The Salt Minion.
Oct 18 12:53:06 tw01 salt-minion[2875]: [ERROR ] DNS lookup or connection check of 'salt' failed.
Oct 18 12:53:06 tw01 salt-minion[2875]: [ERROR ] Master hostname: 'salt' not found or not responsive. Retrying in 30 seconds

...but the current time is 13:20 and this "retry in 30 seconds" never
happened.

If I now restart the service while the system is online, it initialises
successfully.

Version-Release number of selected component (if applicable):
salt-minion-3003.3-1.fc34.noarch

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions