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 |
| 11 | ... - Apply preserve BMC Network setting |
| 12 | ... - SCP image to BMC |
| 13 | ... - Activate the flash image |
| 14 | ... - Warm Reset BMC to activate code |
| 15 | ... - Wait for BMC to come online time out 30 minutes |
| 16 | ... - Version check post update |
| 17 | |
| 18 | Resource code_update_utils.robot |
| 19 | |
| 20 | *** Variables *** |
| 21 | |
| 22 | ${FILE_PATH} ${EMPTY} |
| 23 | |
| 24 | *** Test cases *** |
| 25 | |
| 26 | Initiate Code update BMC |
| 27 | [Documentation] BMC code update process initiation |
| 28 | |
| 29 | Check If File Exist ${FILE_PATH} |
| 30 | System Readiness Test |
| 31 | Validate BMC Version before |
| 32 | |
| 33 | Preserve BMC Network Setting |
| 34 | SCP Tar Image File to BMC ${FILE_PATH} |
| 35 | |
| 36 | Activate BMC flash image |
| 37 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 38 | # TODO: openbmc/openbmc#519 |
George Keishing | b370081 | 2016-08-31 03:03:30 -0500 | [diff] [blame] | 39 | Run Keyword And Ignore Error Trigger Warm Reset |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 40 | ${session_active}= Check If warmReset is Initiated |
| 41 | Run Keyword If '${session_active}' == '${True}' |
| 42 | ... Trigger Warm Reset via Reboot |
| 43 | |
George Keishing | b370081 | 2016-08-31 03:03:30 -0500 | [diff] [blame] | 44 | Wait Until Keyword Succeeds |
| 45 | ... 30 min 10 sec Check If BMC is Up |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 46 | Sleep 1 min |
| 47 | Validate BMC Version |