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

Imported OCP clusters - When removing an added node in the clusterInstance, the latter is not removed

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Important
    • None

      Description of problem:

      Originally importing the cluster : https://issues.redhat.com/browse/ACM-24929

      Imported OCP clusters - When removed and added host in the clusterInstance yaml, the latter still shows resources  rendered but the host is removed for the nodes list.

      the CRs: bmh, nmstate,infraenv are not removed and the node still shows as part of the cluster

       

      Version-Release number of selected component (if applicable): ACM/siteconfig : 2.15.0

      How reproducible: always

      Steps to Reproduce:

      1.  import a 3 nodes cluster or more to ACM following this doc: https://docs.google.com/document/d/1oKCk69Nnux-adc8sjmGe5tbEk5TZEHOUpZH17cXIvXU/edit?tab=t.0#heading=h.mc0urzjrdwgx
      2.  edit the cluster instance yaml and add host to the list of nodes.
      3. while edit the clusterInstance yaml ensure that : spec. has this 
        1. spec:
            suppressedManifests:
              - ClusterDeployment 
      1.  push clusterinstance yaml to git.
      2. once gitOps is sync'ed ; ClusterInstance will render the CRs and deploy the node.
      3. Wait till the node completes the installation : takes about 20mn but I gave it half a day to settle down.
      4. Now edit the clusterInstance Yaml and comment or remove the node - item related to the added node.
        1.   nodes:
            - bmcAddress: ... 
            - bmcAddress: ..... 

      Actual results: node is not added to the cluster and related resources (bmh, infraenv, nmstate ) are not created

      Expected results: the node joins the cluster and related resources are created

      Additional info: must-gather is here https://drive.google.com/file/d/1bKn0cOR9Nu3k7MAGWaN8OYNGbGH0bvc1/view?usp=drive_link

              sakhoury@redhat.com Sharat Akhoury
              lhalleb@redhat.com Lazhar Halleb
              Lazhar Halleb
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: