mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
fix: get azure disk lun timeout issue
This commit is contained in:
parent
208df3828d
commit
6068ce96b1
@ -173,8 +173,12 @@ func (a *azureDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath string,
|
|||||||
return true, nil
|
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
|
return newDevicePath, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user