mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #88158 from andyzhangx/get-lun-fix
fix: get azure disk lun timeout issue
This commit is contained in:
commit
55ea3ac41f
@ -173,8 +173,12 @@ func (a *azureDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath string,
|
||||
return true, nil
|
||||
}
|
||||
|
||||
return false, fmt.Errorf("azureDisk - WaitForAttach failed within timeout node (%s) diskId:(%s) lun:(%v)", nodeName, diskName, lun)
|
||||
// wait until timeout
|
||||
return false, nil
|
||||
})
|
||||
if err == nil && newDevicePath == "" {
|
||||
err = fmt.Errorf("azureDisk - WaitForAttach failed within timeout node (%s) diskId:(%s) lun:(%v)", nodeName, diskName, lun)
|
||||
}
|
||||
|
||||
return newDevicePath, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user