Uploaded image for project: 'Cluster Observability Operator'
  1. Cluster Observability Operator
  2. COO-1255

When removing operators installed via ObservabilityInstaller, we should also remove CSV and CRDs of the operators along with the subscription.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • cluster-observability
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of the issue:

      When a ObservabilityInstaller CR instance is deleted with spec.capabilites.tracing.operators.install: true, only the subscription for the operators is deleted. We should also delete the associated CSV and CRDs of the operators. 

      Steps to reproduce the issue:

      *Create the following ObservabilityInstaller instance.

      apiVersion: observability.openshift.io/v1alpha1
      kind: ObservabilityInstaller
      metadata:
        name: test-operator-install
      spec:
        capabilities:
          tracing:
            operators:
              install: true
      

      *Delete the CR instance and check that the subscription of the Tempo and OpenTelemetry operator is deleted but the CSV and CRDs are still present. If we try to install the operators again it creates conflict as the CSVs from previous install is present. 

      % oc delete -f operator-instal.yaml 
      observabilityinstaller.observability.openshift.io "test-operator-install" deleted
      
      % oc get sub
      NAME                                PACKAGE                  SOURCE                           CHANNEL
      observability-operator-v1-2-5-sub   observability-operator   observability-operator-catalog   operator-sdk-run-bundle
      
      % oc get csv
      NAME                                DISPLAY                          VERSION     REPLACES                            PHASE
      observability-operator.v1.2.5       Observability Operator           1.2.5                                           Succeeded
      opentelemetry-operator.v0.135.0-1   Red Hat build of OpenTelemetry   0.135.0-1   opentelemetry-operator.v0.127.0-2   Succeeded
      tempo-operator.v0.18.0-1            Tempo Operator                   0.18.0-1    tempo-operator.v0.16.0-2            Succeeded
      
      % oc get customresourcedefinitions.apiextensions.k8s.io| grep -iE "tempo|opentelemetry" 
      instrumentations.opentelemetry.io                                 2025-10-06T06:42:58Z
      opampbridges.opentelemetry.io                                     2025-10-06T06:42:58Z
      opentelemetrycollectors.opentelemetry.io                          2025-10-06T06:42:58Z
      targetallocators.opentelemetry.io                                 2025-10-06T06:42:59Z
      tempomonolithics.tempo.grafana.com                                2025-10-06T06:43:02Z
      tempostacks.tempo.grafana.com                                     2025-10-06T06:43:02Z
      

       

       

              ploffay@redhat.com Pavol Loffay
              rhn-support-ikanse Ishwar Kanse
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: