From bd542353f54f200dbc6025ebae21803e5b23d9d1 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Tue, 26 May 2015 10:59:47 +0800 Subject: [PATCH] tasks/cephfs: mount fusectl before listing fuse connections Fixes: #11756 Signed-off-by: Yan, Zheng --- tasks/cephfs/fuse_mount.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks/cephfs/fuse_mount.py b/tasks/cephfs/fuse_mount.py index a655fa607dc3f..5517f5f8474cd 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: -- 2.39.5