]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps 36043/head
authorXiubo Li <xiubli@redhat.com>
Wed, 13 May 2020 08:53:40 +0000 (04:53 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 11 Jul 2020 08:40:38 +0000 (10:40 +0200)
|/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 <xiubli@redhat.com>
(cherry picked from commit de62c5393b7fe337b12e30a00c2f8ad4c79d1d15)

qa/tasks/cephfs/cephfs_test_case.py

index 0dc2a6a937031aa7e44a0dda2a2ac2d61c0075d4..063a6508c61eba0e4c613b9e73cb78aebcb3bf44 100644 (file)
@@ -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