Skip to content

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #1281

/assign wking

The osusWithSingleConditionalEdge logic was broken down into smaller
parts to allow for the creation of list of test cases with expected
values utilized in the added test function.

Introduce a test fixture to reduce the number of return values
from the osusWithSingleConditionalEdge function.

Assisted-by: Claude Code
Otherwise, the following condition in cincinnati.go in MultiArch clusters:

```
if desiredArch == string(configv1.ClusterVersionArchitectureMulti) && currentArch != desiredArch {
    return current, []configv1.Release{current}, nil, nil
}
```

gets evaluated to:

```
if "Multi" == string(configv1.ClusterVersionArchitectureMulti) && "multi" != "Multi" {
    return current, []configv1.Release{current}, nil, nil
}
```

This will cause MultiArch clusters with a set non-empty
`ClusterVersion.Spec.DesiredUpdate.Architecture` field to indefinitely
have available updates set to `[]configv1.Release{current}` because
the `"multi" != "Multi"` logic will always match.
The commit does change the default behaviour of the
`getDesiredArchitecture` method. However, the method is only used once
in the `syncAvailableUpdates` method and nowhere else. The commit adds
the subsequent logic for evaluating a desired architecture to the method
itself and implements the `getCurrentArchitecture` method.

The goal is to introduces "getters" for such values where the
unified capitalization is enforced, and their return values are of the
same nature (e.g., "Multi", "amd64", ...).
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: Detected clone of Jira Issue OCPBUGS-70180 with correct target version. Will retitle the PR to link to the clone.
/retitle [release-4.19] OCPBUGS-70181: OCPBUGS-70181: Unify capitalization when comparing architectures for available updates

Details

In response to this:

This is an automated cherry-pick of #1281

/assign wking

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.

@coderabbitai
Copy link

coderabbitai bot commented Jan 12, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot changed the title [release-4.19] OCPBUGS-70180: OCPBUGS-70180: Unify capitalization when comparing architectures for available updates [release-4.19] OCPBUGS-70181: OCPBUGS-70181: Unify capitalization when comparing architectures for available updates Jan 12, 2026
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. 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 Jan 12, 2026
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-70181, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.

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:

This is an automated cherry-pick of #1281

/assign wking

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.

Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

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

Clean cherry-pick of a pull request that was Verified for 4.20.9.

/jira-refresh
/lgtm
/label backport-risk-assessed

@openshift-ci openshift-ci bot added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. lgtm Indicates that a PR is ready to be merged. labels Jan 12, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 12, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, wking

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 Jan 12, 2026
@wking
Copy link
Member

wking commented Jan 12, 2026

