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

Prevent possible exceptions on salt.utils.user.get_group_dict (bsc#1212794) #593

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

Backport of saltstack/salt#64599

In case if the client system has NIS enabled it could cause KeyError exception on starting the salt-minion service due to the duplicated record in the groups: +:::, which is actually the duplicate of root group as missing gid is treated as 0.

What issues does this PR fix or reference?

Fixes: https://github.com/SUSE/spacewalk/issues/21917

Previous Behavior

Tracebacks on salt-minion start and no service running

New Behavior

Normal behavior

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 requested a review from meaksh August 9, 2023 08:34
@vzhestkov vzhestkov merged commit 4ea91a6 into openSUSE/release/3006.0 Aug 21, 2023
@vzhestkov vzhestkov deleted the openSUSE/fix/prevent-key-error-salt.utils.user.get_group_dict branch August 21, 2023 11:04
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.

1 participant