Skip to content

[18.0-fr5] Fix OpenStackVersion minor update workflow hanging on OVN dataplane check - #1835

Merged
openshift-merge-bot[bot] merged 2 commits into
openstack-k8s-operators:18.0-fr5from
openshift-cherrypick-robot:cherry-pick-1823-to-18.0-fr5
Mar 3, 2026
Merged

openshift-merge-bot[bot] merged 2 commits into
openstack-k8s-operators:18.0-fr5from
openshift-cherrypick-robot:cherry-pick-1823-to-18.0-fr5

Conversation

@openshift-cherrypick-robot

@openshift-cherrypick-robot openshift-cherrypick-robot commented Mar 2, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #1823

/assign stuggi

Jira: OSPRH-25860
Jira: OSPRH-23693

stuggi and others added 2 commits March 2, 2026 17:12
…heck

During a minor update, the OpenStackVersion controller was getting stuck
with incorrect condition states even after deployments completed:
- MinorUpdateOVNDataplane: "in progress" (stuck)
- MinorUpdateControlplane: "not started" (never executed)

Root Cause:
The DataplaneNodesetsOVNControllerImagesMatch function checked
nodeset.IsReady(), which failed when subsequent deployments
(e.g., edpm-update) started running. This caused the function to
return false even though the OVN update deployment (edpm-ovn-update)
had already completed successfully.

The nodeset's overall Ready status was False because edpm-update was
running, blocking the minor update workflow from progressing to the
next steps (RabbitMQ, MariaDB, controlplane services, etc.).

Solution:
Remove the nodeset.IsReady() check from DataplaneNodesetsOVNControllerImagesMatch.
The nodeset's Status.ContainerImages["OvnControllerImage"] is only updated
when a deployment completes successfully (openstackdataplanenodeset_controller.go:598-600).
Therefore, if the OVN image matches the target version, the OVN update
deployment has already completed, regardless of the nodeset's overall Ready status.

Why we can't check deployment-specific conditions:
The nodeset stores deployment conditions in Status.DeploymentStatuses map,
keyed by deployment name (e.g., "edpm-ovn-update"). However, deployment
names are dynamic and not known at this point in the code, making it
impossible to check specific deployment conditions directly.

Note: The final DataplaneNodesetsDeployed check still uses nodeset.IsReady()
because it validates the completion of the entire minor update workflow,
where we do want to ensure the nodeset is fully ready.

Jira: OSPRH-25860

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@dciabrin

dciabrin commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

/approve

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci

openshift-ci Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dciabrin, lmiccini, openshift-cherrypick-robot, stuggi

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 label Mar 3, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 772f19e into openstack-k8s-operators:18.0-fr5 Mar 3, 2026
1 check passed
@openshift-ci

openshift-ci Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: The following test 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/functional 842a023 link unknown /test functional

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants