]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs_mirror: optionally run in foreground
authorVenky Shankar <vshankar@redhat.com>
Tue, 10 Aug 2021 07:04:51 +0000 (03:04 -0400)
committerVenky Shankar <vshankar@redhat.com>
Mon, 15 Nov 2021 13:03:36 +0000 (18:33 +0530)
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 <vshankar@redhat.com>
(cherry picked from commit 087d7aa8ca4de05cf5162be54996aec90724a540)

qa/tasks/cephfs_mirror.py

index 42c01aaea0342e92d8d2020b5470c2ac89bf64e9..9602a5a7f9711ea93a1dac9030668c9419743512 100644 (file)
@@ -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,