OCPBUGS-94183, OCPBUGS-94184: [release-4.22] Add transient error handling across all three controllers, fix progressing=true #485
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
<!-- 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.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.
> <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 thereviews.review_statustofalsein 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>
</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
@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>
/jira refresh
@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
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>
/jira refresh
@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-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>
/pipeline auto
/approve
[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:
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":[]} -->
/test e2e-aws-ovn-upgrade
@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 -->
/hold
@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>
nrb
theobarberbany
Summary
This depends on https://github.com/openshift/cluster-cloud-controller-manager-operator/pull/484 to avoid the race that required the revert previously.