mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
fix: initial delay in mounting azure disk/file
This commit is contained in:
parent
c46c1c043e
commit
82b8b07a2d
@ -163,7 +163,7 @@ func (a *azureDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath string,
|
|||||||
|
|
||||||
newDevicePath := ""
|
newDevicePath := ""
|
||||||
|
|
||||||
err = wait.Poll(1*time.Second, timeout, func() (bool, error) {
|
err = wait.PollImmediate(1*time.Second, timeout, func() (bool, error) {
|
||||||
if newDevicePath, err = findDiskByLun(int(lun), io, exec); err != nil {
|
if newDevicePath, err = findDiskByLun(int(lun), io, exec); err != nil {
|
||||||
return false, fmt.Errorf("azureDisk - WaitForAttach ticker failed node (%s) disk (%s) lun(%v) err(%s)", nodeName, diskName, lun, err)
|
return false, fmt.Errorf("azureDisk - WaitForAttach ticker failed node (%s) disk (%s) lun(%v) err(%s)", nodeName, diskName, lun, err)
|
||||||
}
|
}
|
||||||
|
@ -303,7 +303,7 @@ func (b *azureFileMounter) SetUpAt(dir string, mounterArgs volume.MounterArgs) e
|
|||||||
}
|
}
|
||||||
|
|
||||||
mountComplete := false
|
mountComplete := false
|
||||||
err = wait.Poll(5*time.Second, 10*time.Minute, func() (bool, error) {
|
err = wait.PollImmediate(1*time.Second, 2*time.Minute, func() (bool, error) {
|
||||||
err := b.mounter.MountSensitive(source, dir, "cifs", mountOptions, sensitiveMountOptions)
|
err := b.mounter.MountSensitive(source, dir, "cifs", mountOptions, sensitiveMountOptions)
|
||||||
mountComplete = true
|
mountComplete = true
|
||||||
return true, err
|
return true, err
|
||||||
|
Loading…
Reference in New Issue
Block a user