blob: c101abd01eb8e0edf211cc9ce82156bd718ed101 [file] [log] [blame]
Sridevi Rameshea36b412017-03-09 04:08:02 -06001*** Settings ***
2Documentation This suite tests checkstop operations through OS.
3Resource ../lib/utils.robot
4Resource ../lib/openbmc_ffdc.robot
5Resource ../lib/ras/host_utils.robot
6Resource ../lib/resource.txt
7Resource ../lib/state_manager.robot
8Test Setup RAS Test Setup
9Test Teardown FFDC On Test Case Fail
10
11*** Variables ***
12${HOST_SETTINGS} ${SETTINGS_URI}host0
13
14*** Test Cases ***
15
16Verify Channel Checkstop Through OS With Auto Reboot
17
18 [Documentation] Verify Channel Checkstop (MBS FIR REG INT PROTOCOL ERROR)
19 ... through OS With Auto Reboot settings enabled.
20 [Tags] Verify_Channel_Checkstop_Through_OS_With_Auto_Reboot
21
22 Verify Checkstop Insertion With Auto Reboot
23 ... Centaur 2011400 4000000000000000
24
Rahul Maheshwari2955e162017-07-21 02:17:59 -050025
26Verify Host Reboot On Host Booted System With Auto Reboot Enabled
27 [Documentation] Verify host reboot after host watchdog error on host
28 ... booted system with auto reboot enabled.
29 [Tags] Verify_Host_Reboot_On_Host_Booted_System_With_Auto_Reboot_Enabled
30
31 Initiate Host Boot
32 Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
33
34 Set Auto Reboot ${1}
35
36 Trigger Host Watchdog Error
37
38 Wait Until Keyword Succeeds 3 min 5 sec Is Host Rebooted
39 Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
40
41
42Verify Host Quiesced On Host Booted System With Auto Reboot Disabled
43 [Documentation] Verify host quiesced state after host watchdog error on
44 ... host booted system with auto reboot disabled.
45 [Tags] Verify_Host_Quiesced_On_Host_Booted_System_With_Auto_Reboot_Disabled
46
47 Initiate Host Boot
48 Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
49
50 Set Auto Reboot ${0}
51
52 Trigger Host Watchdog Error
53
54 Wait Until Keyword Succeeds 3 min 5 sec Is Host Quiesced
55 Recover Quiesced Host
56
57
Sridevi Rameshea36b412017-03-09 04:08:02 -060058*** Keywords ***
59Inject Checkstop Through OS
60 [Documentation] Inject checkstop on processor/centaur through OS.
61 ... Test sequence:
62 ... 1. Boot To OS
63 ... 2. Clear any existing gard records
64 ... 3. Inject Checkstop on processor/centaur
65 [Arguments] ${chip_type} ${fru} ${address}
66 # Description of arguments:
67 # chip_type The chip type (Processor/Centaur).
68 # fru FRU value (e.g. 2011400).
69 # address chip address (e.g 4000000000000000).
70
71
72 Login To OS Host ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
73 # Get core values are present through OS.
74 Get Cores Values From OS
75
76 Gard Operations On OS clear all
77
78 # Fetch Processor/Centaur chip value based on the input chip_type.
79 ${output}= Get ChipID From OS ${chip_type}
80 ${chip_values}= Split String ${output}
81 ${chip_value}= Get From List ${chip_values} 0
82
83 Putscom Through OS ${chip_value} ${fru} ${address}
84
85Verify And Clear Gard Records On OS
86 [Documentation] Verify And Clear gard records on OS.
87
88 Login To OS Host ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
89 ${output}= Gard Operations On OS list
90 Should Not Contain ${output} 'No GARD entries to display'
91 Gard Operations On OS clear all
92
93Verify Checkstop Insertion With Auto Reboot
94 [Documentation] Inject and verify checkstop on processor/centaur through
95 ... OS with auto reboot.
96 ... Test sequence:
97 ... 1. Enable Auto Reboot Setting
98 ... 2. Inject Checkstop on processor/centaur
99 ... 3. Check If HOST rebooted and OS is up
100 ... 4. Verify & clear gard records
101 [Arguments] ${chip_type} ${fru} ${address}
102 # Description of arguments:
103 # chip_type The chip type (Processor/Centaur).
104 # fru FRU value (e.g. 2011400).
105 # address chip address (e.g 4000000000000000).
106
Sweta Potthuri62a23572017-07-28 04:05:13 -0500107 Set Auto Reboot ${1}
Sridevi Rameshea36b412017-03-09 04:08:02 -0600108 Inject Checkstop Through OS ${chip_type} ${fru} ${address}
109 Wait Until Keyword Succeeds 120 sec 20 sec Is Host Rebooted
110 Wait for OS ${OS_HOST} ${OS_USERNAME} ${OS_PASSWORD}
111 Verify And Clear Gard Records On OS
112
113RAS Test SetUp
114 [Documentation] Validates input parameters.
115
116 Should Not Be Empty
117 ... ${OS_HOST} msg=You must provide DNS name/IP of the OS host.
118 Should Not Be Empty
119 ... ${OS_USERNAME} msg=You must provide OS host user name.
120 Should Not Be Empty
121 ... ${OS_PASSWORD} msg=You must provide OS host user password.