blob: 3539881c0fc5be49c6c46ec8d8b0719784b8c95e [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 Walsh4aa82202017-03-02 14:45:49 -06009 "boot_progress": "^Off$",
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 Walsh4aa82202017-03-02 14:45:49 -060015 "boot_progress": "^FW Progress, Starting OS$",
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$",
31 "boot_progress": "^Off$",
32 "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$",
37 "boot_progress": "^FW Progress, Starting OS$",
38 "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 Walshda2d43c2017-02-20 16:04:59 -060055 "chassis": "^On$",
Michael Walsh4aa82202017-03-02 14:45:49 -060056 "boot_progress": "^FW Progress, Starting OS$",
Michael Walshda2d43c2017-02-20 16:04:59 -060057 "host": "^Running$"
58 },
59 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050060 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060061 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060062 "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 Walsh10e7eb32017-03-21 11:25:58 -050077 "chassis": "^On$",
78 "boot_progress": "^FW Progress, Starting OS$",
79 "host": "^Running$"
Michael Walshda2d43c2017-02-20 16:04:59 -060080 },
81 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050082 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060083 "chassis": "^Off$",
Michael Walsh4aa82202017-03-02 14:45:49 -060084 "boot_progress": "^Off$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050085 "host": "^Off$",
86 "os_ping": "^0$",
87 "os_login": "^0$",
88 "os_run_cmd": "^0$"
Michael Walsh4aa82202017-03-02 14:45:49 -060089 },
90 "bmc_reboot": 0,
91 "method_type": "keyword",
Michael Walsh10e7eb32017-03-21 11:25:58 -050092 "method": "Run External IPMI Standard Command power off",
93 "lib_file_path": "ipmi_client.robot"
94 },
95 # Initiate a power soft using the IPMI interface.
96 "IPMI Power Soft": {
97 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050098 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050099 "chassis": "^On$",
100 "boot_progress": "^FW Progress, Starting OS$",
101 "host": "^Running$"
102 },
103 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500104 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500105 "chassis": "^Off$",
106 "boot_progress": "^Off$",
107 "host": "^Off$",
108 "os_ping": "^0$",
109 "os_login": "^0$",
110 "os_run_cmd": "^0$"
111 },
112 "bmc_reboot": 0,
113 "method_type": "keyword",
114 "method": "Run External IPMI Standard Command power soft",
115 "lib_file_path": "ipmi_client.robot"
Michael Walsh4aa82202017-03-02 14:45:49 -0600116 },
117 # Run a "shutdown" command on the OS_HOST.
118 "Host Power Off": {
119 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500120 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600121 "chassis": "^On$",
122 "boot_progress": "^FW Progress, Starting OS$",
123 "host": "^Running$",
124 "os_ping": "^1$",
125 "os_login": "^1$",
126 "os_run_cmd": "^1$"
127 },
128 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500129 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600130 "chassis": "^Off$",
131 "boot_progress": "^Off$",
132 "host": "^Off$",
133 "os_ping": "^0$",
134 "os_login": "^0$",
135 "os_run_cmd": "^0$"
136 },
137 "bmc_reboot": 0,
138 "method_type": "keyword",
139 "method": "utils.Initiate OS Host Power Off",
140 "lib_file_path": "utils.robot"
141 },
Michael Walsh10e7eb32017-03-21 11:25:58 -0500142
143 # OBMC re-boot boot types:
144
Michael Walshffbc3d12017-03-31 09:32:00 -0500145 # APOR - Auto Power On Restart - Note that this is functionally equivalent
146 # to 'PDU AC Cycle (run)'.
147 "APOR": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500148 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500149 "rest": "^1$",
150 "chassis": "^On$",
151 "boot_progress": "^FW Progress, Starting OS$",
152 "host": "^Running$",
153 "os_ping": "^1$",
154 "os_login": "^1$",
155 "os_run_cmd": "^1$"
156 },
157 "end": {
158 "rest": "^1$",
159 "chassis": "^On$",
160 "boot_progress": "^FW Progress, Starting OS$",
161 "host": "^Running$",
162 "os_ping": "^1$",
163 "os_login": "^1$",
164 "os_run_cmd": "^1$"
165 },
166 "bmc_reboot": 1,
167 "method_type": "keyword",
168 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
169 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
170 },
171 # Run a "reboot" on the OBMC while host is running.
172 "OBMC Reboot (run)": {
173 "start": {
174 "rest": "^1$",
175 "chassis": "^On$",
176 "boot_progress": "^FW Progress, Starting OS$",
177 "host": "^Running$",
178 "os_ping": "^1$",
179 "os_login": "^1$",
180 "os_run_cmd": "^1$"
181 },
182 "end": {
183 "rest": "^1$",
184 "chassis": "^On$",
185 "boot_progress": "^FW Progress, Starting OS$",
186 "host": "^Running$",
187 "os_ping": "^1$",
188 "os_login": "^1$",
189 "os_run_cmd": "^1$"
190 },
191 "bmc_reboot": 1,
192 "method_type": "keyword",
193 "method": "Open Connection And Log In ; Start Command /sbin/reboot"
194 },
195 # Run a "reboot" on the OBMC while host is off.
196 "OBMC Reboot (off)": {
197 "start": {
198 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500199 "chassis": "^Off$"
200 },
201 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500202 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500203 "chassis": "^Off$",
204 "boot_progress": "^Off$",
205 "host": "^Off$"
206 },
207 "bmc_reboot": 1,
208 "method_type": "keyword",
209 "method": "Open Connection And Log In ; Start Command /sbin/reboot"
210 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500211 # Cycle AC via the PDU while host is off.
212 "PDU AC Cycle (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500213 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500214 "rest": "^1$",
215 "chassis": "^On$",
216 "boot_progress": "^FW Progress, Starting OS$",
217 "host": "^Running$",
218 "os_ping": "^1$",
219 "os_login": "^1$",
220 "os_run_cmd": "^1$"
221 },
222 "end": {
223 "rest": "^1$",
224 "chassis": "^On$",
225 "boot_progress": "^FW Progress, Starting OS$",
226 "host": "^Running$",
227 "os_ping": "^1$",
228 "os_login": "^1$",
229 "os_run_cmd": "^1$"
230 },
231 "bmc_reboot": 1,
232 "method_type": "keyword",
233 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
234 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
235 },
236 # Cycle AC via the PDU while host is off.
237 "PDU AC Cycle (off)": {
238 "start": {
239 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500240 "chassis": "^Off$"
241 },
242 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500243 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500244 "chassis": "^Off$",
245 "boot_progress": "^Off$",
246 "host": "^Off$"
247 },
248 "bmc_reboot": 1,
249 "method_type": "keyword",
250 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
251 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
252 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500253 # Initiate an mc reset warm using the IPMI interface while chassis is
254 # powered on.
255 "IPMI MC Reset Warm (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500256 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500257 "rest": "^1$",
258 "chassis": "^On$",
259 "boot_progress": "^FW Progress, Starting OS$",
260 "host": "^Running$",
261 "os_ping": "^1$",
262 "os_login": "^1$",
263 "os_run_cmd": "^1$"
264 },
265 "end": {
266 "rest": "^1$",
267 "chassis": "^On$",
268 "boot_progress": "^FW Progress, Starting OS$",
269 "host": "^Running$",
270 "os_ping": "^1$",
271 "os_login": "^1$",
272 "os_run_cmd": "^1$"
273 },
274 "bmc_reboot": 1,
275 "method_type": "keyword",
276 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
277 "lib_file_path": "ipmi_client.robot:gen_print.py"
278 },
279 # Initiate an mc reset warm using the IPMI interface while chassis is
280 # powered off.
281 "IPMI MC Reset Warm (off)": {
282 "start": {
283 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500284 "chassis": "^Off$"
285 },
286 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500287 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500288 "chassis": "^Off$",
289 "boot_progress": "^Off$",
290 "host": "^Off$"
291 },
292 "bmc_reboot": 1,
293 "method_type": "keyword",
294 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
295 "lib_file_path": "ipmi_client.robot:gen_print.py"
296 },
297
298 # Host OS re-boot boot types:
299
300 # Initiate a power cycle using the IPMI interface (equivalent to off/on).
301 "IPMI Power Cycle": {
302 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500303 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500304 "chassis": "^On$",
305 "boot_progress": "^FW Progress, Starting OS$",
306 "host": "^Running$",
307 "os_ping": "^1$",
308 "os_login": "^1$",
309 "os_run_cmd": "^1$"
310 },
311 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500312 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500313 "chassis": "^On$",
314 "boot_progress": "^FW Progress, Starting OS$",
315 "host": "^Running$",
316 "os_ping": "^1$",
317 "os_login": "^1$",
318 "os_run_cmd": "^1$"
319 },
320 "bmc_reboot": 0,
321 "method_type": "keyword",
322 "method": "Run External IPMI Standard Command power cycle",
323 "lib_file_path": "ipmi_client.robot"
324 },
325 # Initiate a power reset using the IPMI interface (equivalent to off/on).
326 # Functionally equivalent to "IPMI Power Cycle".
327 "IPMI Power Reset": {
328 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500329 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500330 "chassis": "^On$",
331 "boot_progress": "^FW Progress, Starting OS$",
332 "host": "^Running$",
333 "os_ping": "^1$",
334 "os_login": "^1$",
335 "os_run_cmd": "^1$"
336 },
337 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500338 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500339 "chassis": "^On$",
340 "boot_progress": "^FW Progress, Starting OS$",
341 "host": "^Running$",
342 "os_ping": "^1$",
343 "os_login": "^1$",
344 "os_run_cmd": "^1$"
345 },
346 "bmc_reboot": 0,
347 "method_type": "keyword",
348 "method": "Run External IPMI Standard Command power reset",
349 "lib_file_path": "ipmi_client.robot"
350 },
Michael Walsh4aa82202017-03-02 14:45:49 -0600351 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
352 "Auto Reboot": {
353 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500354 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600355 "chassis": "^On$",
356 "boot_progress": "^FW Progress, Starting OS$",
357 "host": "^Running$",
358 "os_ping": "^1$",
359 "os_login": "^1$",
360 "os_run_cmd": "^1$"
361 },
362 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500363 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600364 "chassis": "^On$",
365 "boot_progress": "^FW Progress, Starting OS$",
366 "host": "^Running$",
367 "os_ping": "^1$",
368 "os_login": "^1$",
369 "os_run_cmd": "^1$"
370 },
371 "bmc_reboot": 0,
372 "method_type": "keyword",
373 "method": "utils.Initiate Auto Reboot",
374 "lib_file_path": "utils.robot"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500375 },
376 # Run a "reboot" command on the OS_HOST.
377 "Host Reboot": {
378 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500379 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500380 "chassis": "^On$",
381 "boot_progress": "^FW Progress, Starting OS$",
382 "host": "^Running$",
383 "os_ping": "^1$",
384 "os_login": "^1$",
385 "os_run_cmd": "^1$"
386 },
387 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500388 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500389 "chassis": "^On$",
390 "boot_progress": "^FW Progress, Starting OS$",
391 "host": "^Running$",
392 "os_ping": "^1$",
393 "os_login": "^1$",
394 "os_run_cmd": "^1$"
395 },
396 "bmc_reboot": 0,
397 "method_type": "keyword",
398 "method": "utils.Initiate OS Host Reboot",
399 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600400 }
401}