-
Notifications
You must be signed in to change notification settings - Fork 26
Driver restart mount fix #518
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
…, and additional changes to remove /noderoot mounts in unPublishVolume and unmountPrivVolume.
…o outline to scenario.
Merging this branch will not change overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
| for _, t := range tgtMnt { | ||
| log.WithFields(f).Debugf("Unmounting %s", t) | ||
| if err := gofsutil.Unmount(ctx, t); err != nil { | ||
| return lastUnmounted, status.Errorf(codes.Internal, | ||
| "Error unmounting target: %s", err.Error()) | ||
| } |
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.
Is this the correct behavior when an error is encountered. If there are other mounts that need to be unmounted then what will the state of the node be?
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.
In this change we're looking for /noderoot prefixed mounts, not errors, so only these additional mounts are unmounted. So far on driver restart we've seen dupMounts with "/noderoot" prefix as on line 473.
Description
Adjust the driver node behaviour to remove extra mount points that materialize on a driver restart.
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
op e2e ran, results tracked internally