From: Patrick Donnelly Date: Mon, 20 Jan 2020 19:23:09 +0000 (-0800) Subject: qa: log warning on scrub error X-Git-Tag: v15.1.0~134^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7454e423620e829e7417cdfca1faf5cd91dec3f;p=ceph.git qa: log warning on scrub error Instead of printing the (useless) traceback, just print a warning about ignoring the failure. The traceback makes it harder to search for the real problem in the teuthology log. Fixes: https://tracker.ceph.com/issues/43718 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/mon_thrash.py b/qa/tasks/mon_thrash.py index a4614d5a3491a..f7e75a429f272 100644 --- a/qa/tasks/mon_thrash.py +++ b/qa/tasks/mon_thrash.py @@ -330,8 +330,8 @@ class MonitorThrasher(Thrasher): self.log('triggering scrub') try: self.manager.raw_cluster_cmd('mon', 'scrub') - except Exception: - log.exception("Saw exception while triggering scrub") + except Exception as e: + log.warning("Ignoring exception while triggering scrub: %s", e) if self.thrash_delay > 0.0: self.log('waiting for {delay} secs before continuing thrashing'.format(