Skip to content

Commit

Permalink
Convert vmcore file format to kdump-compress format on SLES
Browse files Browse the repository at this point in the history
The vmcore saved in makedumpfile flattened format bydefault on SLES.
Inorder to test makedumpfile options like --split..etc, that
flattened format should be converted into kdump-compress format

Signed-off-by: Sachin P Bappalige <[email protected]>
  • Loading branch information
Sachin P Bappalige committed Apr 27, 2024
1 parent 65aea72 commit 12f6f9f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion testcases/PowerNVDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ class KernelCrash_XIVE_off(PowerNVDump):

def runTest(self):
obj = OpTestInstallUtil.InstallUtil()
obj.update_kernel_cmdline(self.distro, remove_args="default_hugepagesz=1GB hugepagesz=1GB hugepages=80",
obj.update_kernel_cmdline(self.distro, remove_args="default_hugepagesz=1GB hugepagesz=1GB",
reboot=True, reboot_cmd=True)
self.cv_SYSTEM.goto_state(OpSystemState.OS)
self.setup_test()
Expand Down Expand Up @@ -1245,6 +1245,14 @@ def makedump_check(self):
self.fail("vmcore is not saved")
else:
log.info("vmcore is saved")

'''
The vmcore file saved in flattened format on SLES distro.
So, convert flattened format to kdump compress format.
'''
if self.distro == "sles":
self.c.run_command("mv vmcore vmcore.orig; makedumpfile -R vmcore <vmcore.orig", timeout=60)

self.c.run_command("makedumpfile -v")
self.check_run("makedumpfile --split -d 31 -l vmcore dump3 dump4",
"The dumpfiles are saved to dump3, and dump4")
Expand Down

0 comments on commit 12f6f9f

Please sign in to comment.