]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: memoize FUSE client pid
authorRishabh Dave <ridave@redhat.com>
Tue, 9 Jul 2019 13:22:38 +0000 (18:52 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 13 Jul 2019 07:24:15 +0000 (12:54 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/fuse_mount.py

index 0c0c84b75377e7c4a4703dae9de1b296f735faa9..bbd56b3c57c0c7446ccfe480ad44cd92f796ee82 100644 (file)
@@ -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']