From: Rishabh Dave Date: Wed, 16 Jan 2019 11:53:23 +0000 (+0530) Subject: qa/tests: add a method to signal a MDS client X-Git-Tag: v14.2.5~215^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=20f84f252799a7f6687cdb3054d7f9bdeb34813d;p=ceph.git qa/tests: add a method to signal a MDS client Signed-off-by: Rishabh Dave (cherry picked from commit 855a561d9d7773fef3274b4fb9152e06449d13e4) --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index 4bbad25426f7..8d07323d859e 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -502,6 +502,14 @@ class CephFSMount(object): self._kill_background(p) self.background_procs.remove(p) + def send_signal(self, signal): + signal = signal.lower() + if signal.lower() not in ['sigstop', 'sigcont', 'sigterm', 'sigkill']: + raise NotImplementedError + + self.client_remote.run(args=['sudo', 'kill', '-{0}'.format(signal), + self.client_pid], omit_sudo=False) + def get_global_id(self): raise NotImplementedError()