]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: log warning on scrub error 32739/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 20 Jan 2020 19:23:09 +0000 (11:23 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 20 Jan 2020 19:24:09 +0000 (11:24 -0800)
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 <pdonnell@redhat.com>
qa/tasks/mon_thrash.py

index a4614d5a3491a84c2d9ea4e517ddbde173f125f3..f7e75a429f27263e31e9c92b75aaf04be31ca517 100644 (file)
@@ -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(