azure disk dangling attach issue on VMSS which would cause API throttling #90762
Labels
area/provider/azure
Issues or PRs related to azure provider
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
sig/cloud-provider
Categorizes an issue or PR as relevant to SIG Cloud Provider.
What happened:
PR(#81266) does not convert the VMSS node name which causes error like this:
This is not a frequently happen issue since dangling error only happens when the previous detach disk failed, the disk was still attached to the node while no pod on that node is using that disk.
The disk detach failed could be due to 1) VM busy 2) kube-controller-manager restart, etc.
Original VMSS nodeName value
disk.ManagedBy
value:/subscriptions/0e46bd28-a80f-4d3a-8200-d9eb8d80cb2e/resourceGroups/kubetest-b28d2392-498e-11ea-af8c-fab712ce9f74/providers/Microsoft.Compute/virtualMachineScaleSets/k8s-agentpool-36841236-vmss/virtualMachines/k8s-agentpool-36841236-vmss_1
correct
nodeName
value:k8s-agentpool-36841236-vmss000001
That will make dangling attach return error, and k8s volume attach/detach controller will getVmssInstance, and since the nodeName is in an incorrect format, it will always clean vmss cache if node not found, thus incur a get vmss API call storm.
kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_vmss.go
Lines 172 to 174 in 3365ed5
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):/kind bug
/assign
/priority important-soon
/sig cloud-provider
/area provider/azure
The text was updated successfully, but these errors were encountered: