Scale does not drain nodes when scaling down VMSS
Is this a request for help?:
No
Is this an ISSUE or FEATURE REQUEST? (choose one):
Issue
What version of acs-engine?:
0.25.1
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes 1.10.8
What happened:
Using acs-engine scale to scale down a VMSS agent pool, the nodes are not drained before scaling down the VMSS. To verify the issue, I tried not supplying --master-FQDN when scaling down, and acs-engine did not complain that it is not missing.
What you expected to happen:
Acs-engine would drain the nodes first before taking the nodes down.
How to reproduce it (as minimally and precisely as possible):
Use acs-engine to scale down an agent pool without supplying --master-FQDN and monitor the nodes while this is happening.
- Nodes transition to NotReady from Ready directly.
- No acs -engine logs to indicate nodes drainage
Anything else we need to know:
Just another user here, but are you seeing the following in the cluster-autoscaler pod logs as well?
1 static_autoscaler.go:186] 1 unregistered nodes present
This seems to be causing the node deletion in my clusters with the same lack of draining that you are seeing. I've tried every permutation of acs-engine version / cluster-autoscaler and add-on cluster-autoscaler that I can think of and nothing is allowing the nodes to be "registered" despite an older cluster deployed on 10/19/2018 not showing that error.
@jackfrancis for tracking
@mboersma can you do a quick pass through the code to see if this is a regression, or just a limitation of the current vmss scale implementation?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. Note that acs-engine is deprecated--see https://github.com/Azure/aks-engine instead.
@jackfrancis has this been addressed with the move to aks-engine ?
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
@palma21 for prioritization
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale. Nodes are deleted but not correctly drained when scaling down VMSS.
That should not be the case.
CC @craiglpeters
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.