From 9fd1586e91d58c05751e0a144c543d9077d365d0 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 20 Sep 2019 11:06:47 +0530 Subject: [PATCH] qa/cephfs: don't crash if mountpoint dir is already deleted Teuthology jobs crash due to this after the test and it's teardown has run successfully. Signed-off-by: Rishabh Dave (cherry picked from commit af2a8eb24b0dfd3aadfb2f60e5200d6fe4377327) --- qa/tasks/cephfs/fuse_mount.py | 3 ++- qa/tasks/cephfs/kernel_mount.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 4cb685d0c43f..5d69eb723fc5 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -349,7 +349,8 @@ class FuseMount(CephFSMount): ], cwd=self.test_dir, stderr=stderr, - timeout=(60*5) + timeout=(60*5), + check_status=False, ) except CommandFailedError: if "No such file or directory" in stderr.getvalue(): diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index 81951e3760f6..e749c06119c0 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -183,6 +183,7 @@ class KernelMount(CephFSMount): self.mountpoint, ], timeout=(5*60), + check_status=False, ) def _find_debug_dir(self): -- 2.47.3