cloud-provider-azure
cloud-provider-azure copied to clipboard
slow disk attach relating to SetDiskLun failures
What happened:
azure disk attach is slow because of lun mapping issues
What you expected to happen:
disks to attach faster
How to reproduce it (as minimally and precisely as possible):
Right now I've seen this behavior reproduce after the cloud provider is throttled by Azure. When we retry to AttachDisk after the retry time is up we fail to SetDiskLun. I've seen this add 10minutes to an attach time after throttling delays.
I believe this can happen in any scenario where the AttachDisk func doesn't successfully apply/update the vmss model on the azure side (throttling is one of those scenarios).
Anything else we need to know?:
From the audit log of the cluster. We get a throttling failure. Followed by an issue setting the lun. Then we don't actually attach until ~10min later.
"attachError": {
"message": "rpc error: code = Unknown desc = Attach volume /subscriptions/.... to instance aks-agentpool-... failed with Retriable: true, RetryAfter: 121s, HTTPStatusCode: 0, RawError: azure cloud provider throttled for operation VMSSVMUpdateAsync with reason \"client throttled\"",
"time": "2022-05-13T17:23:16Z"
}
{
"attachError": {
"message": "rpc error: code = Unknown desc = Attach volume /subscriptions/... to instance aks-agentpool-... failed with could not find disk(/subscriptions/...) in current disk list(len: 14) nor in diskMap(map[])",
"time": "2022-05-13T17:24:12Z"
}
}
"time": "2022-05-13T17:34:06Z",
"status": {
"attached": true,
"attachmentMetadata": {
"LUN": "23"
}
From the Azure Activity logs I can see that the PUT with the disk didn't come in until 17:34. So it's not a delay on the azure side.
Environment:
- Kubernetes version (use
kubectl version): 1.22.6 - Cloud provider or hardware configuration: azure
- Others: disk.csi.azure.com/v1.17.0
@andyzhangx can you have a look when you have time?
@chmill-zz VMSSVMUpdateAsync operation was throttled, it happens when there are disk attach/detach on a lot of agent nodes simultaneously.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Reopen this issue with
/reopen - Mark this issue as fresh with
/remove-lifecycle rotten - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
In response to this:
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied- After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied- After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closedYou can:
- Reopen this issue with
/reopen- Mark this issue as fresh with
/remove-lifecycle rotten- Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
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.