Bug 2132043 - After removing autoscalers pod events still show "pod didn't trigger scale-up"
Summary: After removing autoscalers pod events still show "pod didn't trigger scale-up"
Keywords:
Status: NEW
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 4.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-04 13:48 UTC by Luca
Modified: 2022-10-04 13:49 UTC (History)
0 users

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
scale up event without description of error (75.12 KB, image/png)
2022-10-04 13:48 UTC, Luca
no flags Details
correct scale up event behaviour (102.23 KB, image/png)
2022-10-04 13:49 UTC, Luca
no flags Details

Description Luca 2022-10-04 13:48:56 UTC
Created attachment 1915981 [details]
scale up event without description of error

Description of problem:
In an OSD cluster running OCP v. 4.10.33, after having removed all MachineAutoscalers (by deleting all machine pools with autoscaling enabled), trying to schedule a pod for which there's not enough resources available on the cluster will still trigger a "pod didn't trigger scale-up" event.
This event does not have a reason for why the scale up was possible, like it usually would have.


Version-Release number of selected component (if applicable):
OCP v. 4.10.33


How reproducible:
Always


Steps to Reproduce:
1.Try to schedule a pod that requests too many resources, confirm that you *don't* see "pod didn't trigger scale-up" in the events
1. Create MachineAutoscaler / Machine Pool with autoscaling enabled in OCP cluster
2. Try to schedule a pod that requests too many resources, confirm that you see "pod didn't trigger scale-up" in the events
3. Remove MachineAutoscaler/machine pool from cluster
4. Try to schedule a pod that requests too many resources, confirm that you *still* see "pod didn't trigger scale-up" in the events, although without any explicit error

Actual results:
scale up event is always shown after having had an autoscaling machine pool defined in the cluster, even after the pool is removed


Expected results:
Scale up event should not be shown since there are no MachineAutoscalers in the cluster. The even is misleading.


Additional info:

Comment 1 Luca 2022-10-04 13:49:44 UTC
Created attachment 1915982 [details]
correct scale up event behaviour


Note You need to log in before you can comment on or make changes to this bug.