@@ -294,8 +294,7 @@ def verify_fadump_reg(self):
294
294
if int (res ) == 1 :
295
295
return True
296
296
else :
297
- self .c .run_command ("echo 1 > /sys/kernel/fadump_registered" )
298
- self .c .run_command ('\r \n ' )
297
+ self .c .run_command ("echo 1 > /sys/kernel/fadump_registered; sleep 10" )
299
298
self .c .run_command ("cat /sys/kernel/fadump_registered" )
300
299
301
300
if not self .is_lpar :
@@ -330,14 +329,12 @@ def verify_fadump_unreg(self):
330
329
if int (res ) == 0 :
331
330
return True
332
331
else :
333
- self .c .run_command ("echo 0 > /sys/kernel/fadump_registered" )
334
- self .c .run_command ('\r \n ' )
332
+ self .c .run_command ("echo 0 > /sys/kernel/fadump_registered; sleep 10" )
335
333
336
334
if not self .is_lpar :
337
335
self .c .run_command ("%s > /tmp/opal_log" % BMC_CONST .OPAL_MSG_LOG )
338
336
self .c .run_command ("dmesg > /tmp/dmesg_log" )
339
- self .c .run_command ("echo 0 > /sys/kernel/fadump_registered" )
340
- self .c .run_command ('\r \n ' )
337
+ self .c .run_command ("echo 0 > /sys/kernel/fadump_registered; sleep 10" )
341
338
342
339
opal_data = " " .join (self .c .run_command (
343
340
"%s | diff -a /tmp/opal_log -" % BMC_CONST .OPAL_MSG_LOG ))
@@ -632,7 +629,7 @@ def setup_fadump(self):
632
629
'''
633
630
self .cv_SYSTEM .set_state (OpSystemState .OS )
634
631
if self .distro == "rhel" :
635
- self .c .run_command ("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
632
+ self .c .run_command ("rm -rf ServiceReport; git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
636
633
"python ./servicereport --plugins kdump package --repair" , timeout = 240 )
637
634
time .sleep (10 )
638
635
self .c .run_command ("sed -e '/nfs/ s/^#*/#/' -i /etc/kdump.conf; sync" )
@@ -718,7 +715,7 @@ def runTest(self):
718
715
self .cv_HOST .host_check_command ("kdump" )
719
716
elif self .distro == "rhel" :
720
717
self .cv_HOST .host_check_command ("kdumpctl" )
721
- self .c .run_command ("git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
718
+ self .c .run_command ("rm -rf ServiceReport; git clone https://github.com/linux-ras/ServiceReport; cd ServiceReport;"
722
719
"python ./servicereport --plugins kdump package --repair" , timeout = 240 )
723
720
time .sleep (10 )
724
721
elif self .distro == "sles" :
@@ -733,9 +730,11 @@ def runTest(self):
733
730
self .cv_HOST .host_enable_kdump_service (os_level )
734
731
log .info ("========= Testing Only kdump enable followed by crash ===========" )
735
732
boot_type = self .kernel_crash ()
733
+ self .verify_dump_file (boot_type )
736
734
if self .is_lpar :
735
+ log .info ("========= Testing kdump with HMC dumprestart ===========" )
737
736
boot_type = self .kernel_crash (crash_type = "hmc" )
738
- self .verify_dump_file (boot_type )
737
+ self .verify_dump_file (boot_type )
739
738
740
739
741
740
class KernelCrash_DisableAll (PowerNVDump ):
@@ -1127,6 +1126,10 @@ class KernelCrash_XIVE_off(PowerNVDump):
1127
1126
'''
1128
1127
1129
1128
def runTest (self ):
1129
+ obj = OpTestInstallUtil .InstallUtil ()
1130
+ if not obj .update_kernel_cmdline (self .distro , remove_args = "default_hugepagesz=1GB hugepagesz=1GB hugepages=80" ,
1131
+ reboot = True , reboot_cmd = True ):
1132
+ self .fail ("KernelArgTest failed to remove kernel args:default_hugepagesz=1GB hugepagesz=1GB hugepages=80" )
1130
1133
self .cv_SYSTEM .goto_state (OpSystemState .OS )
1131
1134
self .setup_test ()
1132
1135
log .info ("=============== Testing kdump/fadump with xive=off ===============" )
@@ -1171,6 +1174,10 @@ class KernelCrash_disable_radix(PowerNVDump):
1171
1174
'''
1172
1175
1173
1176
def runTest (self ):
1177
+ obj = OpTestInstallUtil .InstallUtil ()
1178
+ if not obj .update_kernel_cmdline (self .distro , remove_args = "xive=off" ,
1179
+ reboot = True , reboot_cmd = True ):
1180
+ self .fail ("KernelArgTest failed to remove kernel args:xive=off" )
1174
1181
self .cv_SYSTEM .goto_state (OpSystemState .OS )
1175
1182
self .setup_test ()
1176
1183
log .info ("Testing kdump/fadump with disable_radix" )
@@ -1279,6 +1286,10 @@ def makedump_check(self):
1279
1286
self .c .run_command ("rm -rf dump*" )
1280
1287
1281
1288
def runTest (self ):
1289
+ obj = OpTestInstallUtil .InstallUtil ()
1290
+ if not obj .update_kernel_cmdline (self .distro , remove_args = "disable_radix" ,
1291
+ reboot = True , reboot_cmd = True ):
1292
+ self .fail ("KernelArgTest failed to remove kernel args:disable_radix" )
1282
1293
self .kernel_crash ()
1283
1294
self .makedump_check ()
1284
1295
0 commit comments