mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
fix: get azure disk lun timeout issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user