/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 Jan 12, 2026
@openshift-ci-robot
Copy link
Contributor

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

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.19.z) matches configured target version for branch (4.19.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-70180 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-70180 targets the "4.20.z" version, which is one of the valid target versions: 4.20.0, 4.20.z
  • bug has dependents

Requesting review from QA contact:
/cc @jiajliu

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 openshift-ci bot requested a review from jiajliu January 12, 2026 22:43
@jiajliu
Copy link

jiajliu commented Jan 13, 2026

/verified later @jiajliu

@openshift-ci-robot openshift-ci-robot added verified-later verified Signifies that the PR passed pre-merge verification criteria labels Jan 13, 2026
@openshift-ci-robot
Copy link
Contributor

@jiajliu: This PR has been marked to be verified later by @jiajliu.

Details

In response to this:

/verified later @jiajliu

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.

@jiajliu
Copy link

jiajliu commented Jan 13, 2026

/retest-required

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 306af58 and 2 for PR HEAD 6770095 in total

@wking
Copy link
Member

wking commented Jan 13, 2026

The HyperShift failures look like:

2026-01-13 02:23:57+00:00 Clusteroperators not yet ready
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version             False       True          42m     Unable to apply 4.20.9: some cluster operators are not available
{"component":"entrypoint","file":"sigs.k8s.io/prow/pkg/entrypoint/run.go:169","func":"sigs.k8s.io/prow/pkg/entrypoint.Options.ExecuteProcess","level":"error","msg":"Process did not finish before 45m0s timeout","severity":"error","time":"2026-01-13T02:24:26Z"}
error: timed out waiting for the condition on clusterversions/version

and the management-cluster dump has:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1291/pull-ci-openshift-cluster-version-operator-release-4.19-e2e-hypershift/2010887286966718464/artifacts/e2e-hypershift/dump-management-cluster/artifacts/artifacts.tar | tar -xOz logs/artifacts/output/namespaces/clusters/hypershift.openshift.io/hostedclusters/d7e125562f926c7332ae-mgmt.yaml | yaml2json | jq '.status.conditions[] | select(.reason == "ClusterOperatorsNotAvailable")'
{
  "lastTransitionTime": "2026-01-13T01:41:55Z",
  "message": "Cluster operators console, dns, image-registry, ingress, insights, kube-storage-version-migrator, monitoring, network, openshift-samples, service-ca are not available",
  "observedGeneration": 3,
  "reason": "ClusterOperatorsNotAvailable",
  "status": "False",
  "type": "ClusterVersionSucceeding"
}
{
  "lastTransitionTime": "2026-01-13T01:41:16Z",
  "message": "Unable to apply 4.20.9: some cluster operators are not available",
  "observedGeneration": 3,
  "reason": "ClusterOperatorsNotAvailable",
  "status": "True",
  "type": "ClusterVersionProgressing"
}

Because they had some kind of difficulty with the compute Machines that host those components:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1291/pull-ci-openshift-cluster-version-operator-release-4.19-e2e-hypershift/2010887286966718464/artifacts/e2e-hypershift/dump-management-cluster/artifacts/artifacts.tar | tar -xOz logs/artifacts/output/namespaces/clusters-d7e125562f926c7332ae-mgmt/cluster.x-k8s.io/machines/d7e125562f926c7332ae-mgmt-us-east-1a-bqmvw-c9959.yaml | yaml2json | jq '.status.v1beta2.conditions[] | select(.type == "Ready")'
{
  "lastTransitionTime": "2026-01-13T01:45:04Z",
  "message": "* NodeHealthy:\n  * Node.Ready: container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: no CNI configuration file in /etc/kubernetes/cni/net.d/. Has your network provider started?",
  "observedGeneration": 2,
  "reason": "NotReady",
  "status": "False",
  "type": "Ready"
}

I suspect the issue is 4.20.9's OCPBUGS-72411, which was why it was respun as 4.20.10 using an older nightly. I'm confident enough in this change not breaking HyperShift to override those jobs, since it's not clear to me how long a roll-forward fix will take to get into 4.20 nightlies and on to the version used for the management cluster in these HyperShift CI runs:

/override ci/prow/e2e-hypershift
/override ci/prow/e2e-hypershift-conformance

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 13, 2026

@wking: Overrode contexts on behalf of wking: ci/prow/e2e-hypershift, ci/prow/e2e-hypershift-conformance

Details

In response to this:

The HyperShift failures look like:

2026-01-13 02:23:57+00:00 Clusteroperators not yet ready
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version             False       True          42m     Unable to apply 4.20.9: some cluster operators are not available
{"component":"entrypoint","file":"sigs.k8s.io/prow/pkg/entrypoint/run.go:169","func":"sigs.k8s.io/prow/pkg/entrypoint.Options.ExecuteProcess","level":"error","msg":"Process did not finish before 45m0s timeout","severity":"error","time":"2026-01-13T02:24:26Z"}
error: timed out waiting for the condition on clusterversions/version

and the management-cluster dump has:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1291/pull-ci-openshift-cluster-version-operator-release-4.19-e2e-hypershift/2010887286966718464/artifacts/e2e-hypershift/dump-management-cluster/artifacts/artifacts.tar | tar -xOz logs/artifacts/output/namespaces/clusters/hypershift.openshift.io/hostedclusters/d7e125562f926c7332ae-mgmt.yaml | yaml2json | jq '.status.conditions[] | select(.reason == "ClusterOperatorsNotAvailable")'
{
 "lastTransitionTime": "2026-01-13T01:41:55Z",
 "message": "Cluster operators console, dns, image-registry, ingress, insights, kube-storage-version-migrator, monitoring, network, openshift-samples, service-ca are not available",
 "observedGeneration": 3,
 "reason": "ClusterOperatorsNotAvailable",
 "status": "False",
 "type": "ClusterVersionSucceeding"
}
{
 "lastTransitionTime": "2026-01-13T01:41:16Z",
 "message": "Unable to apply 4.20.9: some cluster operators are not available",
 "observedGeneration": 3,
 "reason": "ClusterOperatorsNotAvailable",
 "status": "True",
 "type": "ClusterVersionProgressing"
}

Because they had some kind of difficulty with the compute Machines that host those components:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1291/pull-ci-openshift-cluster-version-operator-release-4.19-e2e-hypershift/2010887286966718464/artifacts/e2e-hypershift/dump-management-cluster/artifacts/artifacts.tar | tar -xOz logs/artifacts/output/namespaces/clusters-d7e125562f926c7332ae-mgmt/cluster.x-k8s.io/machines/d7e125562f926c7332ae-mgmt-us-east-1a-bqmvw-c9959.yaml | yaml2json | jq '.status.v1beta2.conditions[] | select(.type == "Ready")'
{
 "lastTransitionTime": "2026-01-13T01:45:04Z",
 "message": "* NodeHealthy:\n  * Node.Ready: container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: no CNI configuration file in /etc/kubernetes/cni/net.d/. Has your network provider started?",
 "observedGeneration": 2,
 "reason": "NotReady",
 "status": "False",
 "type": "Ready"
}

I suspect the issue is 4.20.9's OCPBUGS-72411, which was why it was respun as 4.20.10 using an older nightly. I'm confident enough in this change not breaking HyperShift to override those jobs, since it's not clear to me how long a roll-forward fix will take to get into 4.20 nightlies and on to the version used for the management cluster in these HyperShift CI runs:

/override ci/prow/e2e-hypershift
/override ci/prow/e2e-hypershift-conformance

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 842a2ac into openshift:release-4.19 Jan 13, 2026
15 checks passed
@openshift-ci-robot
Copy link
Contributor

@openshift-cherrypick-robot: Jira Issue OCPBUGS-70181: All pull requests linked via external trackers have merged:

This pull request has the verified-later tag and will need to be manually moved to VERIFIED after testing. Jira Issue OCPBUGS-70181 has been moved to the MODIFIED state.

Details

In response to this:

This is an automated cherry-pick of #1281

/assign wking

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.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. 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. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria verified-later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants