Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 1 | { |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 2 | # Power on boot types: |
| 3 | |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 4 | # Initiate a power on using the REST API interface. |
| 5 | "REST Power On": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 6 | "start": { |
| 7 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 8 | "boot_progress": "^Off$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 9 | "host": "^Off$" |
| 10 | }, |
| 11 | "end": { |
| 12 | "chassis": "^On$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 13 | "boot_progress": "^FW Progress, Starting OS$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 14 | "host": "^Running$", |
| 15 | "os_ping": "^1$", |
| 16 | "os_login": "^1$", |
| 17 | "os_run_cmd": "^1$" |
| 18 | }, |
| 19 | "bmc_reboot": 0, |
| 20 | "method_type": "keyword", |
Michael Walsh | b099e62 | 2017-03-21 14:51:47 -0500 | [diff] [blame] | 21 | "method": "Initiate Host Boot wait=${0}", |
| 22 | "lib_file_path": "state_manager.robot" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 23 | }, |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 24 | # Initiate a power on using the IPMI interface. |
| 25 | "IPMI Power On": { |
| 26 | "start": { |
| 27 | "chassis": "^Off$", |
| 28 | "boot_progress": "^Off$", |
| 29 | "host": "^Off$" |
| 30 | }, |
| 31 | "end": { |
| 32 | "chassis": "^On$", |
| 33 | "boot_progress": "^FW Progress, Starting OS$", |
| 34 | "host": "^Running$", |
| 35 | "os_ping": "^1$", |
| 36 | "os_login": "^1$", |
| 37 | "os_run_cmd": "^1$" |
| 38 | }, |
| 39 | "bmc_reboot": 0, |
| 40 | "method_type": "keyword", |
| 41 | "method": "Run External IPMI Standard Command power on", |
| 42 | "lib_file_path": "ipmi_client.robot" |
| 43 | }, |
| 44 | |
| 45 | # Power off boot types: |
| 46 | |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 47 | # Initiate a power off using the REST API interface. |
| 48 | "REST Power Off": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 49 | "start": { |
| 50 | "chassis": "^On$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 51 | "boot_progress": "^FW Progress, Starting OS$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 52 | "host": "^Running$" |
| 53 | }, |
| 54 | "end": { |
| 55 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 56 | "boot_progress": "^Off$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 57 | "host": "^Off$", |
| 58 | "os_ping": "^0$", |
| 59 | "os_login": "^0$", |
| 60 | "os_run_cmd": "^0$" |
| 61 | }, |
| 62 | "bmc_reboot": 0, |
| 63 | "method_type": "keyword", |
Michael Walsh | b099e62 | 2017-03-21 14:51:47 -0500 | [diff] [blame] | 64 | "method": "Initiate Host PowerOff wait=${0}", |
| 65 | "lib_file_path": "state_manager.robot" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 66 | }, |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 67 | # Initiate a power off using the IPMI interface. |
| 68 | "IPMI Power Off": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 69 | "start": { |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 70 | "chassis": "^On$", |
| 71 | "boot_progress": "^FW Progress, Starting OS$", |
| 72 | "host": "^Running$" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 73 | }, |
| 74 | "end": { |
| 75 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 76 | "boot_progress": "^Off$", |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 77 | "host": "^Off$", |
| 78 | "os_ping": "^0$", |
| 79 | "os_login": "^0$", |
| 80 | "os_run_cmd": "^0$" |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 81 | }, |
| 82 | "bmc_reboot": 0, |
| 83 | "method_type": "keyword", |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 84 | "method": "Run External IPMI Standard Command power off", |
| 85 | "lib_file_path": "ipmi_client.robot" |
| 86 | }, |
| 87 | # Initiate a power soft using the IPMI interface. |
| 88 | "IPMI Power Soft": { |
| 89 | "start": { |
| 90 | "chassis": "^On$", |
| 91 | "boot_progress": "^FW Progress, Starting OS$", |
| 92 | "host": "^Running$" |
| 93 | }, |
| 94 | "end": { |
| 95 | "chassis": "^Off$", |
| 96 | "boot_progress": "^Off$", |
| 97 | "host": "^Off$", |
| 98 | "os_ping": "^0$", |
| 99 | "os_login": "^0$", |
| 100 | "os_run_cmd": "^0$" |
| 101 | }, |
| 102 | "bmc_reboot": 0, |
| 103 | "method_type": "keyword", |
| 104 | "method": "Run External IPMI Standard Command power soft", |
| 105 | "lib_file_path": "ipmi_client.robot" |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 106 | }, |
| 107 | # Run a "shutdown" command on the OS_HOST. |
| 108 | "Host Power Off": { |
| 109 | "start": { |
| 110 | "chassis": "^On$", |
| 111 | "boot_progress": "^FW Progress, Starting OS$", |
| 112 | "host": "^Running$", |
| 113 | "os_ping": "^1$", |
| 114 | "os_login": "^1$", |
| 115 | "os_run_cmd": "^1$" |
| 116 | }, |
| 117 | "end": { |
| 118 | "chassis": "^Off$", |
| 119 | "boot_progress": "^Off$", |
| 120 | "host": "^Off$", |
| 121 | "os_ping": "^0$", |
| 122 | "os_login": "^0$", |
| 123 | "os_run_cmd": "^0$" |
| 124 | }, |
| 125 | "bmc_reboot": 0, |
| 126 | "method_type": "keyword", |
| 127 | "method": "utils.Initiate OS Host Power Off", |
| 128 | "lib_file_path": "utils.robot" |
| 129 | }, |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 130 | |
| 131 | # OBMC re-boot boot types: |
| 132 | |
| 133 | # Run a "reboot" on the OBMC. |
| 134 | "OBMC Reboot": { |
| 135 | "start": { |
| 136 | "chassis": "^Off$" |
| 137 | }, |
| 138 | "end": { |
| 139 | "chassis": "^Off$", |
| 140 | "boot_progress": "^Off$", |
| 141 | "host": "^Off$" |
| 142 | }, |
| 143 | "bmc_reboot": 1, |
| 144 | "method_type": "keyword", |
| 145 | "method": "Open Connection And Log In ; Start Command /sbin/reboot" |
| 146 | }, |
| 147 | # Cycle AC via the PDU. |
| 148 | "PDU AC Cycle": { |
| 149 | "start": { |
| 150 | "chassis": "^Off$" |
| 151 | }, |
| 152 | "end": { |
| 153 | "chassis": "^Off$", |
| 154 | "boot_progress": "^Off$", |
| 155 | "host": "^Off$" |
| 156 | }, |
| 157 | "bmc_reboot": 1, |
| 158 | "method_type": "keyword", |
| 159 | "method": "Set Global Variable ${PDU_TYPE} pdu ; Set Global Variable ${PDU_IP} ${PDU_HOST} ; PDU Power Cycle", |
| 160 | "lib_file_path": "pdu/pdu.robot:pdu/synaccess.robot" |
| 161 | }, |
| 162 | # Initiate an mc reset warm using the IPMI interface. |
| 163 | "IPMI MC Reset Warm": { |
| 164 | "start": { |
| 165 | "chassis": "^Off$" |
| 166 | }, |
| 167 | "end": { |
| 168 | "chassis": "^Off$", |
| 169 | "boot_progress": "^Off$", |
| 170 | "host": "^Off$" |
| 171 | }, |
| 172 | "bmc_reboot": 1, |
| 173 | "method_type": "keyword", |
| 174 | "method": "Run External IPMI Standard Command mc reset warm ; Printn", |
| 175 | "lib_file_path": "ipmi_client.robot:gen_print.py" |
| 176 | }, |
| 177 | |
| 178 | # Host OS re-boot boot types: |
| 179 | |
| 180 | # Initiate a power cycle using the IPMI interface (equivalent to off/on). |
| 181 | "IPMI Power Cycle": { |
| 182 | "start": { |
| 183 | "chassis": "^On$", |
| 184 | "boot_progress": "^FW Progress, Starting OS$", |
| 185 | "host": "^Running$", |
| 186 | "os_ping": "^1$", |
| 187 | "os_login": "^1$", |
| 188 | "os_run_cmd": "^1$" |
| 189 | }, |
| 190 | "end": { |
| 191 | "chassis": "^On$", |
| 192 | "boot_progress": "^FW Progress, Starting OS$", |
| 193 | "host": "^Running$", |
| 194 | "os_ping": "^1$", |
| 195 | "os_login": "^1$", |
| 196 | "os_run_cmd": "^1$" |
| 197 | }, |
| 198 | "bmc_reboot": 0, |
| 199 | "method_type": "keyword", |
| 200 | "method": "Run External IPMI Standard Command power cycle", |
| 201 | "lib_file_path": "ipmi_client.robot" |
| 202 | }, |
| 203 | # Initiate a power reset using the IPMI interface (equivalent to off/on). |
| 204 | # Functionally equivalent to "IPMI Power Cycle". |
| 205 | "IPMI Power Reset": { |
| 206 | "start": { |
| 207 | "chassis": "^On$", |
| 208 | "boot_progress": "^FW Progress, Starting OS$", |
| 209 | "host": "^Running$", |
| 210 | "os_ping": "^1$", |
| 211 | "os_login": "^1$", |
| 212 | "os_run_cmd": "^1$" |
| 213 | }, |
| 214 | "end": { |
| 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 | "bmc_reboot": 0, |
| 223 | "method_type": "keyword", |
| 224 | "method": "Run External IPMI Standard Command power reset", |
| 225 | "lib_file_path": "ipmi_client.robot" |
| 226 | }, |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 227 | # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state. |
| 228 | "Auto Reboot": { |
| 229 | "start": { |
| 230 | "chassis": "^On$", |
| 231 | "boot_progress": "^FW Progress, Starting OS$", |
| 232 | "host": "^Running$", |
| 233 | "os_ping": "^1$", |
| 234 | "os_login": "^1$", |
| 235 | "os_run_cmd": "^1$" |
| 236 | }, |
| 237 | "end": { |
| 238 | "chassis": "^On$", |
| 239 | "boot_progress": "^FW Progress, Starting OS$", |
| 240 | "host": "^Running$", |
| 241 | "os_ping": "^1$", |
| 242 | "os_login": "^1$", |
| 243 | "os_run_cmd": "^1$" |
| 244 | }, |
| 245 | "bmc_reboot": 0, |
| 246 | "method_type": "keyword", |
| 247 | "method": "utils.Initiate Auto Reboot", |
| 248 | "lib_file_path": "utils.robot" |
Michael Walsh | 10e7eb3 | 2017-03-21 11:25:58 -0500 | [diff] [blame] | 249 | }, |
| 250 | # Run a "reboot" command on the OS_HOST. |
| 251 | "Host Reboot": { |
| 252 | "start": { |
| 253 | "chassis": "^On$", |
| 254 | "boot_progress": "^FW Progress, Starting OS$", |
| 255 | "host": "^Running$", |
| 256 | "os_ping": "^1$", |
| 257 | "os_login": "^1$", |
| 258 | "os_run_cmd": "^1$" |
| 259 | }, |
| 260 | "end": { |
| 261 | "chassis": "^On$", |
| 262 | "boot_progress": "^FW Progress, Starting OS$", |
| 263 | "host": "^Running$", |
| 264 | "os_ping": "^1$", |
| 265 | "os_login": "^1$", |
| 266 | "os_run_cmd": "^1$" |
| 267 | }, |
| 268 | "bmc_reboot": 0, |
| 269 | "method_type": "keyword", |
| 270 | "method": "utils.Initiate OS Host Reboot", |
| 271 | "lib_file_path": "utils.robot" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 272 | } |
| 273 | } |