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

[3006.x] Better handling output of systemctl --version #66856

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

vzhestkov
Copy link
Contributor

@vzhestkov vzhestkov commented Aug 28, 2024

What does this PR do?

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, including the
PR Guidelines.

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

@vzhestkov vzhestkov requested a review from a team as a code owner August 28, 2024 13:21
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Better handling output of systemctl --version [master] Better handling output of systemctl --version Aug 28, 2024
@vzhestkov vzhestkov force-pushed the handle-systemctl--version-output branch from 5d905c8 to 576d91f Compare August 28, 2024 14:34
@vzhestkov vzhestkov force-pushed the handle-systemctl--version-output branch from 576d91f to d86b44f Compare August 28, 2024 15:24
Copy link
Contributor

@dmurphy18 dmurphy18 left a comment

Choose a reason for hiding this comment

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

Need to tick the Tests written/updated box and add a changelog entry for the fix.
Otherwise it looks good.
Also might want to submit this against the 3006.x branch to get it into a release sooner.

@vzhestkov vzhestkov force-pushed the handle-systemctl--version-output branch from d86b44f to 5051da6 Compare August 30, 2024 07:28
@vzhestkov vzhestkov changed the base branch from master to 3006.x August 30, 2024 07:29
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title [master] Better handling output of systemctl --version [3006.x] Better handling output of systemctl --version Aug 30, 2024
@vzhestkov vzhestkov requested a review from dmurphy18 August 30, 2024 07:29
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