]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks: allow custom timeout for umount_wait()
authorRishabh Dave <ridave@redhat.com>
Fri, 13 Apr 2018 06:11:30 +0000 (06:11 +0000)
committerRishabh Dave <ridave@redhat.com>
Mon, 30 Apr 2018 12:02:56 +0000 (12:02 +0000)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/fuse_mount.py

index a4b2d048f17609fd24bfef353464d1935dbbb23a..8503698609812f9be7a48b8e45210f397e65db6b 100644 (file)
@@ -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.")