From 6068ce96b1f19f1a8e204ad358506cefbec32d75 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Fri, 14 Feb 2020 12:51:42 +0000 Subject: [PATCH] fix: get azure disk lun timeout issue --- pkg/volume/azure_dd/attacher.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/volume/azure_dd/attacher.go b/pkg/volume/azure_dd/attacher.go index 42296172f0d..2867e24393e 100644 --- a/pkg/volume/azure_dd/attacher.go +++ b/pkg/volume/azure_dd/attacher.go @@ -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 }