Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1877856

Summary: [Descheduler] - Do not see excludeOwnerkinds being copied to configmap
Product: OpenShift Container Platform Reporter: RamaKasturi <knarra>
Component: kube-schedulerAssignee: Mike Dame <mdame>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, mdame, mfojtik
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:39:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RamaKasturi 2020-09-10 15:34:09 UTC
Description of problem:
I see that excludeOwnerkinds does not get copied to configmap.

Version-Release number of selected component (if applicable):
[ramakasturinarra@dhcp35-60 openshift-client-linux-4.6.0-0.nightly-2020-09-10-031249]$ ./oc version
Client Version: 4.6.0-0.nightly-2020-09-10-031249
Server Version: 4.6.0-0.nightly-2020-09-10-031249
Kubernetes Version: v1.19.0-rc.2+068702d


How reproducible:
Always

Steps to Reproduce:
1. Install latest descheduler
2. Add the below strategies
 - name: RemoveDuplicates
    params:
    - name: excludeOwnerKinds
      value: ReplicaSet
3. Run the command oc get configmap cluster -o yaml

Actual results:
I see that excludeOwnerkinds does not get copied to configmap

Expected results:
excludeOwnerkinds should get copied to configmap

Additional info:

Comment 2 RamaKasturi 2020-09-16 12:54:44 UTC
Verified on the payload below and i see that excludeOwnerKinds gets copied onto the config map.

[ramakasturinarra@dhcp35-60 openshift-client-linux-4.6.0-0.nightly-2020-09-16-000734]$ 
[ramakasturinarra@dhcp35-60 openshift-client-linux-4.6.0-0.nightly-2020-09-16-000734]$ oc get csv
NAME                                                   DISPLAY                     VERSION                 REPLACES   PHASE
clusterkubedescheduleroperator.4.6.0-202009152100.p0   Kube Descheduler Operator   4.6.0-202009152100.p0              Succeeded

[ramakasturinarra@dhcp35-60 openshift-client-linux-4.6.0-0.nightly-2020-09-16-000734]$ oc get configmap cluster -o yaml
apiVersion: v1
data:
  policy.yaml: |
    strategies:
      LowNodeUtilization:
        enabled: true
        params:
          namespaces: null
          nodeResourceUtilizationThresholds:
            targetThresholds:
              cpu: 50
              memory: 40
              pods: 60
            thresholds:
              cpu: 10
              memory: 20
              pods: 30
          thresholdPriority: null
          thresholdPriorityClassName: ""
      PodLifeTime:
        enabled: true
        params:
          maxPodLifeTimeSeconds: 3600
          namespaces:
            exclude:
            - my-project1
            include:
            - my-project
          thresholdPriority: null
          thresholdPriorityClassName: system-cluster-critical
      RemoveDuplicates:
        enabled: true
        params:
          namespaces: null
          removeDuplicates:
            excludeOwnerKinds:
            - ReplicaSet
          thresholdPriority: null
          thresholdPriorityClassName: ""
      RemovePodsHavingTooManyRestarts:
        enabled: true
        params:
          namespaces:
            exclude: null
            include: null
          podsHavingTooManyRestarts:
            podRestartThreshold: 10
          thresholdPriority: null
          thresholdPriorityClassName: ""
      RemovePodsViolatingInterPodAntiAffinity:
        enabled: true
        params:
          namespaces:
            exclude: null
            include: null
          thresholdPriority: null
          thresholdPriorityClassName: ""

Based on the above moving the bug to verified state.

Comment 5 errata-xmlrpc 2020-10-27 16:39:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196