From: Patrick Donnelly Date: Mon, 21 Jul 2025 13:39:03 +0000 (-0400) Subject: tasks/internal/syslog: gather all journald entries X-Git-Tag: 1.2.2~8^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=db7202bc68cf2318c759a02017720901be91f5cc;p=teuthology.git tasks/internal/syslog: gather all journald entries Soemtimes a machine crashes during tests and log entries around that time are not persisted because we're only looking at this boot. (This choice seem odd since the lifetime of these operating system images is the same as the teuthology run.) Now looks like: 2025-07-21T15:01:22.249 INFO:teuthology.task.internal.syslog:Gathering journactl... 2025-07-21T15:01:22.250 DEBUG:teuthology.orchestra.run.smithi045:> sudo journalctl > /home/ubuntu/cephtest/archive/syslog/journalctl.log 2025-07-21T15:01:22.254 DEBUG:teuthology.orchestra.run.smithi083:> sudo journalctl > /home/ubuntu/cephtest/archive/syslog/journalctl.log 2025-07-21T15:01:22.256 DEBUG:teuthology.orchestra.run.smithi184:> sudo journalctl > /home/ubuntu/cephtest/archive/syslog/journalctl.log From: /teuthology/pdonnell-2025-07-21_14:01:58-fs-main-distro-default-smithi/8399938/teuthology.log Signed-off-by: Patrick Donnelly --- diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py index 64032a8e7..955e933f8 100644 --- a/teuthology/task/internal/syslog.py +++ b/teuthology/task/internal/syslog.py @@ -181,11 +181,11 @@ def syslog(ctx, config): ) ) - log.info('Gathering journactl -b0...') + log.info('Gathering journactl ...') run.wait( cluster.run( args=[ - 'sudo', 'journalctl', '-b0', + 'sudo', 'journalctl', run.Raw('|'), 'gzip', '-9', run.Raw('>'),