Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-12025

open-cluster-management-addon-observability is left behind after unmanaging a cluster in ZTP

XMLWordPrintable

    • 2
    • False
    • None
    • False
    • MCO Sprint 24, SF Train-16, SF Train-17
    • No

      Description of problem:

      After unmanaging a cluster via ZTP by removing the siteconfig and resources file from gitops, the "open-cluster-management-addon-observability" namespace and objects running in the namespace are still there. I would expect all things to be cleaned up after a cluster is no longer managed by the hub.

      # oc get managedcluster vm00002
      Error from server (NotFound): managedclusters.cluster.open-cluster-management.io "vm00002" not found
      # oc --kubeconfig /root/hv-vm/kc/vm00002/kubeconfig get po -n open-cluster-management-addon-observability
      NAME                                              READY   STATUS    RESTARTS   AGE
      endpoint-observability-operator-b9bbddf88-kjq8w   1/1     Running   0          17m
      kube-state-metrics-d8bb96948-9xst4                3/3     Running   0          25h
      metrics-collector-deployment-74c75b47fb-2t4kb     1/1     Running   0          24m
      node-exporter-5b58n                               0/2     Pending   0          25h
      prometheus-k8s-0                                  3/3     Running   0          25h
      prometheus-operator-7f5fff68b9-cd2r9              1/1     Running   0          25h

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

      ACM - 2.11.0-DOWNSTREAM-2024-05-23-15-16-26

      Hub OCP -  4.16.0-rc.3

      Deployed SNOs - 4.14.16

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

        1. hub-acm-must-gather.tar.gz
          177.27 MB
          Alex Krzos
        2. hub-acm-must-gather-2nd-attempt.tar.gz
          153.50 MB
          Alex Krzos
        3. managedcluster-import-controller-v2-5756b6585c-hhz6z.log
          7.28 MB
          Alex Krzos
        4. managedcluster-import-controller-v2-5756b6585c-qqlmp.log
          3 kB
          Alex Krzos
        5. must-gather-20240628-152110.tar.gz
          187.57 MB
          Alex Krzos
        6. vm00002-acm-must-gather.tar.gz
          3 kB
          Alex Krzos
        7. vm00002-must-gather.tar.gz
          50.31 MB
          Alex Krzos
        8. vm00002-must-gather.tar-1.gz
          48.13 MB
          Alex Krzos
        9. vm00007-acm-must-gather.tar.gz
          3 kB
          Alex Krzos

              leyan@redhat.com Le Yang
              akrzos@redhat.com Alex Krzos
              Hui Chen Hui Chen
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: