]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: log warning on scrub error 35050/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 20 Jan 2020 19:23:09 +0000 (11:23 -0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 13 May 2020 15:53:08 +0000 (17:53 +0200)
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>
(cherry picked from commit b7454e423620e829e7417cdfca1faf5cd91dec3f)

Conflicts:
qa/tasks/mon_thrash.py
- whereas master has "self.manager.raw_cluster_cmd('mon', 'scrub')" in
  the try block, in nautilus it is only "self.manager.raw_cluster_cmd('scrub')"

qa/tasks/mon_thrash.py

index 3076c936b2b42e938a0d3e333c67bd887899ed9a..9c18ee316724b7cfd81bfc54f48b2551f7dc358b 100644 (file)
@@ -299,8 +299,8 @@ class MonitorThrasher:
                 self.log('triggering scrub')
                 try:
                     self.manager.raw_cluster_cmd('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(