Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make minion reconnecting on changing master IP with zeromq #665

Open
wants to merge 10 commits into
base: openSUSE/release/3006.0
Choose a base branch
from

Conversation

vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Jul 9, 2024

What does this PR do?

Backport of upstream PRs: saltstack/salt#66760, saltstack/salt#66757, saltstack/salt#66422

By default salt-minion is not able to detect disconnects from the master as callback is not called on disconnet due to the missing possibility with no zeromq monitor socket.

This PR adds the possibility to detect disconnects and react on it.

What issues does this PR fix or reference?

Tracks: https://github.com/SUSE/spacewalk/issues/24752, https://github.com/SUSE/spacewalk/issues/24871

Previous Behavior

The minion is unable to switch to the master with the same FQDN but different IP address as it's not resolving IP address after connecting to the master. ZeroMQ socket is handling reconnects internally, but as it has IP address specified to connect to, it's not trying to resolve it anymore.

New Behavior

The minion is able to reconnect to the master on it's IP address change.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@vzhestkov vzhestkov changed the title Make minion reconnecting on changing master IP with zeromq [WIP] Make minion reconnecting on changing master IP with zeromq Jul 9, 2024
@vzhestkov vzhestkov changed the title [WIP] Make minion reconnecting on changing master IP with zeromq Make minion reconnecting on changing master IP with zeromq Jul 26, 2024
dwoz and others added 6 commits July 31, 2024 09:38
Check for a chainging dns record anytime a minion gets disconnected from
it's master. See github issue #63654 #61482.
Adding tests to validate we check for changing dns anytime we're
disconnected from the currently connected master
Update docs to use master_alive_interval to detect master ip changes via
DNS.
@vzhestkov vzhestkov force-pushed the openSUSE/improve/3006.0/reconnect-on-master-ip-change branch from 3454ad2 to 8c465dc Compare July 31, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants