-
Notifications
You must be signed in to change notification settings - Fork 159
Eval symlinks for disable device call #1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Change-Id: I700c53d8620dd924de75921b4dee04963c3fcc4b
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattcary The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold I'll check the logs in the presubmit e2e run to see if this actually fixed it. |
No disable device errors found in the cluster logs from the k8s-integration test. |
if devFsPath, err := filepath.EvalSymlinks(devicePath); err != nil { | ||
klog.Errorf("filepath.EvalSymlinks(%q) failed when trying to disable device: %w (ignored, unstaging continues)", devicePath, err) | ||
} else if err := ns.DeviceUtils.DisableDevice(devFsPath); err != nil { | ||
klog.Errorf("Failed to disabled device %s for volume %s. Device may not be detached cleanly (error is ignored and unstaging is continuing): %w", devicePath, volumeID, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also print the devFsPath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
For some reason I can't push changes to this PR, so this is moved to #1235 |
/kind bug
Fixes #1146
/cc @saikat-royc