From 83aaa75991a36723bcea7d00784974eea945dcd4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 21 Jun 2017 14:02:05 -0400 Subject: [PATCH] qa/tasks/ceph: stop logging health on shutdown Don't log health during actual teardown or we'll see various scary messages unrelated to our test run. Signed-off-by: Sage Weil --- qa/tasks/ceph.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 69ccbde5aa3..44e1d0415b8 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -1621,3 +1621,20 @@ def task(ctx, config): finally: if config.get('wait-for-scrub', True): osd_scrub_pgs(ctx, config) + + # stop logging health to clog during shutdown, or else we generate + # a bunch of scary messages unrelated to our actual run. + firstmon = teuthology.get_first_mon(ctx, config, config['cluster']) + (mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys() + mon0_remote.run( + args=[ + 'sudo', + 'ceph', + '--cluster', config['cluster'], + 'tell', + 'mon.*', + 'injectargs', + '--', + '--no-mon-health-to-clog', + ] + ) -- 2.39.5