]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/internal/syslog: gzip journal along with everything else
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 21 Jul 2025 13:42:36 +0000 (09:42 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 21 Jul 2025 19:42:55 +0000 (15:42 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/task/internal/syslog.py

index 955e933f8cedb24c6bc99dbbe39541290968d8c1..39c1c251ae06e06451456e6d1d17d79a23737f5e 100644 (file)
@@ -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,
-            )
-        )