From: Yan, Zheng Date: Tue, 26 May 2015 02:59:47 +0000 (+0800) Subject: tasks/cephfs: mount fusectl before listing fuse connections X-Git-Tag: v10.2.6~165^2^2~470^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bd542353f54f200dbc6025ebae21803e5b23d9d1;p=ceph.git tasks/cephfs: mount fusectl before listing fuse connections Fixes: #11756 Signed-off-by: Yan, Zheng --- diff --git a/tasks/cephfs/fuse_mount.py b/tasks/cephfs/fuse_mount.py index a655fa607dc3..5517f5f8474c 100644 --- a/tasks/cephfs/fuse_mount.py +++ b/tasks/cephfs/fuse_mount.py @@ -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: