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

MachineSet doesn't scale to zero

XMLWordPrintable

    • -
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Setting a MachineSet's replicas to "0" does not remove all workers.

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

       

      How reproducible:

       

      Steps to Reproduce:

      Scale a machineset to zero replicas:
      
      ```
      oc -n openshift-machine-api patch "$(oc -n openshift-machine-api get machineset -o NAME | head -n1)" \
          --type='json' \
          --patch='[ {"op": "replace", "path": "/spec/replicas", "value": 0} ]'
      ```
      

      Actual results:

      watch worker nodes decrease to one:
      
      ```
      oc get nodes
      ```
      
      and worker instances decrease to one:
      
      ```
      openstack server list
      ```

      Expected results:

      Worker nodes scale to zero, OpenStack machines named "worker" scale to zero.

      Additional info:

      https://issues.redhat.com/browse/OSASINFRA-1803

       

            maandre@redhat.com Martin André
            pprinett@redhat.com Pierre Prinetti
            Jon Uriarte Jon Uriarte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: