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 <heron.vieira@windriver.com>
Change-Id: I34cf09b779d454abc2af27a477418b1afa986e8c
This commit is contained in:
Heron Vieira 2022-10-21 17:20:26 -03:00
parent a5fe044d5d
commit ce99797f67

View File

@ -13,7 +13,7 @@
# the core dump. # the core dump.
# #
# See systemd-coredump(8) and core(5). # 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 # 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 # be able to collect process metadata from /proc/%P/ while processing