aks-engine icon indicating copy to clipboard operation
aks-engine copied to clipboard

Scale does not drain nodes when scaling down VMSS

Open amrmahdi opened this issue 8 years ago • 11 comments

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.

  1. Nodes transition to NotReady from Ready directly.
  2. No acs -engine logs to indicate nodes drainage

Anything else we need to know:

amrmahdi avatar Nov 09 '18 08:11 amrmahdi

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.

PacoGuy avatar Nov 09 '18 22:11 PacoGuy

@jackfrancis for tracking

amrmahdi avatar Nov 15 '18 19:11 amrmahdi

@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?

jackfrancis avatar Nov 15 '18 20:11 jackfrancis

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.

stale[bot] avatar Mar 09 '19 06:03 stale[bot]

@jackfrancis has this been addressed with the move to aks-engine ?

amrmahdi avatar Mar 09 '19 06:03 amrmahdi

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

welcome[bot] avatar Mar 20 '19 16:03 welcome[bot]

@palma21 for prioritization

jackfrancis avatar Mar 21 '19 19:03 jackfrancis

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.

stale[bot] avatar Jul 29 '19 21:07 stale[bot]

Not stale. Nodes are deleted but not correctly drained when scaling down VMSS.

chreichert avatar Jul 29 '19 21:07 chreichert

That should not be the case.

CC @craiglpeters

palma21 avatar Jul 30 '19 16:07 palma21

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.

stale[bot] avatar Sep 28 '19 16:09 stale[bot]