blob: 3bd9b1640e437d4287004a4dc953779ac9a629b3 [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 Walsh01975fa2017-08-20 20:51:36 -05009# TO-DO: There is a known product code bug where boot_progress does not go to
10# 'Off'. Once that bug is fixed, this code may be commented back in.
11# "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060012 "host": "^Off$"
13 },
14 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050015 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060016 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -050017# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshda2d43c2017-02-20 16:04:59 -060018 "host": "^Running$",
19 "os_ping": "^1$",
20 "os_login": "^1$",
21 "os_run_cmd": "^1$"
22 },
23 "bmc_reboot": 0,
24 "method_type": "keyword",
Michael Walshb099e622017-03-21 14:51:47 -050025 "method": "Initiate Host Boot wait=${0}",
26 "lib_file_path": "state_manager.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -060027 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050028 # Initiate a power on using the IPMI interface.
29 "IPMI Power On": {
30 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050031 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050032 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -050033# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050034 "host": "^Off$"
35 },
36 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050037 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050038 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -050039# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050040 "host": "^Running$",
41 "os_ping": "^1$",
42 "os_login": "^1$",
43 "os_run_cmd": "^1$"
44 },
45 "bmc_reboot": 0,
46 "method_type": "keyword",
47 "method": "Run External IPMI Standard Command power on",
48 "lib_file_path": "ipmi_client.robot"
49 },
50
51 # Power off boot types:
52
Michael Walsh4aa82202017-03-02 14:45:49 -060053 # Initiate a power off using the REST API interface.
54 "REST Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060055 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050056 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050057 "chassis": "^On$"
Michael Walshda2d43c2017-02-20 16:04:59 -060058 },
59 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050060 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060061 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -050062# "boot_progress": "^Off$",
Michael Walshda2d43c2017-02-20 16:04:59 -060063 "host": "^Off$",
64 "os_ping": "^0$",
65 "os_login": "^0$",
66 "os_run_cmd": "^0$"
67 },
68 "bmc_reboot": 0,
69 "method_type": "keyword",
Michael Walshb099e622017-03-21 14:51:47 -050070 "method": "Initiate Host PowerOff wait=${0}",
71 "lib_file_path": "state_manager.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -060072 },
Michael Walsh10e7eb32017-03-21 11:25:58 -050073 # Initiate a power off using the IPMI interface.
74 "IPMI Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060075 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050076 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050077 "chassis": "^On$"
Michael Walshda2d43c2017-02-20 16:04:59 -060078 },
79 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050080 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060081 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -050082# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050083 "host": "^Off$",
84 "os_ping": "^0$",
85 "os_login": "^0$",
86 "os_run_cmd": "^0$"
Michael Walsh4aa82202017-03-02 14:45:49 -060087 },
88 "bmc_reboot": 0,
89 "method_type": "keyword",
Michael Walsh10e7eb32017-03-21 11:25:58 -050090 "method": "Run External IPMI Standard Command power off",
91 "lib_file_path": "ipmi_client.robot"
92 },
93 # Initiate a power soft using the IPMI interface.
94 "IPMI Power Soft": {
95 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050096 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050097 "chassis": "^On$"
Michael Walsh10e7eb32017-03-21 11:25:58 -050098 },
99 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500100 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500101 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500102# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500103 "host": "^Off$",
104 "os_ping": "^0$",
105 "os_login": "^0$",
106 "os_run_cmd": "^0$"
107 },
108 "bmc_reboot": 0,
109 "method_type": "keyword",
110 "method": "Run External IPMI Standard Command power soft",
111 "lib_file_path": "ipmi_client.robot"
Michael Walsh4aa82202017-03-02 14:45:49 -0600112 },
113 # Run a "shutdown" command on the OS_HOST.
114 "Host Power Off": {
115 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500116 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600117 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500118# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600119 "host": "^Running$",
120 "os_ping": "^1$",
121 "os_login": "^1$",
122 "os_run_cmd": "^1$"
123 },
124 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500125 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600126 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500127# "boot_progress": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600128 "host": "^Off$",
129 "os_ping": "^0$",
130 "os_login": "^0$",
131 "os_run_cmd": "^0$"
132 },
133 "bmc_reboot": 0,
134 "method_type": "keyword",
135 "method": "utils.Initiate OS Host Power Off",
136 "lib_file_path": "utils.robot"
137 },
Michael Walsh10e7eb32017-03-21 11:25:58 -0500138
139 # OBMC re-boot boot types:
140
Michael Walshffbc3d12017-03-31 09:32:00 -0500141 # APOR - Auto Power On Restart - Note that this is functionally equivalent
142 # to 'PDU AC Cycle (run)'.
143 "APOR": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500144 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500145 "rest": "^1$",
146 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500147# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500148 "host": "^Running$",
149 "os_ping": "^1$",
150 "os_login": "^1$",
151 "os_run_cmd": "^1$"
152 },
153 "end": {
154 "rest": "^1$",
155 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500156# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500157 "host": "^Running$",
158 "os_ping": "^1$",
159 "os_login": "^1$",
160 "os_run_cmd": "^1$"
161 },
162 "bmc_reboot": 1,
163 "method_type": "keyword",
164 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
165 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
166 },
167 # Run a "reboot" on the OBMC while host is running.
168 "OBMC Reboot (run)": {
169 "start": {
170 "rest": "^1$",
171 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500172# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500173 "host": "^Running$",
174 "os_ping": "^1$",
175 "os_login": "^1$",
176 "os_run_cmd": "^1$"
177 },
178 "end": {
179 "rest": "^1$",
180 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500181# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500182 "host": "^Running$",
183 "os_ping": "^1$",
184 "os_login": "^1$",
185 "os_run_cmd": "^1$"
186 },
187 "bmc_reboot": 1,
188 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500189 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walshffbc3d12017-03-31 09:32:00 -0500190 },
191 # Run a "reboot" on the OBMC while host is off.
192 "OBMC Reboot (off)": {
193 "start": {
194 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500195 "chassis": "^Off$"
196 },
197 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500198 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500199 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500200# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500201 "host": "^Off$"
202 },
203 "bmc_reboot": 1,
204 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500205 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500206 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500207 # Cycle AC via the PDU while host is off.
208 "PDU AC Cycle (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500209 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500210 "rest": "^1$",
211 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500212# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500213 "host": "^Running$",
214 "os_ping": "^1$",
215 "os_login": "^1$",
216 "os_run_cmd": "^1$"
217 },
218 "end": {
219 "rest": "^1$",
220 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500221# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500222 "host": "^Running$",
223 "os_ping": "^1$",
224 "os_login": "^1$",
225 "os_run_cmd": "^1$"
226 },
227 "bmc_reboot": 1,
228 "method_type": "keyword",
229 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
230 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
231 },
232 # Cycle AC via the PDU while host is off.
233 "PDU AC Cycle (off)": {
234 "start": {
235 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500236 "chassis": "^Off$"
237 },
238 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500239 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500240 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500241# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500242 "host": "^Off$"
243 },
244 "bmc_reboot": 1,
245 "method_type": "keyword",
246 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
247 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
248 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500249 # Initiate an mc reset warm using the IPMI interface while chassis is
250 # powered on.
251 "IPMI MC Reset Warm (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500252 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500253 "rest": "^1$",
254 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500255# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500256 "host": "^Running$",
257 "os_ping": "^1$",
258 "os_login": "^1$",
259 "os_run_cmd": "^1$"
260 },
261 "end": {
262 "rest": "^1$",
263 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500264# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500265 "host": "^Running$",
266 "os_ping": "^1$",
267 "os_login": "^1$",
268 "os_run_cmd": "^1$"
269 },
270 "bmc_reboot": 1,
271 "method_type": "keyword",
272 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
273 "lib_file_path": "ipmi_client.robot:gen_print.py"
274 },
275 # Initiate an mc reset warm using the IPMI interface while chassis is
276 # powered off.
277 "IPMI MC Reset Warm (off)": {
278 "start": {
279 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500280 "chassis": "^Off$"
281 },
282 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500283 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500284 "chassis": "^Off$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500285# "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500286 "host": "^Off$"
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
294 # Host OS re-boot boot types:
295
296 # Initiate a power cycle using the IPMI interface (equivalent to off/on).
297 "IPMI Power Cycle": {
298 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500299 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500300 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500301# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500302 "host": "^Running$",
303 "os_ping": "^1$",
304 "os_login": "^1$",
305 "os_run_cmd": "^1$"
306 },
307 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500308 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500309 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500310# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500311 "host": "^Running$",
312 "os_ping": "^1$",
313 "os_login": "^1$",
314 "os_run_cmd": "^1$"
315 },
316 "bmc_reboot": 0,
317 "method_type": "keyword",
318 "method": "Run External IPMI Standard Command power cycle",
319 "lib_file_path": "ipmi_client.robot"
320 },
321 # Initiate a power reset using the IPMI interface (equivalent to off/on).
322 # Functionally equivalent to "IPMI Power Cycle".
323 "IPMI Power Reset": {
324 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500325 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500326 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500327# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500328 "host": "^Running$",
329 "os_ping": "^1$",
330 "os_login": "^1$",
331 "os_run_cmd": "^1$"
332 },
333 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500334 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500335 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500336# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500337 "host": "^Running$",
338 "os_ping": "^1$",
339 "os_login": "^1$",
340 "os_run_cmd": "^1$"
341 },
342 "bmc_reboot": 0,
343 "method_type": "keyword",
344 "method": "Run External IPMI Standard Command power reset",
345 "lib_file_path": "ipmi_client.robot"
346 },
Michael Walsh4aa82202017-03-02 14:45:49 -0600347 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
348 "Auto Reboot": {
349 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500350 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600351 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500352# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600353 "host": "^Running$",
354 "os_ping": "^1$",
355 "os_login": "^1$",
356 "os_run_cmd": "^1$"
357 },
358 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500359 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600360 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500361# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600362 "host": "^Running$",
363 "os_ping": "^1$",
364 "os_login": "^1$",
365 "os_run_cmd": "^1$"
366 },
367 "bmc_reboot": 0,
368 "method_type": "keyword",
369 "method": "utils.Initiate Auto Reboot",
370 "lib_file_path": "utils.robot"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500371 },
372 # Run a "reboot" command on the OS_HOST.
373 "Host Reboot": {
374 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500375 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500376 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500377# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500378 "host": "^Running$",
379 "os_ping": "^1$",
380 "os_login": "^1$",
381 "os_run_cmd": "^1$"
382 },
383 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500384 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500385 "chassis": "^On$",
Michael Walsh01975fa2017-08-20 20:51:36 -0500386# "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500387 "host": "^Running$",
388 "os_ping": "^1$",
389 "os_login": "^1$",
390 "os_run_cmd": "^1$"
391 },
392 "bmc_reboot": 0,
393 "method_type": "keyword",
394 "method": "utils.Initiate OS Host Reboot",
395 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600396 }
397}