Bug 2019963

Summary: Cluster autoscaler does not scale down due to not replicated pods
Product: OpenShift Container Platform Reporter: oarribas <oarribas>
Component: OLMAssignee: Kevin Rizza <krizza>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, krizza, mimccune, oarribas
Version: 4.7Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
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-11-29 18:58:19 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 oarribas 2021-11-03 17:52:54 UTC
Description of problem:

Cluster autoscaler is not able to scale down with message:
~~~
node xxxxxxxx cannot be removed: openshift-marketplace/redhat-operators-xxxx is not replicated
node xxxxxxxx cannot be removed: openshift-marketplace/community-operators-xxxx is not replicated
~~~




Version-Release number of selected component (if applicable):

OCP 4.7


How reproducible:

When the node to be deleted has one of the `openshift-marketplace` pods running



Actual results:

Cluster autoscaler is not able to scale down.


Expected results:

Cluster autoscaler should be able to scale down.



Additional info:

It's expected behavior as [1], but the `openshift-marketplace` pods needs to configure the required annotation to be able to scale down the nodes if one of the pods are placed in the node selected to be removed.




[1] https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-types-of-pods-can-prevent-ca-from-removing-a-node