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 |
Rahul Maheshwari | d0fd883 | 2016-10-14 03:15:51 -0500 | [diff] [blame] | 46 | |
| 47 | # Wait time is increased temporary to 10 mins due |
| 48 | # to openbmc/openbmc#673 |
| 49 | Check If BMC is Up 10 min 10 sec |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 50 | |
George Keishing | 1b15020 | 2016-09-29 08:51:58 -0500 | [diff] [blame] | 51 | Wait Until Keyword Succeeds |
| 52 | ... 10 min 10 sec Verify BMC State BMC_READY |
| 53 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 54 | Preserve BMC Network Setting |
| 55 | SCP Tar Image File to BMC ${FILE_PATH} |
| 56 | |
| 57 | Activate BMC flash image |
| 58 | |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 59 | # TODO: openbmc/openbmc#519 |
George Keishing | b370081 | 2016-08-31 03:03:30 -0500 | [diff] [blame] | 60 | Run Keyword And Ignore Error Trigger Warm Reset |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 61 | ${session_active}= Check If warmReset is Initiated |
| 62 | Run Keyword If '${session_active}' == '${True}' |
| 63 | ... Trigger Warm Reset via Reboot |
| 64 | |
George Keishing | c4d3dc0 | 2016-09-19 03:45:55 -0500 | [diff] [blame] | 65 | Check If BMC is Up 30 min 10 sec |
George Keishing | 5e870cd | 2016-08-24 10:05:47 -0500 | [diff] [blame] | 66 | Sleep 1 min |
| 67 | Validate BMC Version |