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

Avoid crash on wrong output of systemctl version (bsc#1229539) #674

Conversation

vzhestkov
Copy link
Contributor

What does this PR do?

Backport of saltstack/salt#66856

In some cases calling systemctl --version with salt.grains.core._systemd could return unexpected output what could cause IndexError exception preventing minion service from running.

What issues does this PR fix or reference?

Tracks https://github.com/SUSE/spacewalk/issues/25122

Previous Behavior

IndexError exception on starting minions service caused by unexpected response of systemctl --version

New Behavior

Normal minion start with just error message in the log about unexpected output.

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 Avoid salt minion service crash on unexpected output of systemctl --version (bsc#1229539) Avoid salt minion crash on unexpected output of systemctl --version (bsc#1229539) Aug 30, 2024
Copy link
Contributor

@m-czernek m-czernek left a comment

Choose a reason for hiding this comment

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

+1, LGTM, nice change here :)

@vzhestkov vzhestkov changed the title Avoid salt minion crash on unexpected output of systemctl --version (bsc#1229539) void crash on wrong output of systemctl version (bsc#1229539) Aug 30, 2024
@vzhestkov vzhestkov changed the title void crash on wrong output of systemctl version (bsc#1229539) Avoid crash on wrong output of systemctl version (bsc#1229539) Aug 30, 2024
@vzhestkov vzhestkov merged commit b2faa01 into openSUSE/release/3006.0 Aug 30, 2024
8 checks passed
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