From: Venky Shankar Date: Tue, 10 Aug 2021 07:04:51 +0000 (-0400) Subject: tasks/cephfs_mirror: optionally run in foreground X-Git-Tag: v17.1.0~468^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=087d7aa8ca4de05cf5162be54996aec90724a540;p=ceph.git tasks/cephfs_mirror: optionally run in foreground cephfs mirror damon thrasher needs to send SIGTERM to mirror daemons. The mirror daemon needs to run in foreground for it to receive signal via `daemon.signal`. Signed-off-by: Venky Shankar --- diff --git a/qa/tasks/cephfs_mirror.py b/qa/tasks/cephfs_mirror.py index 42c01aaea034..9602a5a7f971 100644 --- a/qa/tasks/cephfs_mirror.py +++ b/qa/tasks/cephfs_mirror.py @@ -54,6 +54,8 @@ class CephFSMirror(Task): '--id', self.client_id, ]) + if 'run_in_foreground' in self.config: + args.extend(['--foreground']) self.ctx.daemons.add_daemon( self.remote, 'cephfs-mirror', self.client,