Skip to content

Commit

Permalink
Merge pull request #815 from SACHIN-BAPPALIGE/rhel_serviceReport
Browse files Browse the repository at this point in the history
Add ServiceReport to RHEL distro on kdump/fadump tests
  • Loading branch information
PraveenPenguin authored Apr 15, 2024
2 parents 749e149 + 6e52ed1 commit 32a6d28
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions testcases/PowerNVDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,12 @@ def setup_fadump(self):
'''
self.cv_SYSTEM.set_state(OpSystemState.OS)
if self.distro == "rhel":
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
"python ./servicereport --plugins kdump package --repair", timeout=240)
time.sleep(10)
self.c.run_command("sed -e '/nfs/ s/^#*/#/' -i /etc/kdump.conf; sync")
obj = OpTestInstallUtil.InstallUtil()
if not obj.update_kernel_cmdline(self.distro, args="fadump=on crashkernel=2G-128G:2048M,128G-:8192M",
if not obj.update_kernel_cmdline(self.distro, args="fadump=on",
reboot=True, reboot_cmd=True):
self.fail("KernelArgTest failed to update kernel args")
if self.distro == "sles":
Expand Down Expand Up @@ -715,10 +718,9 @@ def runTest(self):
self.cv_HOST.host_check_command("kdump")
elif self.distro == "rhel":
self.cv_HOST.host_check_command("kdumpctl")
obj = OpTestInstallUtil.InstallUtil()
if not obj.update_kernel_cmdline(self.distro, args="crashkernel=2G-16G:512M,16G-64G:1G,64G-128G:2G,128G-:4G",
reboot=True, reboot_cmd=True):
self.fail("KernelArgTest failed to update kernel args")
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
"python ./servicereport --plugins kdump package --repair", timeout=240)
time.sleep(10)
elif self.distro == "sles":
self.cv_HOST.host_check_command("kdumptool")
self.c.run_command("zypper install -y ServiceReport; servicereport -r -p kdump;"
Expand Down

0 comments on commit 32a6d28

Please sign in to comment.