← Back to Pull requests

OCPBUGS-94183, OCPBUGS-94184: [release-4.22] Add transient error handling across all three controllers, fix progressing=true #485

Closed
theobarberbany closed this pull request without merging on Jul 14, 2026 16:37 UTC
View on GitHub
theobarberbany theobarberbany commented on Jul 08, 2026 13:50 UTC
Author

Summary

  • All three reconcilers (CloudConfigReconciler, TrustedCABundleReconciler, CloudOperatorReconciler) now distinguish transient errors (API blips) from permanent errors (corrupt config, unsupported platform). Transient errors are silently requeued and only set Degraded=True after a threshold (2m for sub-controllers, 2m30s for the main controller). Permanent errors degrade immediately without requeue.

  • Failure handling is consolidated into a shared finalizeReconcile() deferred function in reconcile_dispatch.go, using controller-runtime's TerminalError to classify errors.

  • Fix Progressing=True being immediately overwritten by Available — sync() now returns (bool, error) so Reconcile skips setStatusAvailable when resources were just updated.
  • This depends on https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/484 to avoid the race that required the revert previously.

    Diff: 1899 lines (+1663 / -236) across 9 files Reviewer: nrb Review duration: 8806m
    All Vouch review confidence checks passed
    Residual risk 0.12 = Change Risk (0.55) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.55 · 1899 lines diff across 9 files
    0.55
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.76 · 5 substantive comment(s)
    0.76
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    78%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Real PR Conversation Timeline
    16 items
    openshift-ci[bot] openshift-ci[bot] commented on Jul 08, 2026 13:50 UTC
    Bot

    Skipping CI for Draft Pull Request.
    If you want CI signal for your change, please convert it to an actual PR.
    You can still manually trigger a test run with /test all

    coderabbitai[bot] coderabbitai[bot] commented on Jul 08, 2026 13:50 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- This is an auto-generated comment: skip review by coderabbit.ai -->

    [!IMPORTANT]

    ## Review skipped

    > Auto reviews are disabled on base/target branches other than the default branch.

    >

    > 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.

    > <details>

    <summary>⚙️ Run configuration</summary>

    > Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

    > Review profile: CHILL

    > Plan: Enterprise

    > Run ID: acc65138-09a4-4a4a-93ab-074656ec4684

    > </details>

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

    > Use the checkbox below for a quick retry:

    - [ ] <!-- {"checkboxId": "e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review

    <!-- end of auto-generated comment: skip review by coderabbit.ai -->

    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- tips_start -->

    ---

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    openshift-ci-robot openshift-ci-robot commented on Jul 08, 2026 15:17 UTC
    Contributor

    @theobarberbany: This pull request references Jira Issue OCPBUGS-94183, which is invalid:
    - expected Jira Issue OCPBUGS-94183 to depend on a bug targeting a version in 5.0.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

    Comment <code>/jira refresh</code> 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.

    This pull request references Jira Issue OCPBUGS-94184, which is invalid:
    - expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is MODIFIED instead

    Comment <code>/jira refresh</code> 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:

    Summary

    >- All three reconcilers (CloudConfigReconciler, TrustedCABundleReconciler, CloudOperatorReconciler) now distinguish transient errors (API blips) from permanent errors (corrupt config, unsupported platform). Transient errors are silently requeued and only set Degraded=True after a threshold (2m for sub-controllers, 2m30s for the main controller). Permanent errors degrade immediately without requeue.

    >- Failure handling is consolidated into a shared finalizeReconcile() deferred function in reconcile_dispatch.go, using controller-runtime's TerminalError to classify errors.
    >- Fix Progressing=True being immediately overwritten by Available — sync() now returns (bool, error) so Reconcile skips setStatusAvailable when resources were just updated.
    >

    >This depends on https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/484 to avoid the race that required the revert previously.
    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.

    </details>

    theobarberbany theobarberbany commented on Jul 08, 2026 15:38 UTC
    Author

    /jira refresh

    openshift-ci-robot openshift-ci-robot commented on Jul 08, 2026 15:38 UTC
    Contributor

    @theobarberbany: This pull request references Jira Issue OCPBUGS-94183, which is invalid:
    - expected dependent Jira Issue OCPBUGS-42837 to target a version in 5.0.0, but it targets "5.0" instead

    Comment <code>/jira refresh</code> 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.

    This pull request references Jira Issue OCPBUGS-94184, which is valid.

    <details><summary>7 validation(s) were run on this bug</summary>

    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 POST, which is one of the valid states (NEW, ASSIGNED, POST)
    release note type set to "Release Note Not Required"
    dependent bug Jira Issue OCPBUGS-64852 is in the state ON_QA, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
    dependent Jira Issue OCPBUGS-64852 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0

  • bug has dependents</details>
  • Requesting review from QA contact:
    /cc @miyadav

    <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.
    </details>

    theobarberbany theobarberbany commented on Jul 08, 2026 15:38 UTC
    Author

    /jira refresh

    openshift-ci-robot openshift-ci-robot commented on Jul 08, 2026 15:38 UTC
    Contributor

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

    <details><summary>7 validation(s) were run on this bug</summary>

    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)
    release note type set to "Release Note Not Required"
    dependent bug Jira Issue OCPBUGS-42837 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
    dependent Jira Issue OCPBUGS-42837 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0
    bug has dependents</details>

    Requesting review from QA contact:
    /cc @sunzhaohua2

    This pull request references Jira Issue OCPBUGS-94184, which is valid.

    <details><summary>7 validation(s) were run on this bug</summary>

    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 POST, which is one of the valid states (NEW, ASSIGNED, POST)
    release note type set to "Release Note Not Required"
    dependent bug Jira Issue OCPBUGS-64852 is in the state ON_QA, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
    dependent Jira Issue OCPBUGS-64852 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0
    bug has dependents</details>

    Requesting review from QA contact:
    /cc @miyadav

    <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.
    </details>

    openshift-ci[bot] openshift-ci[bot] commented on Jul 08, 2026 15:38 UTC
    Bot

    @openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: sunzhaohua2.

    Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

    <details>

    In response to this:

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

    ><details><summary>7 validation(s) were run on this bug</summary>

    > 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)
    >
    release note type set to "Release Note Not Required"
    > dependent bug Jira Issue OCPBUGS-42837 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
    >
    dependent Jira Issue OCPBUGS-42837 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0
    > bug has dependents</details>
    >Requesting review from QA contact:

    >/cc @sunzhaohua2
    >This pull request references Jira Issue OCPBUGS-94184, which is valid.

    ><details><summary>7 validation(s) were run on this bug</summary>

    > 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 POST, which is one of the valid states (NEW, ASSIGNED, POST)
    > release note type set to "Release Note Not Required"
    >
    dependent bug Jira Issue OCPBUGS-64852 is in the state ON_QA, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
    > dependent Jira Issue OCPBUGS-64852 targets the "5.0.0" version, which is one of the valid target versions: 5.0.0
    >
    bug has dependents</details>
    >Requesting review from QA contact:

    >/cc @miyadav
    ><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.
    ></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.
    </details>

    theobarberbany theobarberbany commented on Jul 08, 2026 15:39 UTC
    Author

    /pipeline auto

    nrb nrb approved these changes on Jul 08, 2026 20:28 UTC
    Approved Reviewer

    /approve

    openshift-ci[bot] openshift-ci[bot] commented on Jul 08, 2026 20:29 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/485#pullrequestreview-4657688199" title="Approved">nrb</a>

    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:

  • ~~OWNERS~~ [nrb]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    theobarberbany theobarberbany commented on Jul 08, 2026 21:01 UTC
    Author

    /test e2e-aws-ovn-upgrade

    openshift-ci[bot] openshift-ci[bot] commented on Jul 09, 2026 00:40 UTC
    Bot

    @theobarberbany: 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.
    </details>
    <!-- test report -->

    theobarberbany theobarberbany commented on Jul 09, 2026 11:40 UTC
    Author

    /hold

    openshift-ci-robot openshift-ci-robot commented on Jul 14, 2026 16:37 UTC
    Contributor

    @theobarberbany: This pull request references Jira Issue OCPBUGS-94183. The bug has been updated to no longer refer to the pull request using the external bug tracker.

    This pull request references Jira Issue OCPBUGS-94184. The bug has been updated to no longer refer to the pull request using the external bug tracker.

    <details>

    In response to this:

    Summary

    >- All three reconcilers (CloudConfigReconciler, TrustedCABundleReconciler, CloudOperatorReconciler) now distinguish transient errors (API blips) from permanent errors (corrupt config, unsupported platform). Transient errors are silently requeued and only set Degraded=True after a threshold (2m for sub-controllers, 2m30s for the main controller). Permanent errors degrade immediately without requeue.

    >- Failure handling is consolidated into a shared finalizeReconcile() deferred function in reconcile_dispatch.go, using controller-runtime's TerminalError to classify errors.
    >- Fix Progressing=True being immediately overwritten by Available — sync() now returns (bool, error) so Reconcile skips setStatusAvailable when resources were just updated.
    >

    >This depends on https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/484 to avoid the race that required the revert previously.
    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.

    </details>

    Reviewers
    Assignees
    theobarberbany theobarberbany
    Labels
    risk: low confidence: 78.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 54.7% (MEDIUM) · Higher = larger blast radius
    54.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 78.7% · Lower = rushed or shallow review
    78.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 11.7% · Safe to merge
    11.7%