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

evictionLimits.node settings is ineffective when LowNodeUtilizationStrategy because it is not propagated to plugin configuration

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.20
    • descheduler
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem

      Whenever the LowNodeUtilizationStrategy plugin is in use, the evictionLimits.node setting is not applied and pods are always evicted one by one, as we can see in this log:

      nodeutilization.go:334] "Currently, only a single pod eviction is allowed"
      

      Reason is that evictionLimits.node is fed only to the maxNoOfPodsToEvictPerNode setting but not to the numberOfNodes plugin setting, so it defaults to 1, making a effective limit of one pod eviction per node regardless of evictionLimits.node

      Version-Release number of selected component (if applicable)

      OCP: 4.20.8
      cluster-kube-descheduler-operator: 5.3.1

      How reproducible

      Always

      Steps to Reproduce

      1. Configure a descheduler profile that uses LowNodeUtilizationStrategy plugin, like KubeVirtRelieveAndMigrate
      2. Set evictionLimits.node higher than 1

      Actual results

      One eviction per node regardless of the setting

      Expected results

      More than one eviction per node, as per evictionLimits.node setting.

      Additional info

      None

              aos-workloads-staff Workloads Team Bot Account
              rhn-support-palonsor Pablo Alonso Rodriguez
              None
              None
              Rama Kasturi Narra Rama Kasturi Narra
              None
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: