From: Patrick Donnelly Date: Mon, 21 Jul 2025 13:42:36 +0000 (-0400) Subject: task/internal/syslog: gzip journal along with everything else X-Git-Tag: 1.2.2~8^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7b9d3ba09d758819d145f72fbae65b7b43d3cc5;p=teuthology.git task/internal/syslog: gzip journal along with everything else Signed-off-by: Patrick Donnelly --- diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py index 955e933f8..39c1c251a 100644 --- a/teuthology/task/internal/syslog.py +++ b/teuthology/task/internal/syslog.py @@ -159,6 +159,18 @@ def syslog(ctx, config): ctx.summary['failure_reason'] = \ "'{error}' in syslog".format(error=stdout) + log.info('Gathering journactl...') + run.wait( + cluster.run( + args=[ + 'sudo', 'journalctl', + run.Raw('>'), + f'{archive_dir}/syslog/journalctl.log', + ], + wait=False, + ) + ) + log.info('Compressing syslogs...') run.wait( cluster.run( @@ -181,16 +193,3 @@ def syslog(ctx, config): ) ) - log.info('Gathering journactl ...') - run.wait( - cluster.run( - args=[ - 'sudo', 'journalctl', - run.Raw('|'), - 'gzip', '-9', - run.Raw('>'), - f'{archive_dir}/syslog/journalctl-b0.gz', - ], - wait=False, - ) - )