Skip to content

Commit

Permalink
Merge pull request #833 from SACHIN-BAPPALIGE/fix-makedumpfile_SLES
Browse files Browse the repository at this point in the history
Convert vmcore file format to kdump-compress format on SLES
  • Loading branch information
PraveenPenguin authored Apr 28, 2024
2 parents 65aea72 + 12f6f9f commit b89e54d
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 b89e54d

Please sign in to comment.