From 5e5635fc617618cb726802fee6a117fa7840c9bb Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Wed, 13 May 2020 04:53:40 -0400 Subject: [PATCH] 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) --- qa/tasks/cephfs/cephfs_test_case.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index e17bdd35f05ef..feb1f90cefdd8 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -267,6 +267,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 -- 2.47.3