Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-61181

[4.19+] After deleting the rodoo(run once duration override operator) operator, it is getting recreated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.19
    • OLM
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • Yes
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      After deleting the run-once-duration-override-operator.openshift-run-once-duration operator it is getting recreated 

      Version-Release number of selected component (if applicable):

      4.19.0-0.nightly-2025-08-28-080135

      How reproducible:

      Always

      Steps to Reproduce:

      1. Install run once duration override operator on 4.19 cluster from web console in ns openshift-run-once-duration-override-operator.
      2. Check the operatorgroup, subscription, operator, csv version.
      3. Uninstall/Delete csv, subscription, operatorgroup, verify they got deleted and check the operator is still remaining.
      4. Delete the operator run-once-duration-override-operator.openshift-run-once-duration  and check if its recreated or deleted 
      
      oc create ns openshift-run-once-duration-override-operator
      oc label ns openshift-run-once-duration-override-operator runoncedurationoverrides.admission.runoncedurationoverride.openshift.io/enabled=true
      
      // Check the operatorgroup, subscription, operator, csv version
      oc get operatorgroup -n openshift-run-once-duration-override-operator
      NAME                                                  AGE
      openshift-run-once-duration-override-operator-fp6fl   105s
      
      oc get subscription -n openshift-run-once-duration-override-operator
      NAME                                  PACKAGE                               SOURCE            CHANNEL
      run-once-duration-override-operator   run-once-duration-override-operator   qe-app-registry   stable
      
      // Cluster wide scope
      oc get operator -A | grep "run-once"
      run-once-duration-override-operator.openshift-run-once-duration   2m45s
      
      oc get csv -n openshift-run-once-duration-override-operator
      NAME                                     DISPLAY                               VERSION   REPLACES                                 PHASE
      runoncedurationoverrideoperator.v1.3.0   Run Once Duration Override Operator   1.3.0     runoncedurationoverrideoperator.v1.2.0   Succeeded
      
      // Uninstall/Delete csv, subscription, operatorgroup, check the operator is still remaining
      oc delete csv/runoncedurationoverrideoperator.v1.3.0 -n openshift-run-once-duration-override-operator
      clusterserviceversion.operators.coreos.com "runoncedurationoverrideoperator.v1.3.0" deleted
      
      oc delete subscription/run-once-duration-override-operator -n openshift-run-once-duration-override-operator
      subscription.operators.coreos.com "run-once-duration-override-operator" deleted
      
      oc delete operatorgroup/openshift-run-once-duration-override-operator-fp6fl -n openshift-run-once-duration-override-operator
      operatorgroup.operators.coreos.com "openshift-run-once-duration-override-operator-fp6fl" deleted
      
      // Verify they got deleted, check the operator is still remaining
      oc get csv -n openshift-run-once-duration-override-operator
      No resources found in openshift-run-once-duration-override-operator namespace.
      
      oc get operatorgroup -n openshift-run-once-duration-override-operator
      No resources found in openshift-run-once-duration-override-operator namespace.
      
      oc get subscription -n openshift-run-once-duration-override-operator
      No resources found in openshift-run-once-duration-override-operator namespace.
      
      oc get operator -A | grep "run-once"
      run-once-duration-override-operator.openshift-run-once-duration   8m54s
      
      // Delete the operator run-once-duration-override-operator.openshift-run-once-duration  and check if its recreated or deleted
      
      oc delete operator/run-once-duration-override-operator.openshift-run-once-duration
      operator.operators.coreos.com "run-once-duration-override-operator.openshift-run-once-duration" deleted
      
      oc get operator -A | grep "run-once"
      run-once-duration-override-operator.openshift-run-once-duration   17s
            

      Actual results:

      After deleting the operator, it is getting recreated
      
      oc delete operator/run-once-duration-override-operator.openshift-run-once-duration operator.operators.coreos.com "run-once-duration-override-operator.openshift-run-once-duration" deleted
      
      oc get operator -A | grep "run-once" run-once-duration-override-operator.openshift-run-once-duration   17s

      Expected results:

      The operator should not get recreated, else it keeps as residual inide the cluster. 

      Additional info:

      Tried with AWS EFS operator, after deleting the csv, operatorgroup, subscription, operator the operator does not gets recreated

              rh-ee-cchantse Catherine Chan-Tse
              ropatil@redhat.com Rohit Patil
              None
              None
              Jian Zhang Jian Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: