From 82369d7778e30b2f44eb40e315e898e1ad122aaf Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Tue, 10 Aug 2021 03:04:51 -0400 Subject: [PATCH] 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 (cherry picked from commit 087d7aa8ca4de05cf5162be54996aec90724a540) --- qa/tasks/cephfs_mirror.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/cephfs_mirror.py b/qa/tasks/cephfs_mirror.py index 42c01aaea0342..9602a5a7f9711 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, -- 2.39.5