]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
tasks/internal/syslog: gather all journald entries
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 21 Jul 2025 13:39:03 +0000 (09:39 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 21 Jul 2025 15:46:15 +0000 (11:46 -0400)
commitdb7202bc68cf2318c759a02017720901be91f5cc
treed193a205a6a0272cce618e5ce760fa47e05fa71a
parent6fb25806e4fb7d7745c85caf53ca220d65a090d9
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 <pdonnell@redhat.com>
teuthology/task/internal/syslog.py