mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-08 14:23:30 +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 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user