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

Hosted cluster is stuck in Pending Import after ManagedCluster CR is deleted and then reimported

XMLWordPrintable

    • Important
    • No

      Description of problem:

      After a user successfully creates and imports a hosted cluster into MCE, if the ManagedCluster CR is deleted by mistake, the user should be offered to re-import the cluster to manage it again.

      However, upon doing so, the ManagedCluster CR is re-created and the HC annotations still exist, yet the UI remains in "Pending Import" state:

       

      oc get managedclusters clc-dhu-hs3                               
      NAME          HUB ACCEPTED   MANAGED CLUSTER URLS                                                                         JOINED   AVAILABLE   AGE
      clc-dhu-hs3   true           https://a5db0911af5dc41be93c57e72fff2988-621131713ed2f173.elb.us-east-1.amazonaws.com:6443   True     True        48m
      
      oc delete managedclusters clc-dhu-hs3                                anagedcluster.cluster.open-cluster-management.io "clc-dhu-hs3" deleted 

      After delete, and then clicking "import cluster" again:

      oc get managedclusters clc-dhu-hs3
      NAME          HUB ACCEPTED   MANAGED CLUSTER URLS   JOINED   AVAILABLE   AGE
      clc-dhu-hs3   true                                           Unknown     17m 
      
      oc get hostedclusters clc-dhu-hs3 -n local-cluster
      NAME          VERSION       KUBECONFIG                     PROGRESS    AVAILABLE   PROGRESSING   MESSAGE
      clc-dhu-hs3   4.12.0-rc.0   clc-dhu-hs3-admin-kubeconfig   Completed   True        False         The hosted control plane is available

      Here we can see that the MC is in an unhealthy state (addons, nodes on the UI) while the hosted cluster remains good

       

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

      2.2.0-DOWNANDBACK-2022-11-14-03-29-38

      How reproducible:

      always

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

              phwu@redhat.com Philip Wu
              rhn-support-dhuynh David Huynh
              David Huynh David Huynh
              ACM QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: