From: Xiubo Li Date: Wed, 13 May 2020 08:53:40 +0000 (-0400) Subject: qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps X-Git-Tag: v15.2.5~129^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1bba4231ddf786cd85cef2d2a8a55564488ee10e;p=ceph.git qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h If the first character of this file is a pipe symbol (|), then the remainder of the line is interpreted as the command-line for a user-space program (or script) that is to be executed. More detail, please see: http://man7.org/linux/man-pages/man5/core.5.html Here will just skip cleaning the core dumps in this case. Fixes: https://tracker.ceph.com/issues/45530 Signed-off-by: Xiubo Li (cherry picked from commit de62c5393b7fe337b12e30a00c2f8ad4c79d1d15) --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 0dc2a6a93703..063a6508c61e 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -265,6 +265,10 @@ class CephFSTestCase(CephTestCase): if core_dir: # Non-default core_pattern with a directory in it # We have seen a core_pattern that looks like it's from teuthology's coredump # task, so proceed to clear out the core file + if core_dir[0] == '|': + log.info("Piped core dumps to program {0}, skip cleaning".format(core_dir[1:])) + return; + log.info("Clearing core from directory: {0}".format(core_dir)) # Verify that we see the expected single coredump