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

bugfix for auth_safemode #46089

Merged
merged 3 commits into from
Mar 14, 2018
Merged

bugfix for auth_safemode #46089

merged 3 commits into from
Mar 14, 2018

Conversation

rongzeng54
Copy link
Contributor

What does this PR do?

bugfix for auth_safemode as the docs(https://docs.saltstack.com/en/develop/ref/configuration/minion.html) said:
`AUTH_SAFEMODE
New in version 2014.7.0.

Default: False

If authentication fails due to SaltReqTimeoutError during a ping_interval, this setting, when set to True, will cause a sub-minion process to restart.`

What issues does this PR fix or reference?

No

Tests written?

No

Commits signed with GPG?

No

@rongzeng54 rongzeng54 requested a review from a team as a code owner February 17, 2018 15:55
salt/minion.py Outdated
@@ -2624,7 +2624,7 @@ def tune_in(self, start=True):
def ping_master():
try:
def ping_timeout_handler(*_):
if not self.opts.get('auth_safemode', True):
if self.opts.get('auth_safemode', True):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was implemented incorrectly, but we should not have it switch to True, if it is not specified, it should be False in the .get() as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rongzeng54 Did you see the feedback here?

@rallytime
Copy link
Contributor

re-run ubuntu

@rallytime
Copy link
Contributor

re-run py3

@rallytime rallytime merged commit d0c27b8 into saltstack:develop Mar 14, 2018
@rongzeng54 rongzeng54 deleted the fix_for_minion_conf branch April 24, 2018 15:26
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.

4 participants