From: Rishabh Dave Date: Tue, 9 Jul 2019 13:22:38 +0000 (+0530) Subject: qa/cephfs: memoize FUSE client pid X-Git-Tag: v15.1.0~2134^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=54c3bb55312a06e9e230f806b8269b089ca81121;p=ceph-ci.git qa/cephfs: memoize FUSE client pid Save client PID so that we avoid calling get_client_pid() every now and then. This, more importantly, allows sending SIGCONT to client which is already stopped using SIGKILL. Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 0c0c84b7537..bbd56b3c57c 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -166,6 +166,7 @@ class FuseMount(CephFSMount): def gather_mount_info(self): status = self.admin_socket(['status']) self.id = status['id'] + self.client_pid = status['metadata']['pid'] try: self.inst = status['inst_str'] self.addr = status['addr_str']