]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: mount fusectl before listing fuse connections
authorYan, Zheng <zyan@redhat.com>
Tue, 26 May 2015 02:59:47 +0000 (10:59 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 26 May 2015 14:18:57 +0000 (22:18 +0800)
Fixes: #11756
Signed-off-by: Yan, Zheng <zyan@redhat.com>
tasks/cephfs/fuse_mount.py

index a655fa607dc3fe1e3767c20fb42879c9a83f4668..5517f5f8474cd0dca3bf8546a6c3c0a8eca6faa2 100644 (file)
@@ -68,10 +68,17 @@ class FuseMount(CephFSMount):
         run_cmd.extend(run_cmd_tail)
 
         def list_connections():
+            self.client_remote.run(
+                args=["sudo", "mount", "-t", "fusectl", "/sys/fs/fuse/connections", "/sys/fs/fuse/connections"],
+                check_status=False
+            )
             p = self.client_remote.run(
                 args=["ls", "/sys/fs/fuse/connections"],
-                stdout=StringIO()
+                stdout=StringIO(),
+                check_status=False
             )
+            if p.exitstatus != 0:
+                return []
 
             ls_str = p.stdout.getvalue().strip()
             if ls_str: