blob: 4c81f8aa6a423fb3c7f6c5d4f7513c19efabacac [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": {
Michael Walshffbc3d12017-03-31 09:32:00 -05007 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -06008 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -05009 "boot_progress": "^Off|Unspecified$",
Michael Walshda2d43c2017-02-20 16:04:59 -060010 "host": "^Off$"
11 },
12 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050013 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060014 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -050015 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshda2d43c2017-02-20 16:04:59 -060016 "host": "^Running$",
17 "os_ping": "^1$",
18 "os_login": "^1$",
19 "os_run_cmd": "^1$"
20 },
21 "bmc_reboot": 0,
22 "method_type": "keyword",
Michael Walshb099e622017-03-21 14:51:47 -050023 "method": "Initiate Host Boot wait=${0}",
24 "lib_file_path": "state_manager.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -060025 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050026 # Initiate a power on using the IPMI interface.
27 "IPMI Power On": {
28 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050029 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050030 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -050031 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050032 "host": "^Off$"
33 },
34 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050035 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050036 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -050037 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050038 "host": "^Running$",
39 "os_ping": "^1$",
40 "os_login": "^1$",
41 "os_run_cmd": "^1$"
42 },
43 "bmc_reboot": 0,
44 "method_type": "keyword",
45 "method": "Run External IPMI Standard Command power on",
46 "lib_file_path": "ipmi_client.robot"
47 },
48
49 # Power off boot types:
50
Michael Walsh4aa82202017-03-02 14:45:49 -060051 # Initiate a power off using the REST API interface.
52 "REST Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060053 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050054 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050055 "chassis": "^On$"
Michael Walshda2d43c2017-02-20 16:04:59 -060056 },
57 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050058 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060059 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -050060 "boot_progress": "^Off|Unspecified$",
Michael Walshda2d43c2017-02-20 16:04:59 -060061 "host": "^Off$",
62 "os_ping": "^0$",
63 "os_login": "^0$",
64 "os_run_cmd": "^0$"
65 },
66 "bmc_reboot": 0,
67 "method_type": "keyword",
Michael Walshb099e622017-03-21 14:51:47 -050068 "method": "Initiate Host PowerOff wait=${0}",
69 "lib_file_path": "state_manager.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -060070 },
Michael Walsh245db7c2017-09-05 15:45:03 -050071 # Initiate a hard power off using the REST API interface.
72 "REST Hard Power Off": {
73 "start": {
74 "rest": "^1$",
75 "chassis": "^On$"
76 },
77 "end": {
78 "rest": "^1$",
79 "chassis": "^Off$",
80 "boot_progress": "^Off|Unspecified$",
81 "host": "^Off$",
82 "os_ping": "^0$",
83 "os_login": "^0$",
84 "os_run_cmd": "^0$"
85 },
86 "bmc_reboot": 0,
87 "method_type": "keyword",
88 "method": "Hard Power Off wait=${0}",
89 "lib_file_path": "state_manager.robot"
90 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050091 # Initiate a power off using the IPMI interface.
92 "IPMI Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060093 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050094 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050095 "chassis": "^On$"
Michael Walshda2d43c2017-02-20 16:04:59 -060096 },
97 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050098 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060099 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500100 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500101 "host": "^Off$",
102 "os_ping": "^0$",
103 "os_login": "^0$",
104 "os_run_cmd": "^0$"
Michael Walsh4aa82202017-03-02 14:45:49 -0600105 },
106 "bmc_reboot": 0,
107 "method_type": "keyword",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500108 "method": "Run External IPMI Standard Command power off",
109 "lib_file_path": "ipmi_client.robot"
110 },
111 # Initiate a power soft using the IPMI interface.
112 "IPMI Power Soft": {
113 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500114 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -0500115 "chassis": "^On$"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500116 },
117 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500118 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500119 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500120 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500121 "host": "^Off$",
122 "os_ping": "^0$",
123 "os_login": "^0$",
124 "os_run_cmd": "^0$"
125 },
126 "bmc_reboot": 0,
127 "method_type": "keyword",
128 "method": "Run External IPMI Standard Command power soft",
129 "lib_file_path": "ipmi_client.robot"
Michael Walsh4aa82202017-03-02 14:45:49 -0600130 },
131 # Run a "shutdown" command on the OS_HOST.
132 "Host Power Off": {
133 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500134 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600135 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500136 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600137 "host": "^Running$",
138 "os_ping": "^1$",
139 "os_login": "^1$",
140 "os_run_cmd": "^1$"
141 },
142 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500143 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600144 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500145 "boot_progress": "^Off|Unspecified$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600146 "host": "^Off$",
147 "os_ping": "^0$",
148 "os_login": "^0$",
149 "os_run_cmd": "^0$"
150 },
151 "bmc_reboot": 0,
152 "method_type": "keyword",
153 "method": "utils.Initiate OS Host Power Off",
154 "lib_file_path": "utils.robot"
155 },
Michael Walsh10e7eb32017-03-21 11:25:58 -0500156
157 # OBMC re-boot boot types:
158
Michael Walshffbc3d12017-03-31 09:32:00 -0500159 # APOR - Auto Power On Restart - Note that this is functionally equivalent
160 # to 'PDU AC Cycle (run)'.
161 "APOR": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500162 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500163 "rest": "^1$",
164 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500165 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500166 "host": "^Running$",
167 "os_ping": "^1$",
168 "os_login": "^1$",
169 "os_run_cmd": "^1$"
170 },
171 "end": {
172 "rest": "^1$",
173 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500174 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500175 "host": "^Running$",
176 "os_ping": "^1$",
177 "os_login": "^1$",
178 "os_run_cmd": "^1$"
179 },
180 "bmc_reboot": 1,
181 "method_type": "keyword",
182 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
183 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
184 },
185 # Run a "reboot" on the OBMC while host is running.
186 "OBMC Reboot (run)": {
187 "start": {
188 "rest": "^1$",
189 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500190 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500191 "host": "^Running$",
192 "os_ping": "^1$",
193 "os_login": "^1$",
194 "os_run_cmd": "^1$"
195 },
196 "end": {
197 "rest": "^1$",
198 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500199 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500200 "host": "^Running$",
201 "os_ping": "^1$",
202 "os_login": "^1$",
203 "os_run_cmd": "^1$"
204 },
205 "bmc_reboot": 1,
206 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500207 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walshffbc3d12017-03-31 09:32:00 -0500208 },
209 # Run a "reboot" on the OBMC while host is off.
210 "OBMC Reboot (off)": {
211 "start": {
212 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500213 "chassis": "^Off$"
214 },
215 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500216 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500217 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500218 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500219 "host": "^Off$"
220 },
221 "bmc_reboot": 1,
222 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500223 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500224 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500225 # Cycle AC via the PDU while host is off.
226 "PDU AC Cycle (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500227 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500228 "rest": "^1$",
229 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500230 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500231 "host": "^Running$",
232 "os_ping": "^1$",
233 "os_login": "^1$",
234 "os_run_cmd": "^1$"
235 },
236 "end": {
237 "rest": "^1$",
238 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500239 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500240 "host": "^Running$",
241 "os_ping": "^1$",
242 "os_login": "^1$",
243 "os_run_cmd": "^1$"
244 },
245 "bmc_reboot": 1,
246 "method_type": "keyword",
247 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
248 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
249 },
250 # Cycle AC via the PDU while host is off.
251 "PDU AC Cycle (off)": {
252 "start": {
253 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500254 "chassis": "^Off$"
255 },
256 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500257 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500258 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500259 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500260 "host": "^Off$"
261 },
262 "bmc_reboot": 1,
263 "method_type": "keyword",
264 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
265 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
266 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500267 # Initiate an mc reset warm using the IPMI interface while chassis is
268 # powered on.
269 "IPMI MC Reset Warm (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500270 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500271 "rest": "^1$",
272 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500273 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500274 "host": "^Running$",
275 "os_ping": "^1$",
276 "os_login": "^1$",
277 "os_run_cmd": "^1$"
278 },
279 "end": {
280 "rest": "^1$",
281 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500282 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500283 "host": "^Running$",
284 "os_ping": "^1$",
285 "os_login": "^1$",
286 "os_run_cmd": "^1$"
287 },
288 "bmc_reboot": 1,
289 "method_type": "keyword",
290 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
291 "lib_file_path": "ipmi_client.robot:gen_print.py"
292 },
293 # Initiate an mc reset warm using the IPMI interface while chassis is
294 # powered off.
295 "IPMI MC Reset Warm (off)": {
296 "start": {
297 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500298 "chassis": "^Off$"
299 },
300 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500301 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500302 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500303 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500304 "host": "^Off$"
305 },
306 "bmc_reboot": 1,
307 "method_type": "keyword",
308 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
309 "lib_file_path": "ipmi_client.robot:gen_print.py"
310 },
311
312 # Host OS re-boot boot types:
313
314 # Initiate a power cycle using the IPMI interface (equivalent to off/on).
315 "IPMI Power Cycle": {
316 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500317 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500318 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500319 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500320 "host": "^Running$",
321 "os_ping": "^1$",
322 "os_login": "^1$",
323 "os_run_cmd": "^1$"
324 },
325 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500326 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500327 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500328 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500329 "host": "^Running$",
330 "os_ping": "^1$",
331 "os_login": "^1$",
332 "os_run_cmd": "^1$"
333 },
334 "bmc_reboot": 0,
335 "method_type": "keyword",
336 "method": "Run External IPMI Standard Command power cycle",
337 "lib_file_path": "ipmi_client.robot"
338 },
339 # Initiate a power reset using the IPMI interface (equivalent to off/on).
340 # Functionally equivalent to "IPMI Power Cycle".
341 "IPMI Power Reset": {
342 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500343 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500344 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500345 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500346 "host": "^Running$",
347 "os_ping": "^1$",
348 "os_login": "^1$",
349 "os_run_cmd": "^1$"
350 },
351 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500352 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500353 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500354 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500355 "host": "^Running$",
356 "os_ping": "^1$",
357 "os_login": "^1$",
358 "os_run_cmd": "^1$"
359 },
360 "bmc_reboot": 0,
361 "method_type": "keyword",
362 "method": "Run External IPMI Standard Command power reset",
363 "lib_file_path": "ipmi_client.robot"
364 },
Michael Walsh4aa82202017-03-02 14:45:49 -0600365 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
366 "Auto Reboot": {
367 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500368 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600369 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500370 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600371 "host": "^Running$",
372 "os_ping": "^1$",
373 "os_login": "^1$",
374 "os_run_cmd": "^1$"
375 },
376 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500377 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600378 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500379 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600380 "host": "^Running$",
381 "os_ping": "^1$",
382 "os_login": "^1$",
383 "os_run_cmd": "^1$"
384 },
385 "bmc_reboot": 0,
386 "method_type": "keyword",
387 "method": "utils.Initiate Auto Reboot",
388 "lib_file_path": "utils.robot"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500389 },
390 # Run a "reboot" command on the OS_HOST.
391 "Host Reboot": {
392 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500393 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500394 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500395 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500396 "host": "^Running$",
397 "os_ping": "^1$",
398 "os_login": "^1$",
399 "os_run_cmd": "^1$"
400 },
401 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500402 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500403 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500404 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500405 "host": "^Running$",
406 "os_ping": "^1$",
407 "os_login": "^1$",
408 "os_run_cmd": "^1$"
409 },
410 "bmc_reboot": 0,
411 "method_type": "keyword",
412 "method": "utils.Initiate OS Host Reboot",
413 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600414 }
415}