From: Rishabh Dave Date: Fri, 13 Apr 2018 06:11:30 +0000 (+0000) Subject: qa/tasks: allow custom timeout for umount_wait() X-Git-Tag: v13.1.0~12^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=18a9d0c49175c9aacfaec15d28125c8fb2a77b51;p=ceph.git qa/tasks: allow custom timeout for umount_wait() Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index a4b2d048f176..850369860981 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -261,7 +261,7 @@ class FuseMount(CephFSMount): assert not self.is_mounted() self._fuse_conn = None - def umount_wait(self, force=False, require_clean=False): + def umount_wait(self, force=False, require_clean=False, timeout=900): """ :param force: Complete cleanly even if the MDS is offline """ @@ -282,7 +282,7 @@ class FuseMount(CephFSMount): try: if self.fuse_daemon: # Permit a timeout, so that we do not block forever - run.wait([self.fuse_daemon], 900) + run.wait([self.fuse_daemon], timeout) except MaxWhileTries: log.error("process failed to terminate after unmount. This probably" " indicates a bug within ceph-fuse.")