Skip to content

Fix aptpkg systemd call (bsc#1143301)#54077

Closed
dincamihai wants to merge 3 commits into
saltstack:developfrom
dincamihai:2019.2.0-fix-aptpkg-long-autogenerated-description
Closed

Fix aptpkg systemd call (bsc#1143301)#54077
dincamihai wants to merge 3 commits into
saltstack:developfrom
dincamihai:2019.2.0-fix-aptpkg-long-autogenerated-description

Conversation

@dincamihai
Copy link
Copy Markdown
Contributor

What does this PR do?

Sets a --description for the systemd-run command called by aptpkg to avoid long description strings that would cause crashes.
The description comes from __name__ and it would be salt.modules.aptpkg

What issues does this PR fix or reference?

Fixes: aptpkg module causes systemd to crash in Ubuntu 18.04.
When no description is provided to systemd-run, the description is autogenerated from the apt-get command.
If we have a long list of packages the description will be longer than what systemd-run supports and it will crash (systemd/systemd@a7419db)

Setting the description ourselves prevents this even if the systemd doesn't have the fix.

Previous Behavior

See above

New Behavior

Sets the description to salt.modules.aptpkg

Tests written?

Yes

@dincamihai dincamihai requested a review from a team as a code owner July 31, 2019 13:51
@ghost ghost requested a review from DmitryKuzmenko July 31, 2019 13:51
Comment thread salt/modules/aptpkg.py Outdated
Comment thread tests/unit/modules/test_aptpkg.py Outdated
dincamihai and others added 2 commits October 28, 2019 14:48
Co-Authored-By: Pablo Suárez Hernández <psuarezhernandez@suse.com>
Co-Authored-By: Pablo Suárez Hernández <psuarezhernandez@suse.com>
@dwoz
Copy link
Copy Markdown
Contributor

dwoz commented Dec 19, 2019

@dincamihai Can you rebase this PR against the master branch please?

1 similar comment
@sagetherage
Copy link
Copy Markdown
Contributor

@dincamihai Can you rebase this PR against the master branch please?

@dincamihai
Copy link
Copy Markdown
Contributor Author

Closing in favor of: #56396

@dincamihai dincamihai closed this Mar 20, 2020
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