Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 1 | # 2017/02/20 Note: Commenting out 'boot_progress' requirements until they are working in product code. |
| 2 | # TODO: Uncomment the boot_progress lines when support is re-introduced. |
| 3 | { |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 4 | # Note: "IPMI Power On" will be added soon. |
| 5 | # Initiate a power on using the REST API interface. |
| 6 | "REST Power On": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 7 | "start": { |
| 8 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 9 | "boot_progress": "^Off$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 10 | "host": "^Off$" |
| 11 | }, |
| 12 | "end": { |
| 13 | "chassis": "^On$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 14 | "boot_progress": "^FW Progress, Starting OS$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 15 | "host": "^Running$", |
| 16 | "os_ping": "^1$", |
| 17 | "os_login": "^1$", |
| 18 | "os_run_cmd": "^1$" |
| 19 | }, |
| 20 | "bmc_reboot": 0, |
| 21 | "method_type": "keyword", |
| 22 | "method": "Initiate Power On wait=${0}" |
| 23 | }, |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 24 | # Initiate a power off using the REST API interface. |
| 25 | "REST Power Off": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 26 | "start": { |
| 27 | "chassis": "^On$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 28 | "boot_progress": "^FW Progress, Starting OS$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 29 | "host": "^Running$" |
| 30 | }, |
| 31 | "end": { |
| 32 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 33 | "boot_progress": "^Off$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 34 | "host": "^Off$", |
| 35 | "os_ping": "^0$", |
| 36 | "os_login": "^0$", |
| 37 | "os_run_cmd": "^0$" |
| 38 | }, |
| 39 | "bmc_reboot": 0, |
| 40 | "method_type": "keyword", |
| 41 | "method": "Initiate Power Off" |
| 42 | }, |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 43 | # Run a "reboot" on the OBMC.. |
| 44 | "OBMC Reboot": { |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 45 | "start": { |
Michael Walsh | 2a21ad8 | 2017-03-10 16:12:48 -0600 | [diff] [blame] | 46 | "chassis": "^Off$" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 47 | }, |
| 48 | "end": { |
| 49 | "chassis": "^Off$", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 50 | "boot_progress": "^Off$", |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 51 | "host": "^Off$" |
| 52 | }, |
| 53 | "bmc_reboot": 1, |
| 54 | "method_type": "keyword", |
Michael Walsh | 4aa8220 | 2017-03-02 14:45:49 -0600 | [diff] [blame] | 55 | "method": "Open Connection And Log In ; Start Command /sbin/reboot" |
| 56 | }, |
| 57 | # Run a "reboot" command on the OS_HOST. |
| 58 | "Host Reboot": { |
| 59 | "start": { |
| 60 | "chassis": "^On$", |
| 61 | "boot_progress": "^FW Progress, Starting OS$", |
| 62 | "host": "^Running$", |
| 63 | "os_ping": "^1$", |
| 64 | "os_login": "^1$", |
| 65 | "os_run_cmd": "^1$" |
| 66 | }, |
| 67 | "end": { |
| 68 | "chassis": "^On$", |
| 69 | "boot_progress": "^FW Progress, Starting OS$", |
| 70 | "host": "^Running$", |
| 71 | "os_ping": "^1$", |
| 72 | "os_login": "^1$", |
| 73 | "os_run_cmd": "^1$" |
| 74 | }, |
| 75 | "bmc_reboot": 0, |
| 76 | "method_type": "keyword", |
| 77 | "method": "utils.Initiate OS Host Reboot", |
| 78 | "lib_file_path": "utils.robot" |
| 79 | }, |
| 80 | # Run a "shutdown" command on the OS_HOST. |
| 81 | "Host Power Off": { |
| 82 | "start": { |
| 83 | "chassis": "^On$", |
| 84 | "boot_progress": "^FW Progress, Starting OS$", |
| 85 | "host": "^Running$", |
| 86 | "os_ping": "^1$", |
| 87 | "os_login": "^1$", |
| 88 | "os_run_cmd": "^1$" |
| 89 | }, |
| 90 | "end": { |
| 91 | "chassis": "^Off$", |
| 92 | "boot_progress": "^Off$", |
| 93 | "host": "^Off$", |
| 94 | "os_ping": "^0$", |
| 95 | "os_login": "^0$", |
| 96 | "os_run_cmd": "^0$" |
| 97 | }, |
| 98 | "bmc_reboot": 0, |
| 99 | "method_type": "keyword", |
| 100 | "method": "utils.Initiate OS Host Power Off", |
| 101 | "lib_file_path": "utils.robot" |
| 102 | }, |
| 103 | # Do an auto reboot by setting auto reboot to "yes" and going to quiesce state. |
| 104 | "Auto Reboot": { |
| 105 | "start": { |
| 106 | "chassis": "^On$", |
| 107 | "boot_progress": "^FW Progress, Starting OS$", |
| 108 | "host": "^Running$", |
| 109 | "os_ping": "^1$", |
| 110 | "os_login": "^1$", |
| 111 | "os_run_cmd": "^1$" |
| 112 | }, |
| 113 | "end": { |
| 114 | "chassis": "^On$", |
| 115 | "boot_progress": "^FW Progress, Starting OS$", |
| 116 | "host": "^Running$", |
| 117 | "os_ping": "^1$", |
| 118 | "os_login": "^1$", |
| 119 | "os_run_cmd": "^1$" |
| 120 | }, |
| 121 | "bmc_reboot": 0, |
| 122 | "method_type": "keyword", |
| 123 | "method": "utils.Initiate Auto Reboot", |
| 124 | "lib_file_path": "utils.robot" |
Michael Walsh | da2d43c | 2017-02-20 16:04:59 -0600 | [diff] [blame] | 125 | } |
| 126 | } |