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

Bug 1989722

Summary: Descheduler operator should allow eviction based on soft topology constraints
Product: OpenShift Container Platform Reporter: Mike Dame <mdame>
Component: kube-schedulerAssignee: Mike Dame <mdame>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: aos-bugs, knarra, mfojtik
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Descheduler now allows pods with soft topology constraints to be evicted by the SoftTopologyAndDuplicates profile
Story Points: ---
Clone Of: 1989720 Environment:
Last Closed: 2021-10-18 17:44:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Dame 2021-08-03 19:38:20 UTC
The Descheduler operator should provide users with the ability to evict pods using soft (`ScheduleAnyway`) topology spread constraints. This is possible upstream, but needs to be exposed as an option (or additional profile) in the operator

Comment 2 RamaKasturi 2021-08-09 16:06:24 UTC
currently blocked on this due to bug https://bugzilla.redhat.com/show_bug.cgi?id=1990603

Comment 3 RamaKasturi 2021-08-14 16:39:23 UTC
Hello Mike,

   I have a question related to SoftTopologyAndDuplicates / TopologyAndDuplicates. I have performed below tests.

First Test:
=========================
1) Enabled SoftTopologyAndDuplicates
2) created  pods according to test [1], WhenUnsatisfiable set to "ScheduleAnyway"
3) I see that pods got evicted due to PodTopologySpread

Second Test:
======================
1) Enabled SoftTopologyAndDuplicates
2) created pods according to test [2] , WhenUnsatisfiable set to "DoNotSchedule"
3) I see that pods got evicted in a similar fashion.

I expected SecondTest not to evict any pods as the profile set here is "SoftTopologyAndDuplicates", could you please help confirm why the pods got evicted even though the profile set was "SoftTopologyAndDuplicates" ? 

[1] https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-43283
[2] https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-40055

Thanks
kasturi

Comment 4 Mike Dame 2021-08-16 14:28:43 UTC
@Rama The SoftTopologyAndDuplicates profile will evict both ScheduleAnyway AND DoNotSchedule pods, so this is working as expected.

Comment 5 RamaKasturi 2021-08-23 09:26:56 UTC
Thanks Mike, Moving the bug to verified state based on comment 3 & comment 4.

Comment 8 errata-xmlrpc 2021-10-18 17:44:27 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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-2021:3759