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

Update timer to be more in-line with dnf-automatic #5183

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

alexhaydock
Copy link
Contributor

This suggestion would update the timer behaviour of rpm-ostreed-automatic.timer to be more in line with the behaviour of dnf-automatic.timer.

Problem Statement

On a laptop which spends a lot of time in sleep mode, the timer frequency used by rpm-ostreed-automatic.timer is so infrequent that the service rarely ends up running.

To solve this, we can add

Persistent=true

This brings the behaviour into line with how dnf-automatic.timer works:

https://github.com/rpm-software-management/dnf/blob/69d1f641cda28fc543846524d15ec7291baf3e5a/etc/systemd/dnf-automatic.timer#L10

Just adding this alone can cause issues in environments with slow network bring-up, so we can also add:

Wants=network-online.target

Which also matches the dnf-automatic.timer behaviour:

I've also added:

After=network-online.target

as a suggestion here, as the systemd docs suggest this might be more robust than just using Wants=.

Copy link

openshift-ci bot commented Dec 3, 2024

Hi @alexhaydock. Thanks for your PR.

I'm waiting for a coreos member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jmarrero
Copy link
Member

/ok-to-test

@jmarrero
Copy link
Member

Thank you for your PR and detailed description @alexhaydock
This seems like a good idea to me, I don't see any reason this would break any expected behavior on servers either.

Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Thanks!

@cgwalters cgwalters merged commit 94b701f into coreos:main Dec 10, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants