From: Sage Weil Date: Thu, 11 Nov 2021 17:28:22 +0000 (-0600) Subject: tasks/internal/syslog: gather journalctl -b0 X-Git-Tag: 1.2.0~223^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1694%2Fhead;p=teuthology.git tasks/internal/syslog: gather journalctl -b0 Signed-off-by: Sage Weil --- diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py index ae6a5324..9d0192f3 100644 --- a/teuthology/task/internal/syslog.py +++ b/teuthology/task/internal/syslog.py @@ -169,5 +169,19 @@ def syslog(ctx, config): '--', ], wait=False, - ), + ) + ) + + log.info('Gathering journactl -b0...') + run.wait( + ctx.cluster.run( + args=[ + 'sudo', 'journalctl', '-b0', + run.Raw('|'), + 'gzip', '-9', + run.Raw('>'), + f'{archive_dir}/syslog/journalctl-b0.gz', + ], + wait=False, + ) )