@@ -632,9 +632,12 @@ def setup_fadump(self):
632
632
'''
633
633
self .cv_SYSTEM .set_state (OpSystemState .OS )
634
634
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 )
635
638
self .c .run_command ("sed -e '/nfs/ s/^#*/#/' -i /etc/kdump.conf; sync" )
636
639
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" ,
638
641
reboot = True , reboot_cmd = True ):
639
642
self .fail ("KernelArgTest failed to update kernel args" )
640
643
if self .distro == "sles" :
@@ -715,10 +718,9 @@ def runTest(self):
715
718
self .cv_HOST .host_check_command ("kdump" )
716
719
elif self .distro == "rhel" :
717
720
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 )
722
724
elif self .distro == "sles" :
723
725
self .cv_HOST .host_check_command ("kdumptool" )
724
726
self .c .run_command ("zypper install -y ServiceReport; servicereport -r -p kdump;"
0 commit comments