blob: 27f61feb78bd67e30d5e5fb169b5bdd820ad1fe4 [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 Walsh10e7eb32017-03-21 11:25:58 -050071 # Initiate a power off using the IPMI interface.
72 "IPMI Power Off": {
Michael Walshda2d43c2017-02-20 16:04:59 -060073 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050074 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050075 "chassis": "^On$"
Michael Walshda2d43c2017-02-20 16:04:59 -060076 },
77 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050078 "rest": "^1$",
Michael Walshda2d43c2017-02-20 16:04:59 -060079 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -050080 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050081 "host": "^Off$",
82 "os_ping": "^0$",
83 "os_login": "^0$",
84 "os_run_cmd": "^0$"
Michael Walsh4aa82202017-03-02 14:45:49 -060085 },
86 "bmc_reboot": 0,
87 "method_type": "keyword",
Michael Walsh10e7eb32017-03-21 11:25:58 -050088 "method": "Run External IPMI Standard Command power off",
89 "lib_file_path": "ipmi_client.robot"
90 },
91 # Initiate a power soft using the IPMI interface.
92 "IPMI Power Soft": {
93 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -050094 "rest": "^1$",
Michael Walshc213aa92017-04-12 16:00:33 -050095 "chassis": "^On$"
Michael Walsh10e7eb32017-03-21 11:25:58 -050096 },
97 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -050098 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -050099 "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$"
105 },
106 "bmc_reboot": 0,
107 "method_type": "keyword",
108 "method": "Run External IPMI Standard Command power soft",
109 "lib_file_path": "ipmi_client.robot"
Michael Walsh4aa82202017-03-02 14:45:49 -0600110 },
111 # Run a "shutdown" command on the OS_HOST.
112 "Host Power Off": {
113 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500114 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600115 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500116 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600117 "host": "^Running$",
118 "os_ping": "^1$",
119 "os_login": "^1$",
120 "os_run_cmd": "^1$"
121 },
122 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500123 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600124 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500125 "boot_progress": "^Off|Unspecified$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600126 "host": "^Off$",
127 "os_ping": "^0$",
128 "os_login": "^0$",
129 "os_run_cmd": "^0$"
130 },
131 "bmc_reboot": 0,
132 "method_type": "keyword",
133 "method": "utils.Initiate OS Host Power Off",
134 "lib_file_path": "utils.robot"
135 },
Michael Walsh10e7eb32017-03-21 11:25:58 -0500136
137 # OBMC re-boot boot types:
138
Michael Walshffbc3d12017-03-31 09:32:00 -0500139 # APOR - Auto Power On Restart - Note that this is functionally equivalent
140 # to 'PDU AC Cycle (run)'.
141 "APOR": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500142 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500143 "rest": "^1$",
144 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500145 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500146 "host": "^Running$",
147 "os_ping": "^1$",
148 "os_login": "^1$",
149 "os_run_cmd": "^1$"
150 },
151 "end": {
152 "rest": "^1$",
153 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500154 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500155 "host": "^Running$",
156 "os_ping": "^1$",
157 "os_login": "^1$",
158 "os_run_cmd": "^1$"
159 },
160 "bmc_reboot": 1,
161 "method_type": "keyword",
162 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
163 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
164 },
165 # Run a "reboot" on the OBMC while host is running.
166 "OBMC Reboot (run)": {
167 "start": {
168 "rest": "^1$",
169 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500170 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500171 "host": "^Running$",
172 "os_ping": "^1$",
173 "os_login": "^1$",
174 "os_run_cmd": "^1$"
175 },
176 "end": {
177 "rest": "^1$",
178 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500179 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500180 "host": "^Running$",
181 "os_ping": "^1$",
182 "os_login": "^1$",
183 "os_run_cmd": "^1$"
184 },
185 "bmc_reboot": 1,
186 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500187 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walshffbc3d12017-03-31 09:32:00 -0500188 },
189 # Run a "reboot" on the OBMC while host is off.
190 "OBMC Reboot (off)": {
191 "start": {
192 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500193 "chassis": "^Off$"
194 },
195 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500196 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500197 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500198 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500199 "host": "^Off$"
200 },
201 "bmc_reboot": 1,
202 "method_type": "keyword",
Michael Walshe53e47a2017-06-30 17:03:24 -0500203 "method": "BMC Execute Command /sbin/reboot fork=${1}"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500204 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500205 # Cycle AC via the PDU while host is off.
206 "PDU AC Cycle (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500207 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500208 "rest": "^1$",
209 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500210 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500211 "host": "^Running$",
212 "os_ping": "^1$",
213 "os_login": "^1$",
214 "os_run_cmd": "^1$"
215 },
216 "end": {
217 "rest": "^1$",
218 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500219 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500220 "host": "^Running$",
221 "os_ping": "^1$",
222 "os_login": "^1$",
223 "os_run_cmd": "^1$"
224 },
225 "bmc_reboot": 1,
226 "method_type": "keyword",
227 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
228 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
229 },
230 # Cycle AC via the PDU while host is off.
231 "PDU AC Cycle (off)": {
232 "start": {
233 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500234 "chassis": "^Off$"
235 },
236 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500237 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500238 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500239 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500240 "host": "^Off$"
241 },
242 "bmc_reboot": 1,
243 "method_type": "keyword",
244 "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle",
245 "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot"
246 },
Michael Walshffbc3d12017-03-31 09:32:00 -0500247 # Initiate an mc reset warm using the IPMI interface while chassis is
248 # powered on.
249 "IPMI MC Reset Warm (run)": {
Michael Walsh10e7eb32017-03-21 11:25:58 -0500250 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500251 "rest": "^1$",
252 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500253 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500254 "host": "^Running$",
255 "os_ping": "^1$",
256 "os_login": "^1$",
257 "os_run_cmd": "^1$"
258 },
259 "end": {
260 "rest": "^1$",
261 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500262 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walshffbc3d12017-03-31 09:32:00 -0500263 "host": "^Running$",
264 "os_ping": "^1$",
265 "os_login": "^1$",
266 "os_run_cmd": "^1$"
267 },
268 "bmc_reboot": 1,
269 "method_type": "keyword",
270 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
271 "lib_file_path": "ipmi_client.robot:gen_print.py"
272 },
273 # Initiate an mc reset warm using the IPMI interface while chassis is
274 # powered off.
275 "IPMI MC Reset Warm (off)": {
276 "start": {
277 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500278 "chassis": "^Off$"
279 },
280 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500281 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500282 "chassis": "^Off$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500283 "boot_progress": "^Off|Unspecified$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500284 "host": "^Off$"
285 },
286 "bmc_reboot": 1,
287 "method_type": "keyword",
288 "method": "Run External IPMI Standard Command mc reset warm ; Printn",
289 "lib_file_path": "ipmi_client.robot:gen_print.py"
290 },
291
292 # Host OS re-boot boot types:
293
294 # Initiate a power cycle using the IPMI interface (equivalent to off/on).
295 "IPMI Power Cycle": {
296 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500297 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500298 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500299 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500300 "host": "^Running$",
301 "os_ping": "^1$",
302 "os_login": "^1$",
303 "os_run_cmd": "^1$"
304 },
305 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500306 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500307 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500308 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500309 "host": "^Running$",
310 "os_ping": "^1$",
311 "os_login": "^1$",
312 "os_run_cmd": "^1$"
313 },
314 "bmc_reboot": 0,
315 "method_type": "keyword",
316 "method": "Run External IPMI Standard Command power cycle",
317 "lib_file_path": "ipmi_client.robot"
318 },
319 # Initiate a power reset using the IPMI interface (equivalent to off/on).
320 # Functionally equivalent to "IPMI Power Cycle".
321 "IPMI Power Reset": {
322 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500323 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500324 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500325 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500326 "host": "^Running$",
327 "os_ping": "^1$",
328 "os_login": "^1$",
329 "os_run_cmd": "^1$"
330 },
331 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500332 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500333 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500334 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500335 "host": "^Running$",
336 "os_ping": "^1$",
337 "os_login": "^1$",
338 "os_run_cmd": "^1$"
339 },
340 "bmc_reboot": 0,
341 "method_type": "keyword",
342 "method": "Run External IPMI Standard Command power reset",
343 "lib_file_path": "ipmi_client.robot"
344 },
Michael Walsh4aa82202017-03-02 14:45:49 -0600345 # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state.
346 "Auto Reboot": {
347 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500348 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600349 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500350 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600351 "host": "^Running$",
352 "os_ping": "^1$",
353 "os_login": "^1$",
354 "os_run_cmd": "^1$"
355 },
356 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500357 "rest": "^1$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600358 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500359 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh4aa82202017-03-02 14:45:49 -0600360 "host": "^Running$",
361 "os_ping": "^1$",
362 "os_login": "^1$",
363 "os_run_cmd": "^1$"
364 },
365 "bmc_reboot": 0,
366 "method_type": "keyword",
367 "method": "utils.Initiate Auto Reboot",
368 "lib_file_path": "utils.robot"
Michael Walsh10e7eb32017-03-21 11:25:58 -0500369 },
370 # Run a "reboot" command on the OS_HOST.
371 "Host Reboot": {
372 "start": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500373 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500374 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500375 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500376 "host": "^Running$",
377 "os_ping": "^1$",
378 "os_login": "^1$",
379 "os_run_cmd": "^1$"
380 },
381 "end": {
Michael Walshffbc3d12017-03-31 09:32:00 -0500382 "rest": "^1$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500383 "chassis": "^On$",
Michael Walsh22b9fe62017-09-01 14:57:31 -0500384 "boot_progress": "^FW Progress, Starting OS|OSStart$",
Michael Walsh10e7eb32017-03-21 11:25:58 -0500385 "host": "^Running$",
386 "os_ping": "^1$",
387 "os_login": "^1$",
388 "os_run_cmd": "^1$"
389 },
390 "bmc_reboot": 0,
391 "method_type": "keyword",
392 "method": "utils.Initiate OS Host Reboot",
393 "lib_file_path": "utils.robot"
Michael Walshda2d43c2017-02-20 16:04:59 -0600394 }
395}