]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/internal/syslog: ignore misc.log 1647/head
authorSage Weil <sage@newdream.net>
Fri, 14 May 2021 15:31:25 +0000 (10:31 -0500)
committerSage Weil <sage@newdream.net>
Sun, 16 May 2021 20:29:00 +0000 (15:29 -0500)
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 <sage@newdream.net>
teuthology/task/internal/syslog.py

index b073c9f78c6ba6efe2f3bf49b87f5c2dd51626a0..ae6a5324cafa3c558a39209bd1cab7963560b88d 100644 (file)
@@ -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('|'),