]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/internal/__init__: print core file output before splitting 1690/head
authorSage Weil <sage@newdream.net>
Thu, 28 Oct 2021 13:58:39 +0000 (08:58 -0500)
committerSage Weil <sage@newdream.net>
Thu, 28 Oct 2021 13:58:39 +0000 (08:58 -0500)
commiteff84dec42f0e9eb0acd690c8764db45f7d8d04e
treea247f2ef23d8a235f4f384efa4da0271ae74453c
parentc56135d151713269e811ede3163c9743c2e269de
task/internal/__init__: print core file output before splitting

Debugging this failure:

Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/run_tasks.py", line 176, in run_tasks
    suppress = manager.__exit__(*exc_info)
  File "/usr/lib/python3.6/contextlib.py", line 88, in __exit__
    next(self.gen)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/task/internal/__init__.py", line 398, in archive
    fetch_binaries_for_coredumps(path, rem)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_c56135d151713269e811ede3163c9743c2e269de/teuthology/task/internal/__init__.py", line 320, in fetch_binaries_for_coredumps
    dump_program = dump_out.split("from '")[1].split(' ')[0]
IndexError: list index out of range

...on output that should look like this:

./remote/smithi084/coredump/1635398181.133353.core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/bin/podman stop ceph-462d7c58-37ab-11ec-8c28-001a4aab830c-node-exporter-smithi', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/bin/podman', platform: 'x86_64'

Signed-off-by: Sage Weil <sage@newdream.net>
teuthology/task/internal/__init__.py