Merge pull request #88158 from andyzhangx/get-lun-fix

fix: get azure disk lun timeout issue
This commit is contained in:
Kubernetes Prow Robot 2020-02-14 11:29:16 -08:00 committed by GitHub
commit 55ea3ac41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}