Move error reporting to volume plugins

Move reporting of GetReliableMountRefs error to the volume plugins that
have more context about severity of the error.
This commit is contained in:
Jan Safranek
2021-05-26 20:45:56 +02:00
parent a95842095e
commit f9a04f3bc4
3 changed files with 12 additions and 2 deletions

View File

@@ -754,8 +754,6 @@ func GetReliableMountRefs(mounter mount.Interface, mountPath string) ([]string,
return true, nil
})
if err == wait.ErrWaitTimeout {
klog.Errorf("Failed to read mount refs from /proc/mounts for %s: %s", mountPath, err)
klog.Errorf("Kubelet cannot unmount volume at %s, please unmount it manually", mountPath)
return nil, lastErr
}
return paths, err