Merge pull request #52365 from grebois/patch-1
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. GlusterFS plugin fails to mount volumes in 1.7.3 branch #50463
This commit is contained in:
@@ -346,8 +346,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
const invalidOption = "Invalid option auto_unmount"
|
||||
if dstrings.Contains(errs.Error(), invalidOption) {
|
||||
if dstrings.Contains(errs.Error(), "Invalid option auto_unmount") ||
|
||||
dstrings.Contains(errs.Error(), "Invalid argument") {
|
||||
// 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`.
|
||||
|
||||
Reference in New Issue
Block a user