blob: b2fd517291c117cc77a2ba54c79da1a45eb717a7 [file] [log] [blame]
Michael Walshda2d43c2017-02-20 16:04:59 -06001{
Michael Walsh10e7eb32017-03-21 11:25:58 -05002 # Power on boot types:
3
Michael Walsh4aa82202017-03-02 14:45:49 -06004 # Initiate a power on using the REST API interface.
5 "REST Power On": {
Michael Walshda2d43c2017-02-20 16:04:59 -06006 "start": {
7 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -06008 "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -06009 "host": "^Off$"
10 },
11 "end": {
12 "chassis": "^On$",
Michael Walsh4aa82202017-03-02 14:45:49 -060013 "boot_progress": "^FW Progress, Starting OS$",
Michael Walshda2d43c2017-02-20 16:04:59 -060014 "host": "^Running$",
15 "os_ping": "^1$",
16 "os_login": "^1$",
17 "os_run_cmd": "^1$"
18 },
19 "bmc_reboot": 0,
20 "method_type": "keyword",
21 "method": "Initiate Power On wait=${0}"
22 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050023 # Initiate a power on using the IPMI interface.
24 "IPMI Power On": {
25 "start": {
26 "chassis": "^Off$",
27 "boot_progress": "^Off$",
28 "host": "^Off$"
29 },
30 "end": {
31 "chassis": "^On$",
32 "boot_progress": "^FW Progress, Starting OS$",
33 "host": "^Running$",
34 "os_ping": "^1$",
35 "os_login": "^1$",
36 "os_run_cmd": "^1$"
37 },
38 "bmc_reboot": 0,
39 "method_type": "keyword",
40 "method": "Run External IPMI Standard Command power on",
41 "lib_file_path": "ipmi_client.robot"
42 },
43
44 # Power off boot types:
45
Michael Walsh4aa82202017-03-02 14:45:49 -060046 # Initiate a power off using the REST API interface.
47 "REST Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060048 "start": {
49 "chassis": "^On$",
Michael Walsh4aa82202017-03-02 14:45:49 -060050 "boot_progress": "^FW Progress, Starting OS$",
Michael Walshda2d43c2017-02-20 16:04:59 -060051 "host": "^Running$"
52 },
53 "end": {
54 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060055 "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060056 "host": "^Off$",
57 "os_ping": "^0$",
58 "os_login": "^0$",
59 "os_run_cmd": "^0$"
60 },
61 "bmc_reboot": 0,
62 "method_type": "keyword",
63 "method": "Initiate Power Off"
64 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050065 # Initiate a power off using the IPMI interface.
66 "IPMI Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060067 "start": {
Michael Walsh10e7eb32017-03-21 11:25:58 -050068 "chassis": "^On$",
69 "boot_progress": "^FW Progress, Starting OS$",
70 "host": "^Running$"
Michael Walshda2d43c2017-02-20 16:04:59 -060071 },
72 "end": {
73 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060074 "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050075 "host": "^Off$",
76 "os_ping": "^0$",
77 "os_login": "^0$",
78 "os_run_cmd": "^0$"
Michael Walsh4aa82202017-03-02 14:45:49 -060079 },
80 "bmc_reboot": 0,
81 "method_type": "keyword",
Michael Walsh10e7eb32017-03-21 11:25:58 -050082 "method": "Run External IPMI Standard Command power off",
83 "lib_file_path": "ipmi_client.robot"
84 },
85 # Initiate a power soft using the IPMI interface.
86 "IPMI Power Soft": {
87 "start": {
88 "chassis": "^On$",
89 "boot_progress": "^FW Progress, Starting OS$",
90 "host": "^Running$"
91 },
92 "end": {
93 "chassis": "^Off$",
94 "boot_progress": "^Off$",
95 "host": "^Off$",
96 "os_ping": "^0$",
97 "os_login": "^0$",
98 "os_run_cmd": "^0$"
99 },
100 "bmc_reboot": 0,
101 "method_type": "keyword",
102 "method": "Run External IPMI Standard Command power soft",
103 "lib_file_path": "ipmi_client.robot"
Michael Walsh4aa82202017-03-02 14:45:49 -0600104 },
105 # Run a "shutdown" command on the OS_HOST.
106 "Host Power Off": {
107 "start": {
108 "chassis": "^On$",
109 "boot_progress": "^FW Progress, Starting OS$",
110 "host": "^Running$",
111 "os_ping": "^1$",
112 "os_login": "^1$",
113 "os_run_cmd": "^1$"
114 },
115 "end": {
116 "chassis": "^Off$",
117 "boot_progress": "^Off$",
118 "host": "^Off$",
119 "os_ping": "^0$",
120 "os_login": "^0$",
121 "os_run_cmd": "^0$"
122 },
123 "bmc_reboot": 0,
124 "method_type": "keyword",
125 "method": "utils.Initiate OS Host Power Off",
126 "lib_file_path": "utils.robot"
127 },
Michael Walsh10e7eb32017-03-21 11:25:58 -0500128
129 # OBMC re-boot boot types:
130
131 # Run a "reboot" on the OBMC.
132 "OBMC Reboot": {
133 "start": {
134 "chassis": "^Off$"
135 },
136 "end": {
137 "chassis": "^Off$",
138 "boot_progress": "^Off$",
139 "host": "^Off$"
140 },
141 "bmc_reboot": 1,
142 "method_type": "keyword",
143 "method": "Open Connection And Log In ; Start Command /sbin/reboot"
144 },
145 # Cycle AC via the PDU.
146 "PDU AC Cycle": {
147 "start": {
148 "chassis": "^Off$"
149 },
150 "end": {
151 "chassis": "^Off$",
152 "boot_progress": "^Off$",
153 "host": "^Off$"
154 },
155 "bmc_reboot": 1,
156 "method_type": "keyword",
157 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
158 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
159 },
160 # Initiate an mc reset warm using the IPMI interface.
161 "IPMI MC Reset Warm": {
162 "start": {
163 "chassis": "^Off$"
164 },
165 "end": {
166 "chassis": "^Off$",
167 "boot_progress": "^Off$",
168 "host": "^Off$"
169 },
170 "bmc_reboot": 1,
171 "method_type": "keyword",
172 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
173 "lib_file_path": "ipmi_client.robot:gen_print.py"
174 },
175
176 # Host OS re-boot boot types:
177
178 # Initiate a power cycle using the IPMI interface (equivalent to off/on).
179 "IPMI Power Cycle": {
180 "start": {
181 "chassis": "^On$",
182 "boot_progress": "^FW Progress, Starting OS$",
183 "host": "^Running$",
184 "os_ping": "^1$",
185 "os_login": "^1$",
186 "os_run_cmd": "^1$"
187 },
188 "end": {
189 "chassis": "^On$",
190 "boot_progress": "^FW Progress, Starting OS$",
191 "host": "^Running$",
192 "os_ping": "^1$",
193 "os_login": "^1$",
194 "os_run_cmd": "^1$"
195 },
196 "bmc_reboot": 0,
197 "method_type": "keyword",
198 "method": "Run External IPMI Standard Command power cycle",
199 "lib_file_path": "ipmi_client.robot"
200 },
201 # Initiate a power reset using the IPMI interface (equivalent to off/on).
202 # Functionally equivalent to "IPMI Power Cycle".
203 "IPMI Power Reset": {
204 "start": {
205 "chassis": "^On$",
206 "boot_progress": "^FW Progress, Starting OS$",
207 "host": "^Running$",
208 "os_ping": "^1$",
209 "os_login": "^1$",
210 "os_run_cmd": "^1$"
211 },
212 "end": {
213 "chassis": "^On$",
214 "boot_progress": "^FW Progress, Starting OS$",
215 "host": "^Running$",
216 "os_ping": "^1$",
217 "os_login": "^1$",
218 "os_run_cmd": "^1$"
219 },
220 "bmc_reboot": 0,
221 "method_type": "keyword",
222 "method": "Run External IPMI Standard Command power reset",
223 "lib_file_path": "ipmi_client.robot"
224 },
Michael Walsh4aa82202017-03-02 14:45:49 -0600225 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
226 "Auto Reboot": {
227 "start": {
228 "chassis": "^On$",
229 "boot_progress": "^FW Progress, Starting OS$",
230 "host": "^Running$",
231 "os_ping": "^1$",
232 "os_login": "^1$",
233 "os_run_cmd": "^1$"
234 },
235 "end": {
236 "chassis": "^On$",
237 "boot_progress": "^FW Progress, Starting OS$",
238 "host": "^Running$",
239 "os_ping": "^1$",
240 "os_login": "^1$",
241 "os_run_cmd": "^1$"
242 },
243 "bmc_reboot": 0,
244 "method_type": "keyword",
245 "method": "utils.Initiate Auto Reboot",
246 "lib_file_path": "utils.robot"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500247 },
248 # Run a "reboot" command on the OS_HOST.
249 "Host Reboot": {
250 "start": {
251 "chassis": "^On$",
252 "boot_progress": "^FW Progress, Starting OS$",
253 "host": "^Running$",
254 "os_ping": "^1$",
255 "os_login": "^1$",
256 "os_run_cmd": "^1$"
257 },
258 "end": {
259 "chassis": "^On$",
260 "boot_progress": "^FW Progress, Starting OS$",
261 "host": "^Running$",
262 "os_ping": "^1$",
263 "os_login": "^1$",
264 "os_run_cmd": "^1$"
265 },
266 "bmc_reboot": 0,
267 "method_type": "keyword",
268 "method": "utils.Initiate OS Host Reboot",
269 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600270 }
271}