From c93fe1f1c6dbcbf7fbe81ec5f63608654ac207ec Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 4 Aug 2015 13:08:04 -0400 Subject: [PATCH] tasks/ceph_manager: be silent about sending SIGHUPs At the default interval this generates tons of log noise. Signed-off-by: Sage Weil --- tasks/ceph_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index 6e1774335e860..2f86146eaef26 100644 --- a/tasks/ceph_manager.py +++ b/tasks/ceph_manager.py @@ -660,7 +660,7 @@ class Thrasher: self.log("starting do_sighup with a delay of {0}".format(delay)) while not self.stopping: osd = random.choice(self.live_osds) - self.ceph_manager.signal_osd(osd, signal.SIGHUP) + self.ceph_manager.signal_osd(osd, signal.SIGHUP, silent=True) time.sleep(delay) @log_exc @@ -1769,19 +1769,19 @@ class CephManager: """ self.raw_cluster_cmd('osd', 'in', str(osd)) - def signal_osd(self, osd, sig): + def signal_osd(self, osd, sig, silent=False): """ Wrapper to local get_daemon call which sends the given signal to the given osd. """ - self.ctx.daemons.get_daemon('osd', osd).signal(sig) + self.ctx.daemons.get_daemon('osd', osd).signal(sig, silent=silent) ## monitors - def signal_mon(self, mon, sig): + def signal_mon(self, mon, sig, silent=False): """ Wrapper to local get_deamon call """ - self.ctx.daemons.get_daemon('mon', mon).signal(sig) + self.ctx.daemons.get_daemon('mon', mon).signal(sig, silent=silent) def kill_mon(self, mon): """ -- 2.39.5