-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
glusterfs: retry without auto_unmount only when it's not supported #48709
glusterfs: retry without auto_unmount only when it's not supported #48709
Conversation
GlusterFS volume plugin should not blindly retry all failed mounts without auto_unmount, it should retry them only when we are sure that auto_unmount was the reason the first attempt failed.
@jsafrane: GitHub didn't allow me to assign the following users: humblec. Note that only kubernetes members can be assigned. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
pkg/volume/glusterfs/glusterfs.go
Outdated
// Give a try without `auto_unmount` mount option, because | ||
// it could be that gluster fuse client is older version and | ||
// mount.glusterfs is unaware of `auto_unmount`. | ||
autoMountOptions := make([]string, len(mountOptions)) |
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.
The variable name is kind of misleading. Would something like optionsWithoutAutoMount
make more sense?
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.
renamed to noAutoMountOptions
f8f9407
to
c20b4f7
Compare
@jsafrane Thanks!! LGTM. |
/lgtm |
/approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane, msau42 Associated issue requirement bypassed by: jsafrane The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test pull-kubernetes-e2e-kops-aws |
1 similar comment
/test pull-kubernetes-e2e-kops-aws |
Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757) |
@jsafrane Can we cherry pick this patch to 1.7.1 ? |
cherrypick approved. |
Commit found in the "release-1.7" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Automatic merge from submit-queue Gluster timeout patches There are several upstream patches that shorten gluster timeout when remote gluster servers are unavailable. User gets an error about failed mount in 2 minutes instead of 2 minutes * 2 * nr. of gluster endpoints. kubernetes/kubernetes#42038 kubernetes/kubernetes#49127 kubernetes/kubernetes#48709 kubernetes/kubernetes#49475 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1473587
Hi: Please, could you confirm that this was fixed in 1.7.4 too? I have same errors in 1.7.4, glusterfs mount with auto_unmount always!!!!
|
GlusterFS volume plugin should not blindly retry all failed mounts without
auto_unmount, it should retry them only when we are sure that auto_unmount
was the reason the first attempt failed.
@kubernetes/sig-storage-pr-reviews
/assign @humblec