]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: add FUSE module before running mount -t fusectl 35399/head
authorRishabh Dave <ridave@redhat.com>
Tue, 28 Apr 2020 10:19:19 +0000 (15:49 +0530)
committerNathan Cutler <ncutler@suse.com>
Thu, 4 Jun 2020 13:56:47 +0000 (15:56 +0200)
Also, change timeout from 15 minutes to 30 seconds for the command
"mount -t fusectl xxx xxx" since 15 minutes is too much as per Zheng.

Fixes: https://tracker.ceph.com/issues/45304
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 2d7c32997b9e5db5a13f5ed6e117ac9f71dac370)

qa/tasks/cephfs/fuse_mount.py

index 68fc387d7aa56087ddb46528d5e73f8adde9f56c..64a797ae2e99238a11a79ea4045fca327932bd0e 100644 (file)
@@ -94,13 +94,18 @@ class FuseMount(CephFSMount):
         run_cmd.extend(fuse_cmd)
 
         def list_connections():
+            from teuthology.misc import get_system_type
+
+            conn_dir = "/sys/fs/fuse/connections"
+
+            self.client_remote.run(args=['sudo', 'modprobe', 'fuse'],
+                                   check_status=False)
             self.client_remote.run(
-                args=["sudo", "mount", "-t", "fusectl", "/sys/fs/fuse/connections", "/sys/fs/fuse/connections"],
-                check_status=False,
-                timeout=(15*60)
-            )
+                args=["sudo", "mount", "-t", "fusectl", conn_dir, conn_dir],
+                check_status=False, timeout=(30))
+
             try:
-                ls_str = self.client_remote.sh("ls /sys/fs/fuse/connections",
+                ls_str = self.client_remote.sh("ls " + conn_dir,
                                                stdout=StringIO(),
                                                timeout=(15*60)).strip()
             except CommandFailedError: