mirror of https://github.com/k3s-io/k3s
Checking GlusterFS error output https://github.com/kubernetes/kubernetes/issues/50463
parent
108ee22096
commit
a2aa36210f
|
@ -346,8 +346,8 @@ func (b *glusterfsMounter) setUpAtInternal(dir string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const invalidOption = "Invalid option auto_unmount"
|
if dstrings.Contains(errs.Error(), "Invalid option auto_unmount") ||
|
||||||
if dstrings.Contains(errs.Error(), invalidOption) {
|
dstrings.Contains(errs.Error(), "Invalid argument") {
|
||||||
// Give a try without `auto_unmount` mount option, because
|
// Give a try without `auto_unmount` mount option, because
|
||||||
// it could be that gluster fuse client is older version and
|
// it could be that gluster fuse client is older version and
|
||||||
// mount.glusterfs is unaware of `auto_unmount`.
|
// mount.glusterfs is unaware of `auto_unmount`.
|
||||||
|
|
Loading…
Reference in New Issue