From a2aa36210f1f568bb0e97e87c1890e035116d79e Mon Sep 17 00:00:00 2001 From: Marcelo Grebois Date: Fri, 22 Sep 2017 08:31:18 +0200 Subject: [PATCH] Checking GlusterFS error output https://github.com/kubernetes/kubernetes/issues/50463 --- pkg/volume/glusterfs/glusterfs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go index d1476d8f09..e1118b3ba0 100644 --- a/pkg/volume/glusterfs/glusterfs.go +++ b/pkg/volume/glusterfs/glusterfs.go @@ -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`.