StarlingX Bare Metal and Node Management, Hardware Maintenance
a120cc5fea
This commmit updates crashDumpMgr in order to add three new parameters and enhance the existing one. 1. Maximum Files: Added 'max-files' parameter to specify the maximum number of saved crash dump files. The default value is 4. 2. Maximum Size: Updated the 'max-size' parameter to support the 'unlimited' value. The default value is 5GiB. 3. Maximum Used: Included 'max-used' parameter to limit the maximum storage used by saved crash dump files. It supports 'unlimited' and has a default value of unlimited. 4. Minimum Available: Implemented 'min-available' parameter, enabling the definition of a minimum available storage threshold on the crash dump file system. The value is restricted to a minimum of 1GB and defaults to 10%. These enhancements refine the crash dump management process and offer more control over storage usage and crash dump file retention. Story: 2010893 Task: 48676 Test Plan: 1) max-files parameter: PASS: don't set max-files param. Ensure the default value is used. Create 5 directories inside /var/crash. Each of them contains dmesg.<date> and dump.<date>. run the crashDumpMgr script. Verify: PASS: the vmcore_first.tar.1.gz is created when the first directory is read. PASS: 4 more vmcore_<date>.tar files are created. PASS: There will be 1 vmcore_first.tar.1.gz and 4 vmcore_<date>.tar inside /var/log/crash. PASS: There will be one summary file for each direcory: <date>_dmesg.<date> inside /var/crash 2) max-size parameter PASS: don't set max-size param. Ensure the default value is used (5GiB). PASS: Set a fixed max-size param. Create a dump.<date> file greater that the max-size param. Run the crashDumpMgr script. Verify that the crash dump file is not generated and a log message is displayed. 3) max-used parameter: PASS: don't set max-used param. Ensure the default value is used (unlimited). PASS: Set a fixed max-used param. Create a dump.<date> file that will generate that the used space is greater that the max-used param. Run the crashDumpMgr script. Verify that the crash dump file is not generated, a log message is displayed and the directory is deleted. 4) min-available parameter: PASS: don't set min-available param. Ensure the default value is used (10% of /var/log/crash). PASS: Set a fixed 'min-available' param. Generate a 'dump.<date>' file to simulate a situation where the remaining space is less than the 'min-available' parameter. Run the crashDumpMgr script and ensure that it does not create the crashdump file, displays a log message, and deletes the entry. 5) PASS: Since the crashDumpMgr.service file is not being modified, verify that the script takes the default values. Note: All tests have also been conducted by generating a kernel panic and ensuring the crashDumpMgr script follows the correct workflow. Change-Id: I8948593469dae01f190fd1ea21da3d0852bd7814 Signed-off-by: Enzo Candotti <enzo.candotti@windriver.com> |
||
---|---|---|
api-ref/source | ||
bsp-files | ||
devstack | ||
doc | ||
installer | ||
kickstart | ||
mtce | ||
mtce-common | ||
mtce-compute | ||
mtce-control | ||
mtce-storage | ||
releasenotes | ||
tools | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
centos_build_layer.cfg | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_stable_docker_images.inc | ||
CONTRIBUTORS.wrs | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_docker_images.inc | ||
LICENSE | ||
pylint.rc | ||
README.rst | ||
test-requirements.txt | ||
tox.ini |