Bug 1915416
| Summary: | [Descheduler] descheduler evicts pod which does not have any ownerRef or descheduler evict annotation | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | RamaKasturi <knarra> |
| Component: | kube-scheduler | Assignee: | Mike Dame <mdame> |
| Status: | CLOSED ERRATA | QA Contact: | RamaKasturi <knarra> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.7 | CC: | aos-bugs, maszulik, mdame, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | 4.7.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: | 2021-02-24 15:52:28 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
2021-01-12 15:56:42 UTC
Upstream PR to fix this: https://github.com/kubernetes-sigs/descheduler/pull/484 Verified bug with the payload below and i see that when the annotation "descheduler.alpha.kubernetes.io/evict": "" is not present, pods does not get evicted and when annotation is present pods get evicted to maintain right TopologyConstraint.
[knarra@knarra openshift-misc]$ oc get csv -n openshift-kube-descheduler-operator
NAME DISPLAY VERSION REPLACES PHASE
clusterkubedescheduleroperator.4.7.0-202101160343.p0 Kube Descheduler Operator 4.7.0-202101160343.p0 Succeeded
[knarra@knarra openshift-misc]$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.7.0-0.nightly-2021-01-18-000316 True False 5h19m Cluster version is 4.7.0-0.nightly-2021-01-18-000316
Descheduler log when the descheduler annotations are not present for the pods:
===========================================================================
[knarra@knarra verification-tests]$ oc logs -f cluster-68fd5d5976-xllt2 -n openshift-kube-descheduler-operator
I0119 12:16:07.974680 1 node.go:46] "Node lister returned empty list, now fetch directly"
I0119 12:16:08.169078 1 topologyspreadconstraint.go:109] "Processing namespaces for topology spread constraints"
I0119 12:16:08.376539 1 duplicates.go:94] "Processing node" node="compute-0"
I0119 12:16:08.457438 1 duplicates.go:94] "Processing node" node="compute-1"
I0119 12:16:08.482481 1 duplicates.go:94] "Processing node" node="control-plane-0"
I0119 12:16:08.509079 1 duplicates.go:94] "Processing node" node="control-plane-1"
I0119 12:16:08.532517 1 duplicates.go:94] "Processing node" node="control-plane-2"
I0119 12:17:08.557448 1 node.go:46] "Node lister returned empty list, now fetch directly"
I0119 12:17:08.669790 1 topologyspreadconstraint.go:109] "Processing namespaces for topology spread constraints"
I0119 12:17:08.770414 1 duplicates.go:94] "Processing node" node="compute-0"
I0119 12:17:08.794727 1 duplicates.go:94] "Processing node" node="compute-1"
I0119 12:17:08.857392 1 duplicates.go:94] "Processing node" node="control-plane-0"
I0119 12:17:08.881861 1 duplicates.go:94] "Processing node" node="control-plane-1"
I0119 12:17:08.903355 1 duplicates.go:94] "Processing node" node="control-plane-2"
Descheduler log when the descheduler annotations are present for the pod:
========================================================================
[knarra@knarra verification-tests]$ oc logs -f cluster-55b679cd94-bf65m -n openshift-kube-descheduler-operator
I0119 12:19:47.873990 1 node.go:46] "Node lister returned empty list, now fetch directly"
I0119 12:19:48.059908 1 topologyspreadconstraint.go:109] "Processing namespaces for topology spread constraints"
I0119 12:19:48.297513 1 evictions.go:117] "Evicted pod" pod="knarra/mypodsv4sp" reason=" (PodTopologySpread)"
I0119 12:19:48.297657 1 duplicates.go:94] "Processing node" node="compute-0"
I0119 12:19:48.324803 1 duplicates.go:94] "Processing node" node="compute-1"
I0119 12:19:48.347550 1 duplicates.go:94] "Processing node" node="control-plane-0"
I0119 12:19:48.381212 1 duplicates.go:94] "Processing node" node="control-plane-1"
I0119 12:19:48.457461 1 duplicates.go:94] "Processing node" node="control-plane-2"
I0119 12:20:48.497487 1 node.go:46] "Node lister returned empty list, now fetch directly"
I0119 12:20:48.507606 1 duplicates.go:94] "Processing node" node="compute-0"
I0119 12:20:48.527653 1 duplicates.go:94] "Processing node" node="compute-1"
I0119 12:20:48.548893 1 duplicates.go:94] "Processing node" node="control-plane-0"
I0119 12:20:48.567381 1 duplicates.go:94] "Processing node" node="control-plane-1"
I0119 12:20:48.589618 1 duplicates.go:94] "Processing node" node="control-plane-2"
I0119 12:20:48.659071 1 topologyspreadconstraint.go:109] "Processing namespaces for topology spread constraints"
I0119 12:20:48.668271 1 topologyspreadconstraint.go:183] "Skipping topology constraint because it is already balanced" constraint={MaxSkew:1 TopologyKey:knarra-zone WhenUnsatisfiable:DoNotSchedule LabelSelector:&LabelSelector{MatchLabels:map[string]string{foo: bar,},MatchExpressions:[]LabelSelectorRequirement{},}}
I0119 12:21:48.902531 1 node.go:46] "Node lister returned empty list, now fetch directly"
I0119 12:21:48.958797 1 topologyspreadconstraint.go:109] "Processing namespaces for topology spread constraints"
I0119 12:21:48.968011 1 topologyspreadconstraint.go:183] "Skipping topology constraint because it is already balanced" constraint={MaxSkew:1 TopologyKey:knarra-zone WhenUnsatisfiable:DoNotSchedule LabelSelector:&LabelSelector{MatchLabels:map[string]string{foo: bar,},MatchExpressions:[]LabelSelectorRequirement{},}}
I0119 12:21:48.980690 1 duplicates.go:94] "Processing node" node="compute-0"
I0119 12:21:49.007296 1 duplicates.go:94] "Processing node" node="compute-1"
I0119 12:21:49.030910 1 duplicates.go:94] "Processing node" node="control-plane-0"
I0119 12:21:49.083342 1 duplicates.go:94] "Processing node" node="control-plane-1"
I0119 12:21:49.129958 1 duplicates.go:94] "Processing node" node="control-plane-2"
Based on the above moving bug to verified state.
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633 |