OCPBUGS-8247: return error when --to-multi-arch is used on a multi-arch cluster - #2340
OCPBUGS-8247: return error when --to-multi-arch is used on a multi-arch cluster#2340savio87 wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@savio87: This pull request references Jira Issue OCPBUGS-8247, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
Warning Review limit reached
Next review available in: 3 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: savio87 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @savio87. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
Adds a check on status.desired.architecture to detect clusters already running multi-architecture, returning a clear error instead of attempting a redundant patch. Could a maintainer update the target version on OCPBUGS-8247 and run /ok-to-test? Thanks! |
|
|
||
| case o.ToMultiArch: | ||
| if cv.Status.Desired.Architecture == configv1.ClusterVersionArchitectureMulti { | ||
| return fmt.Errorf("Cluster is already multi-architecture") |
There was a problem hiding this comment.
I am not sure the message is precise, the docs say:
// desired is the version that the cluster is reconciling towards.
// If the cluster is not yet fully initialized desired will be set
// with the information available, which may be an image or a tag.
// +required
Desired Release `json:"desired"`So it may be still progressing, I guess.
There was a problem hiding this comment.
I have to say I don't know exactly how this works, it's just based on the docs.
Summary
Running
oc adm upgrade --to-multi-archon a cluster that is already multi-architecture did not return an error. The existing check only caught the case where a migration was requested (viaspec.desiredUpdate.architecture) but not yet completed. After completion, CVO clears that field, so the command would attempt the patch again.This adds a check on
status.desired.architectureto detect clusters that are already running multi-architecture and return a clear error message.Bug: https://redhat.atlassian.net/browse/OCPBUGS-8247
Changes
cv.Status.Desired.Architecture == ClusterVersionArchitectureMulti, return"Cluster is already multi-architecture"spec.desiredUpdatecheck, which catches in-progress migrations