Skip to content

Commit 6e52ed1

Browse files
author
Sachin P Bappalige
committed
Add ServiceReport to RHEL
To avoid static values and manual updates to crashkernel size, ServiceReport was added to auto correct crashkernel size before running the kdump/fadump testcases. RHEL is not shipping ServiceReport in it's packages. So, clone the git repository and run this command. python ./servicereport --plugins kdump package --repair Signed-off-by: Sachin P Bappalige <[email protected]>
1 parent b0ffcc2 commit 6e52ed1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testcases/PowerNVDump.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,12 @@ def setup_fadump(self):
619619
'''
620620
self.cv_SYSTEM.set_state(OpSystemState.OS)
621621
if self.distro == "rhel":
622+
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
623+
"python ./servicereport --plugins kdump package --repair", timeout=240)
624+
time.sleep(10)
622625
self.c.run_command("sed -e '/nfs/ s/^#*/#/' -i /etc/kdump.conf; sync")
623626
obj = OpTestInstallUtil.InstallUtil()
624-
if not obj.update_kernel_cmdline(self.distro, args="fadump=on crashkernel=2G-128G:2048M,128G-:8192M",
627+
if not obj.update_kernel_cmdline(self.distro, args="fadump=on",
625628
reboot=True, reboot_cmd=True):
626629
self.fail("KernelArgTest failed to update kernel args")
627630
if self.distro == "sles":
@@ -702,10 +705,9 @@ def runTest(self):
702705
self.cv_HOST.host_check_command("kdump")
703706
elif self.distro == "rhel":
704707
self.cv_HOST.host_check_command("kdumpctl")
705-
obj = OpTestInstallUtil.InstallUtil()
706-
if not obj.update_kernel_cmdline(self.distro, args="crashkernel=2G-16G:512M,16G-64G:1G,64G-128G:2G,128G-:4G",
707-
reboot=True, reboot_cmd=True):
708-
self.fail("KernelArgTest failed to update kernel args")
708+
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
709+
"python ./servicereport --plugins kdump package --repair", timeout=240)
710+
time.sleep(10)
709711
elif self.distro == "sles":
710712
self.cv_HOST.host_check_command("kdumptool")
711713
self.c.run_command("zypper install -y ServiceReport; servicereport -r -p kdump;"

0 commit comments

Comments
 (0)