Skip to content

Commit 32a6d28

Browse files
Merge pull request #815 from SACHIN-BAPPALIGE/rhel_serviceReport
Add ServiceReport to RHEL distro on kdump/fadump tests
2 parents 749e149 + 6e52ed1 commit 32a6d28

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
@@ -632,9 +632,12 @@ def setup_fadump(self):
632632
'''
633633
self.cv_SYSTEM.set_state(OpSystemState.OS)
634634
if self.distro == "rhel":
635+
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
636+
"python ./servicereport --plugins kdump package --repair", timeout=240)
637+
time.sleep(10)
635638
self.c.run_command("sed -e '/nfs/ s/^#*/#/' -i /etc/kdump.conf; sync")
636639
obj = OpTestInstallUtil.InstallUtil()
637-
if not obj.update_kernel_cmdline(self.distro, args="fadump=on crashkernel=2G-128G:2048M,128G-:8192M",
640+
if not obj.update_kernel_cmdline(self.distro, args="fadump=on",
638641
reboot=True, reboot_cmd=True):
639642
self.fail("KernelArgTest failed to update kernel args")
640643
if self.distro == "sles":
@@ -715,10 +718,9 @@ def runTest(self):
715718
self.cv_HOST.host_check_command("kdump")
716719
elif self.distro == "rhel":
717720
self.cv_HOST.host_check_command("kdumpctl")
718-
obj = OpTestInstallUtil.InstallUtil()
719-
if not obj.update_kernel_cmdline(self.distro, args="crashkernel=2G-16G:512M,16G-64G:1G,64G-128G:2G,128G-:4G",
720-
reboot=True, reboot_cmd=True):
721-
self.fail("KernelArgTest failed to update kernel args")
721+
self.c.run_command("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
722+
"python ./servicereport --plugins kdump package --repair", timeout=240)
723+
time.sleep(10)
722724
elif self.distro == "sles":
723725
self.cv_HOST.host_check_command("kdumptool")
724726
self.c.run_command("zypper install -y ServiceReport; servicereport -r -p kdump;"

0 commit comments

Comments
 (0)