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

Targeted deletion of Machine Does not Override deletePolicy

XMLWordPrintable

    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Hide
      The algorithm used to calculate the priority for Machine removal, equated Machines over a certain age as equal priority to Machines that were annotated as preferred for removal.
      The priority of unmarked Machines that are sorted by age has been reduced to never conflict with those explicitly marked, and the algorithm has been updated to ensure age ordering is guaranteed for Machines up to 10 years old.
      Show
      The algorithm used to calculate the priority for Machine removal, equated Machines over a certain age as equal priority to Machines that were annotated as preferred for removal. The priority of unmarked Machines that are sorted by age has been reduced to never conflict with those explicitly marked, and the algorithm has been updated to ensure age ordering is guaranteed for Machines up to 10 years old.
    • Bug Fix
    • In Progress

      This is a clone of issue OCPBUGS-45998. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-42414. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-42388. The following is the description of the original issue:

      Description of problem:

      Customer MachineSets are configured with deletePolicy: Oldest, and they annotated a specific machine with machine.openshift.io/cluster-api-delete-machine="true" to target it for deletion during a scale-down.

      However, instead of deleting the annotated machine, another machine (based on the Oldest policy) was selected for deletion.

      Interestingly, when they removed the deletePolicy: Oldest from the MachineSet (which defaulted to deletePolicy: Random), the annotation was correctly honored, and the specific machine  targeted was deleted during the scale-down operation.

      Based on the documentation [1] , the annotation should override the deletePolicy, but this doesn’t seem to be happening when deletePolicy: Oldest is in place. The issue was resolved only when they removed the Oldest policy and allowed it to default to Random.
      [1]https://docs.openshift.com/container-platform/4.14/machine_management/manually-scaling-machineset.html#machineset-delete-policy_manually-scaling-machineset

      OCP 4.14.33.

       

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              joelspeed Joel Speed
              openshift-crt-jira-prow OpenShift Prow Bot
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: