From ce99797f6700f66bdde4b873e2d654f7f06e87fa Mon Sep 17 00:00:00 2001 From: Heron Vieira Date: Fri, 21 Oct 2022 17:20:26 -0300 Subject: [PATCH] K8s Coredump Handler - Change default handler Change default handler to k8s-coredump-handler on kernel.core_pattern. Test Plan: PASS: Install and bootstrap system PASS: Verify if kernel.core_pattern is changed to k8s-coredump-handler after bootstrap PASS: Validate feature in a Backup and Restore, checking if kernel.core_pattern is changed to k8s-coredump-handler after restore. PASS: Validate feature in a DC environment, checking if kernel.core_pattern is changed to k8s-coredump-handler in both the controllers and subclouds after install. Regression: PASS: After bootstrap, create and crash a pod with annotations configured and verify if coredump is generated on pod namespace. PASS: After bootstrap, crash a non k8s application and verify that the coredump is generated as previously (by systemd-coredump) PASS: Before bootstrap, crash a non k8s application and verify that the coredump is generated as previously (by systemd-coredump) PASS: Validate feature in a Backup and Restore, creating and crashing a pod with annotations configured and also crashing a non k8s application, and verify if the coredump was generated correctly. PASS: Validate feature in a DC environment, creating and crashing a pod with annotations configured and also crashing a non k8s application, and verify if the coredump was generated correctly in both the controllers and subclouds. Depends-On: https://review.opendev.org/c/starlingx/ansible-playbooks/+/861222 Story: 2010261 Task: 46625 Signed-off-by: Heron Vieira Change-Id: I34cf09b779d454abc2af27a477418b1afa986e8c --- utilities/stx-extensions/files/coredump-sysctl-debian.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/stx-extensions/files/coredump-sysctl-debian.conf b/utilities/stx-extensions/files/coredump-sysctl-debian.conf index 264e327a..929e415c 100644 --- a/utilities/stx-extensions/files/coredump-sysctl-debian.conf +++ b/utilities/stx-extensions/files/coredump-sysctl-debian.conf @@ -13,7 +13,7 @@ # the core dump. # # See systemd-coredump(8) and core(5). -kernel.core_pattern=|/usr/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h +kernel.core_pattern=|/usr/bin/k8s-coredump %P %u %g %s %t 9223372036854775808 %h %e" # Allow that 16 coredumps are dispatched in parallel by the kernel. We want to # be able to collect process metadata from /proc/%P/ while processing