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 |
George Keishing | 50787fc | 2016-09-21 03:44:26 -0500 | [diff] [blame] | 19 | Resource ../../lib/boot/boot_resource_master.robot |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 20 | |
| 21 | *** Variables *** |
| 22 | |
| 23 | ${FILE_PATH} ${EMPTY} |
| 24 | |
| 25 | *** Test cases *** |
| 26 | |
| 27 | Initiate Code update BMC |
| 28 | [Documentation] BMC code update process initiation |
| 29 | |
| 30 | Check If File Exist ${FILE_PATH} |
| 31 | System Readiness Test |
George Keishing | 50787fc | 2016-09-21 03:44:26 -0500 | [diff] [blame] | 32 | ${status}= Run Keyword and Return Status |
| 33 | ... Validate BMC Version before |
| 34 | |
| 35 | Run Keyword if '${status}' == '${False}' |
| 36 | ... Pass Execution Same Driver version installed |
| 37 | |
| 38 | BMC Power Off |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 39 | |
| 40 | Preserve BMC Network Setting |
| 41 | SCP Tar Image File to BMC ${FILE_PATH} |
| 42 | |
| 43 | Activate BMC flash image |
| 44 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 45 | # TODO: openbmc/openbmc#519 |
George Keishing | b370081 | 2016-08-31 03:03:30 -0500 | [diff] [blame] | 46 | Run Keyword And Ignore Error Trigger Warm Reset |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 47 | ${session_active}= Check If warmReset is Initiated |
| 48 | Run Keyword If '${session_active}' == '${True}' |
| 49 | ... Trigger Warm Reset via Reboot |
| 50 | |
George Keishing | c4d3dc0 | 2016-09-19 03:45:55 -0500 | [diff] [blame] | 51 | Check If BMC is Up 30 min 10 sec |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 52 | Sleep 1 min |
| 53 | Validate BMC Version |