George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Trigger code update to a target BMC. |
| 3 | ... Execution Method : |
| 4 | ... python -m robot -v OPENBMC_HOST:<hostname> |
| 5 | ... -v FILE_PATH:<path/*all.tar> update_bmc.robot |
| 6 | ... |
| 7 | ... Code update method BMC using REST |
| 8 | ... Update work flow sequence: |
| 9 | ... - User input BMC File existence check |
| 10 | ... - Ping Test and REST authentication |
George Keishing | dc5aa58e9 | 2016-09-27 01:35:11 -0500 | [diff] [blame] | 11 | ... - Issue poweroff |
| 12 | ... - Prepare for Update |
| 13 | ... - Force reboot |
| 14 | ... - Wait for BMC to come online clean |
George Keishing | 1b15020 | 2016-09-29 08:51:58 -0500 | [diff] [blame] | 15 | ... - Wait for BMC_READY state |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 16 | ... - Apply preserve BMC Network setting |
| 17 | ... - SCP image to BMC |
| 18 | ... - Activate the flash image |
| 19 | ... - Warm Reset BMC to activate code |
| 20 | ... - Wait for BMC to come online time out 30 minutes |
| 21 | ... - Version check post update |
| 22 | |
| 23 | Resource code_update_utils.robot |
| 24 | |
| 25 | *** Variables *** |
| 26 | |
| 27 | ${FILE_PATH} ${EMPTY} |
| 28 | |
| 29 | *** Test cases *** |
| 30 | |
| 31 | Initiate Code update BMC |
| 32 | [Documentation] BMC code update process initiation |
| 33 | |
| 34 | Check If File Exist ${FILE_PATH} |
| 35 | System Readiness Test |
George Keishing | 50787fc | 2016-09-21 03:44:26 -0500 | [diff] [blame] | 36 | ${status}= Run Keyword and Return Status |
| 37 | ... Validate BMC Version before |
| 38 | |
| 39 | Run Keyword if '${status}' == '${False}' |
| 40 | ... Pass Execution Same Driver version installed |
| 41 | |
George Keishing | dc5aa58e9 | 2016-09-27 01:35:11 -0500 | [diff] [blame] | 42 | Initiate Power Off |
| 43 | Prepare For Update |
| 44 | # TODO: openbmc/openbmc#519 |
| 45 | Trigger Warm Reset via Reboot |
| 46 | Check If BMC is Up 5 min 10 sec |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 47 | |
George Keishing | 1b15020 | 2016-09-29 08:51:58 -0500 | [diff] [blame] | 48 | Wait Until Keyword Succeeds |
| 49 | ... 10 min 10 sec Verify BMC State BMC_READY |
| 50 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 51 | Preserve BMC Network Setting |
| 52 | SCP Tar Image File to BMC ${FILE_PATH} |
| 53 | |
| 54 | Activate BMC flash image |
| 55 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 56 | # TODO: openbmc/openbmc#519 |
George Keishing | b370081 | 2016-08-31 03:03:30 -0500 | [diff] [blame] | 57 | Run Keyword And Ignore Error Trigger Warm Reset |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 58 | ${session_active}= Check If warmReset is Initiated |
| 59 | Run Keyword If '${session_active}' == '${True}' |
| 60 | ... Trigger Warm Reset via Reboot |
| 61 | |
George Keishing | c4d3dc0 | 2016-09-19 03:45:55 -0500 | [diff] [blame] | 62 | Check If BMC is Up 30 min 10 sec |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 63 | Sleep 1 min |
| 64 | Validate BMC Version |