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

Error while scaling agent nodes

Open ghost opened this issue 8 years ago • 6 comments

Is this a request for help?: No

Is this an ISSUE or FEATURE REQUEST? (choose one): Issue

What version of acs-engine?: v0.14.5

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.9.5

What happened: There seems to be an issue with scaling the node.

After running the following command to scale the availability set:

acs-engine scale --subscription-id xxxx  --location australiasoutheast --resource-group test-cluster --node-pool dbpool1 --new-node-count 2 --deployment-dir ./_output/test-cluster/  --auth-method client_secret --client-id xxxx --client-secret xxxx --master-FQDN xxxx.australiasoutheast.cloudapp.azure.com

Error Received:

INFO[0000] validating...
INFO[0004] Name suffix: 22165019
ERRO[0007] Failed to drain node k8s-dbpool1-22165019-2, got error No Auth Provider found for name "azure"
ERRO[0007] Got error Node 'k8s-dbpool1-22165019-2' failed to drain with error: 'No Auth Provider found for name "azure"', while draining the nodes to be deleted
Error: Node 'k8s-dbpool1-22165019-2' failed to drain with error: 'No Auth Provider found for name "azure"'

What you expected to happen: Agent pool should scale accordingly.

How to reproduce it (as minimally and precisely as possible):

  1. Install Kubernetes via ACS-Engine
  2. Ensure to enable AAD integration
  3. Run command to scale agent nodes

Anything else we need to know: This cluster has AAD integration turned on, with managed disks and calico CNI is used.

Thanks in advance.

ghost avatar Jan 11 '18 00:01 ghost

I have this same issue, but only when scaling down.

alexquintero avatar Feb 23 '18 18:02 alexquintero

I can correlate with @alexquintero . It only happens while scaling down the cluster.

INFO[0028] Name suffix: xxxxx
ERRO[0028] Failed to drain node k8s-agentpool1-xxxxx-4, got error No Auth Provider found for name "azure"
ERRO[0028] Got error Node "k8s-agentpool1-xxxxx-4" failed to drain with error: No Auth Provider found for name "azure", while draining the nodes to be deleted
Error: Node "k8s-agentpool1-xxxxx-4" failed to drain with error: No Auth Provider found for name "azure"

FATA[0028] Node "k8s-agentpool1-xxxxx-4" failed to drain with error: No Auth Provider found for name "azure"

ghost avatar Mar 29 '18 02:03 ghost

I have this same issue, but only when scaling down.

anujshankar avatar Mar 29 '18 17:03 anujshankar

I have this issue as well with 0.17.1. Is there any update? Thanks!

raycrawford avatar May 25 '18 18:05 raycrawford

For scaling dow after a scale up this workaround worked for me:

The main issue was that after acs-engine scale failed to scale, and when I manually ran kubectl delete node XXXX acs-engine was still seeing my VM because it was not deleted from Azure and acs-engine it basically looking at the output from az vm list --resource-group MyResourceGroup which still showed 3 agentpool VM's.

This worked for me to scale back to 2 agentpool nodes after my scale up to 3:

  1. kubectl drain agentpool0-xxxxxx-2 --ignore-daemonsets
  2. kubectl delete node agentpool0-xxxxxx-2
  3. Edited the apimodel.json file in the _output folder and set the current pool size back to 2
  4. In Azure Portal, delete VM and NIC associated with the VM.
  5. acs-engine scale ...

Hope that helps.

stephenlawrence avatar Jun 27 '18 15:06 stephenlawrence

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 10:03 stale[bot]