Skip to content

OCPBUGS-76353: Ensure dbus calls are sync#5643

Open
pablintino wants to merge 2 commits intoopenshift:mainfrom
pablintino:dbus-v2
Open

OCPBUGS-76353: Ensure dbus calls are sync#5643
pablintino wants to merge 2 commits intoopenshift:mainfrom
pablintino:dbus-v2

Conversation

@pablintino
Copy link
Contributor

Closes: #OCPBUGS-76353

- What I did

Pass a completion channel to StopUnit, StartUnit, RestartUnit, ReloadUnit, and TryRestartUnit D-Bus calls and wait for the job result, matching the synchronous behavior of the systemctl calls they replaced.

- How to verify it

The following payload should be enough to verify the change

/payload-job periodic-ci-openshift-release-master-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

- Description for the changelog

Pass a completion channel to dbus calls and wait for the job result, matching the synchronous behavior of the systemctl calls they replaced.

Replace direct systemctl exec calls with a systemd abstraction layer that
uses the coreos/go-systemd library. The new SystemdManager factory pattern
improves performance, maintainability, and testing by introducing easily
mockable interfaces and enabling connection reuse.

There are two ways of using the new interfaces:
- DoConnection() for single operations with automatic cleanup
- NewConnection() for batching multiple operations on one connection

Signed-off-by: Pablo Rodriguez Nava <git@amail.pablintino.com>
Pass a completion channel to StopUnit, StartUnit, RestartUnit,
ReloadUnit, and TryRestartUnit D-Bus calls and wait for the job                                                                                                                                                                                                                                                     result, matching the synchronous behavior of the systemctl calls
they replaced.

Signed-off-by: Pablo Rodriguez Nava <git@amail.pablintino.com>
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 10, 2026
@openshift-ci-robot
Copy link
Contributor

@pablintino: This pull request references Jira Issue OCPBUGS-76353, which is invalid:

  • expected the bug to target the "4.22.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Closes: #OCPBUGS-76353

- What I did

Pass a completion channel to StopUnit, StartUnit, RestartUnit, ReloadUnit, and TryRestartUnit D-Bus calls and wait for the job result, matching the synchronous behavior of the systemctl calls they replaced.

- How to verify it

The following payload should be enough to verify the change

/payload-job periodic-ci-openshift-release-master-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

- Description for the changelog

Pass a completion channel to dbus calls and wait for the job result, matching the synchronous behavior of the systemctl calls they replaced.

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 openshift-eng/jira-lifecycle-plugin repository.

@pablintino
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 10, 2026
@openshift-ci-robot
Copy link
Contributor

@pablintino: This pull request references Jira Issue OCPBUGS-76353, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @wangke19

Details

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pablintino

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 10, 2026
@pablintino
Copy link
Contributor Author

/payload-job periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-ovn-day1-ocl

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-ovn-day1-ocl

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/81278e00-0666-11f1-9969-5c084223b921-0

@pablintino
Copy link
Contributor Author

/payload-job periodic-ci-openshift-release-master-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 0 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

@pablintino
Copy link
Contributor Author

/payload-aggregate periodic-ci-openshift-release-master-nightly-4.22-e2e-aws-ovn-upgrade-fips 10

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 0 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

@pablintino
Copy link
Contributor Author

/payload-job periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/ddcaef30-0684-11f1-8fbc-eedc56cc70bd-0

@pablintino
Copy link
Contributor Author

/payload-aggregate periodic-ci-openshift-release-main-nightly-4.22-e2e-aws-ovn-upgrade-fips 10

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-4.22-e2e-aws-ovn-upgrade-fips

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/dcbbaed0-0694-11f1-83b9-07606fc0937e-0

@pablintino
Copy link
Contributor Author

/payload-job periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2026

@pablintino: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-ci-4.22-upgrade-from-stable-4.21-e2e-gcp-ovn-rt-upgrade

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/740626d0-0695-11f1-8387-4b16e374b542-0

@wangke19
Copy link

/test okd-scos-images

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 12, 2026

@pablintino: all tests passed!

Full PR test history. Your PR dashboard.

Details

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants