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

Adding and then deleting a MachinePool persists ec2 instances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.15.z
    • HyperShift
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          Adding a MachinePool and then deleting it persists the node and ec2 instance. After deleting the node and terminating the ec2 instance, the ec2 instance is re-created and the node re-added to the cluster

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

          4.5.17

      How reproducible:

          I can sometimes reproduce on my cluster

      Steps to Reproduce:

      1. Add a machinepool to an existing cluster from https://console.redhat.com/openshift/ cluster/machinepools tab or rosa cli
      2. Wait for the node to be up and running
      3. Drain/cordon the node (optional)
      4. Delete the machinepool
           

      Actual results:

      - machine pool is deleted and does not show in the https://console.redhat.com/openshift/
      - node(s) is(are) still registered to the cluster (they show in `oc get nodes` and in the console at Compute->Nodes
      - aws shows the instance as running.
      

      Expected results:

      - machine pool is deleted and does not show on console.redhat.com/openshift/
      - node(s) is(are) deleted from the list of nodes in the cluster (`oc get nodes` or console->Admin->Compute->Nodes)
      - aws EC2 instance is shown as terminated from the aws console 
       

      Additional info:

      - If I manually delete the node using `oc delete node` and terminate the aws instance, the aws instance and nodes are recreated
      - If I re-create a machine pool and re-delete it, the issue seems to go away

       

              agarcial@redhat.com Alberto Garcia Lamela
              rh-ee-dtrifiro Daniele Trifirò
              Jie Zhao Jie Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: