OCPBUGS-97948: Fix ClusterExtension Progressing condition stuck at True after successful install#763
Conversation
…sful install The setStatusProgressing function defaults the Progressing condition to Status=True with Reason=Succeeded when no error occurs. Per standard Kubernetes condition conventions, Progressing=True means work is still in progress. When the desired state has been reached (no error), Progressing should be False. This causes `oc get clusterextension` to permanently show PROGRESSING=True even when the operator is fully installed and running. Fix: default to ConditionFalse (done progressing) and only set ConditionTrue when a non-terminal error triggers a retry. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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: vdurgam10 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 @vdurgam10. 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. |
|
@vdurgam10: This pull request references Jira Issue OCPBUGS-97948, 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. |
Bug: https://redhat.atlassian.net/browse/OCPBUGS-97948
Summary
setStatusProgressingfunction incommon_controller.godefaults theProgressingcondition toStatus=TruewithReason=Succeededwhen no error occurs. Per standard Kubernetes condition conventions,Progressing=Truemeans work is still in progress. When the desired state has been reached (no error),Progressingshould beFalse.oc get clusterextensionto permanently showPROGRESSING=Trueeven when the operator is fully installed and running correctly.ConditionFalse(done progressing) and only setConditionTruewhen a non-terminal error triggers a retry.Before fix
After fix
Condition detail after fix
{ "type": "Progressing", "status": "False", "reason": "Succeeded", "message": "Desired state reached" }Test plan
PROGRESSING=Falseafter successful install (wasTruebefore fix)INSTALLED=Trueremains correctProgressing=Trueduring rollout →Progressing=Falseonce complete