From: Sage Weil Date: Wed, 21 Jun 2017 18:02:05 +0000 (-0400) Subject: qa/tasks/ceph: stop logging health on shutdown X-Git-Tag: v12.1.1~58^2~33 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83aaa75991a36723bcea7d00784974eea945dcd4;p=ceph.git 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 --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 69ccbde5aa34..44e1d0415b89 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', + ] + )