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

packit: Enable tests on Fedora Rawhide, systemd: Cancel shutdown as root #17302

Merged
merged 2 commits into from
May 10, 2022

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented May 3, 2022

These should be treated as advisory, but they will help us to spot
issues like https://bugzilla.redhat.com/show_bug.cgi?id=2081039


systemd 251 started to guard this as a privileged operation with polkit [1].
So call this as root if possible.

This is an incomplete fix: We should not even show the cancel action if
the session is not root and not allowed via a polkit rule, but that is
more intrusive -- let's fix the exploding gating test first.

https://bugzilla.redhat.com/show_bug.cgi?id=2081039

[1] systemd/systemd@ec14fba91c94f38f3

These should be treated as advisory, but they will help us to spot
issues like https://bugzilla.redhat.com/show_bug.cgi?id=2081039
@martinpitt martinpitt added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label May 3, 2022
@martinpitt
Copy link
Member Author

I will add the fix next, but I first want to double-check that this spots the issue.

@martinpitt martinpitt temporarily deployed to cockpit-dist May 3, 2022 05:38 Inactive
@martinpitt
Copy link
Member Author

Yup, that exactly reproduces the bug.

systemd 251 started to guard this as a privileged operation with polkit [1].
So call this as root if possible.

This is an incomplete fix: We should not even show the cancel action if
the session is not root and not allowed via a polkit rule, but that is
more intrusive -- let's fix the exploding gating test first.

https://bugzilla.redhat.com/show_bug.cgi?id=2081039

[1] systemd/systemd@ec14fba91c94f38f3
@martinpitt martinpitt changed the title packit: Enable tests on Fedora Rawhide packit: Enable tests on Fedora Rawhide, systemd: Cancel shutdown as root May 3, 2022
@martinpitt martinpitt temporarily deployed to cockpit-dist May 3, 2022 06:47 Inactive
@martinpitt martinpitt removed the no-test For doc/workflow changes, or experiments which don't need a full CI run, label May 3, 2022
@martinpitt martinpitt marked this pull request as ready for review May 3, 2022 07:22
@martinpitt martinpitt marked this pull request as draft May 3, 2022 08:09
@martinpitt martinpitt marked this pull request as ready for review May 3, 2022 09:34
@martinpitt martinpitt requested a review from jelly May 3, 2022 10:43
@martinpitt martinpitt added the release-blocker Targetted for next release label May 3, 2022
@martinpitt
Copy link
Member Author

I filed issue #17325 for the refinement.

@martinpitt
Copy link
Member Author

@jelly : As this is a blocker for tomorrow's release, friendly review reminder? Thanks!

@jelly jelly merged commit aedbb66 into cockpit-project:main May 10, 2022
@martinpitt martinpitt deleted the cancel-shutdown branch May 10, 2022 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker Targetted for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants