From: Sage Weil Date: Fri, 14 May 2021 15:31:25 +0000 (-0500) Subject: task/internal/syslog: ignore misc.log X-Git-Tag: 1.2.0~257^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1647%2Fhead;p=teuthology.git task/internal/syslog: ignore misc.log These regexes are all intended for kernel errors. Ceph daemon logs may leak into misc.log (*shakes fist at systemd-journald*) and cause false positives (i.e., test failures). Signed-off-by: Sage Weil --- diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py index b073c9f78..ae6a5324c 100644 --- a/teuthology/task/internal/syslog.py +++ b/teuthology/task/internal/syslog.py @@ -99,7 +99,7 @@ def syslog(ctx, config): [ 'egrep', '--binary-files=text', '\\bBUG\\b|\\bINFO\\b|\\bDEADLOCK\\b', - run.Raw('{adir}/syslog/*.log'.format(adir=archive_dir)), + run.Raw(f'{archive_dir}/syslog/kern.log'), run.Raw('|'), 'grep', '-v', 'task .* blocked for more than .* seconds', run.Raw('|'),