mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Checking GlusterFS error output https://github.com/kubernetes/kubernetes/issues/50463
This commit is contained in:
@@ -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`.
|
||||||
|
Reference in New Issue
Block a user