-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] Salt minion StreamClosedError when Salt Master IP changes #63654
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
I'm seeing the same issue on the same version of salt with the DNS not resolving to a new IP after some machine cycling. I have the ping set, but even with the auth_safe mode im not seeing the minion restart at any point, which should force the new DNS resolution. |
Check for a chainging dns record anytime a minion gets disconnected from it's master. See github issue saltstack#63654 saltstack#61482.
* Minions check dns when re-connecting to a master Check for a chainging dns record anytime a minion gets disconnected from it's master. See github issue saltstack#63654 saltstack#61482. * Regression tests for dns defined masters Adding tests to validate we check for changing dns anytime we're disconnected from the currently connected master * Update docs for master dns changes Update docs to use master_alive_interval to detect master ip changes via DNS. * Remove comment which is not true anymore * Make minion reconnecting on changing master IP with zeromq transport * Don't create schedule for alive if no master_alive_interval * Skip the tests if running with non-root user * Skip if unable to set additional IP address * Set master_tries to -1 for minions * Fix the tests --------- Co-authored-by: Daniel A. Wozniak <daniel.wozniak@broadcom.com>
* Minions check dns when re-connecting to a master Check for a chainging dns record anytime a minion gets disconnected from it's master. See github issue saltstack#63654 saltstack#61482. * Regression tests for dns defined masters Adding tests to validate we check for changing dns anytime we're disconnected from the currently connected master * Update docs for master dns changes Update docs to use master_alive_interval to detect master ip changes via DNS. * Remove comment which is not true anymore * Make minion reconnecting on changing master IP with zeromq transport * Don't create schedule for alive if no master_alive_interval * Skip the tests if running with non-root user * Skip if unable to set additional IP address * Set master_tries to -1 for minions * Fix the tests --------- Co-authored-by: Daniel A. Wozniak <daniel.wozniak@broadcom.com> BACKPORT-UPSTREAM=saltstack#66422 BACKPORT-UPSTREAM=saltstack#66757 BACKPORT-UPSTREAM=saltstack#66760
Description
When a salt master's IP changes, a minion will lose its connection and fail continuously until the salt-minion service is restarted. Only then will it pick up the new IP
Seems to be a regression of issue 61482
Also reviewed PR 61577
Setup
Any salt minion/master setup with 3005.1 on both minion & master
Steps to Reproduce the behavior
Create a salt minion / master pair running 3005.1. Stop the salt-master, change its IP and start it back up.
Below error will appear continuously until the salt-minion has been restarted
Expected behavior
After x timeout the salt minion should do a DNS lookup to validate the IP hasn't changed
Versions Report
Additional context
Have tried many different combinations of salt-minion config. None change the behaviour
Below constant
Below tested for -1, 1 and 15
Below tested for both true and false values
Also tested with and without the below
The text was updated successfully, but these errors were encountered: