]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
syslog.py: whitelist innocent tcmu-runner log message
authorNathan Cutler <ncutler@suse.com>
Wed, 27 Mar 2019 10:58:29 +0000 (11:58 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Fri, 26 Apr 2019 07:14:42 +0000 (09:14 +0200)
When running the new iSCSI smoke test, tcmu-runner emits a syslog
message that was not whitelisted:

2019-03-27T10:00:17.292154+00:00 target192168000056 tcmu-runner[37366]: 2019-03-27 10:00:17.291 37366 [INFO] load_our_module:537: Inserted module 'target_core_user'

Since the message is at severity level INFO, it was causing teuthology
to raise a red flag.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/task/internal/syslog.py

index c89864df8a53f0fc45c54d6d802658347673f2e0..bf722b819347137e48dedee3a87e83711786792d 100644 (file)
@@ -138,6 +138,8 @@ def syslog(ctx, config):
                     run.Raw('|'),
                     'grep', '-v', 'ceph-crash',
                     run.Raw('|'),
+                    'egrep', '-v', '\\btcmu-runner\\b.*\\bINFO\\b',
+                    run.Raw('|'),
                     'head', '-n', '1',
                 ],
                 stdout=StringIO(),