Files
integ/tools
sshathee e70cf36ef5 Pre and post hook support for kdump
This commit creates pre and post hook directories in
debian package. It adds pre and post hook script support
to be executed before and after crash dump collection
respectively. It executes scripts in alphabetical order
from hook directories.

The implementation ensures that any script failure during execution
does not affect the kdump crash dump collection process.

Pre-hook (/etc/kdump/pre-hooks.d/) scripts execute before vmcore
collection.
Post-hook (/etc/kdump/post-hooks.d/) scripts execute after
successful vmcore collection.

Test Plan:
Pass: Trigger crashdump on AIO-SX and verify pre and post
      dump scripts are executed
* Verify in absence of scripts and directory, dump is still
  created
* Verify if prehook and posthook scripts fail, dump is still
  created
* Verify scripts are executed in alphabetical order. Orders
  verified with prefix 001, 002 ,010 etc and 1, 2, 10, 3 etc

Pass: Trigger crashdump on standard with storage configuration
      and verify pre and post dump scripts are executed
* Verify pre and post scripts executed in controller node
* Verify pre and post scripts executed in compute node
* Verify pre and post scripts executed in storage node

Story: 2011594
Task: 53062
Change-Id: Ia6b93ec61d9b5267ca91fc4528b6e74e9493ffc4
Signed-off-by: sshathee <shunmugam.shatheesh@windriver.com>
2025-11-25 23:29:04 -05:00
..