From: Jos Collin Date: Tue, 24 Sep 2019 17:50:19 +0000 (+0530) Subject: qa/tasks: check if fs mounted in umount_wait X-Git-Tag: v15.1.0~821^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=319acf981ed6e4621b390f805eb32aa40b50fcd7;p=ceph-ci.git qa/tasks: check if fs mounted in umount_wait Fixes: https://tracker.ceph.com/issues/42020 Signed-off-by: Jos Collin --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index bbd56b3c57c..5091563efbb 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -305,6 +305,12 @@ class FuseMount(CephFSMount): """ :param force: Complete cleanly even if the MDS is offline """ + if not (self.is_mounted() and self.fuse_daemon): + log.debug('ceph-fuse client.{id} is not mounted at {remote} {mnt}'.format(id=self.client_id, + remote=self.client_remote, + mnt=self.mountpoint)) + return + if force: assert not require_clean # mutually exclusive @@ -320,9 +326,8 @@ class FuseMount(CephFSMount): self.umount() try: - if self.fuse_daemon: - # Permit a timeout, so that we do not block forever - run.wait([self.fuse_daemon], timeout) + # Permit a timeout, so that we do not block forever + run.wait([self.fuse_daemon], timeout) except MaxWhileTries: log.error("process failed to terminate after unmount. This probably" " indicates a bug within ceph-fuse.")