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

daemon: extend rpm-ostreed.service idle-timeout #5032

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukewarmtemp
Copy link
Contributor

@lukewarmtemp lukewarmtemp commented Jul 31, 2024

When making D-Bus calls to the rpm-ostreed.service, the service will always exit after the specified idle-timeout has passed from when the daemon was first created. Even if D-Bus calls are constantly being made, the idle-timeout will still be enforced.

This commit subscribes to the bus, listening for new calls. If a call is detected, the idle-timeout is reset. The service will only stop after the idle-timeout has passed after the last call to the bus.

xref: https://issues.redhat.com/browse/RHEL-49603

When making D-Bus calls to the rpm-ostreed.service, the service will
always exit after the specified idle-timeout has passed from when the
daemon was first created. Even if D-Bus calls are constantly being made,
the idle-timeout will still be enforced.

This commit subscribes to the bus, listening for new calls. If a call is
detected, the idle-timeout is reset. The service will only stop after
the idle-timeout has passed after the last call to the bus.

Signed-off-by: Luke Yang <[email protected]>
@lukewarmtemp lukewarmtemp changed the title daemon: Extend rpm-ostreed.service idle-timeout daemon: extend rpm-ostreed.service idle-timeout Jul 31, 2024
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.

I commented in the bug...let's centralize discussion of the overall problem there.

I'm marking as requested-changes not because there are specific code changes that need to be done yet, but because the bug needs discussion.

Copy link

openshift-ci bot commented Jul 31, 2024

@lukewarmtemp: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/fcos-e2e ad252b2 link true /test fcos-e2e
ci/prow/kola-upgrade ad252b2 link true /test kola-upgrade

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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