]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
tasks/internal/syslog: gather journalctl -b0 gather-journalctl-b0 1694/head
authorSage Weil <sage@newdream.net>
Thu, 11 Nov 2021 17:28:22 +0000 (11:28 -0600)
committerSage Weil <sage@newdream.net>
Thu, 11 Nov 2021 23:05:40 +0000 (17:05 -0600)
Signed-off-by: Sage Weil <sage@newdream.net>
teuthology/task/internal/syslog.py

index ae6a5324cafa3c558a39209bd1cab7963560b88d..9d0192f3074aab304470b175ca96967c14ff05c2 100644 (file)
@@ -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,
+            )
         )