-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression since 1.28 with managing unregistered nodes #6524
Comments
Thanks yarinm . The change to |
Yup, that certainly looks better. Thanks @yarinm for investigating this! |
I'd also consider changing autoscaler/cluster-autoscaler/cloudprovider/cloud_provider.go Lines 245 to 246 in 6c14a3a
But honestly I have no idea how to interpret it then. |
/triage accepted |
Perhaps this can be closed as fix has landed in #6528 ? |
Closing this issue, as it is resolved by PR #6528 Thanks! |
@Shubham82: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Which component are you using?: cluster-autoscaler
What version of the component are you using?: 1.28.X and also 1.29.0
What k8s version are you using (
kubectl version
)?: 1.28.5What environment is this in?: AWS but I think this bug is possibly in Azure as well
What did you expect to happen?:
We have EKS clusters that are using self-managed node groups, we noticed since upgrading 1.28 that sometimes the autoscaler stops scaling up node groups once it detects an unregistered node that passed the provisioning allotted timeout. This sometimes happen when the node fails to register its kubelet with the api server.
When that happens we see these logs:
In version 1.27.X in this scenario, autoscaler detects this node as unregistered and eventually it removes it and tries to keep scaling up additional nodes:
To test this locally I set up an EKS with self managed node groups and just edited the startup script to do
exit 1
before running the kubelet causing the node to not register.This is a regression from 1.27 to 1.28+ and I found the culprit commit:
e5bc070
From debugging I noticed
instance.Status
is alwaysnil
(This is taken from aws_cloud_provider.go):So this check never adds unregistered nodes to the list.. So my suggestion is either we revert this commit or just change
expectedToRegister
to:@azylinski @x13n
The text was updated successfully, but these errors were encountered: