blob: 878e5618d37642e4e522f0e13554378ba517a199 [file] [log] [blame]
George Keishing5e870cd2016-08-24 10:05:47 -05001*** Settings ***
2Documentation 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 Keishingdc5aa58e92016-09-27 01:35:11 -050011... - Issue poweroff
12... - Prepare for Update
13... - Force reboot
14... - Wait for BMC to come online clean
George Keishing1b150202016-09-29 08:51:58 -050015... - Wait for BMC_READY state
George Keishing5e870cd2016-08-24 10:05:47 -050016... - 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
23Resource code_update_utils.robot
24
25*** Variables ***
26
27${FILE_PATH} ${EMPTY}
28
29*** Test cases ***
30
31Initiate Code update BMC
32 [Documentation] BMC code update process initiation
33
34 Check If File Exist ${FILE_PATH}
35 System Readiness Test
George Keishing50787fc2016-09-21 03:44:26 -050036 ${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 Keishingdc5aa58e92016-09-27 01:35:11 -050042 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 Keishing5e870cd2016-08-24 10:05:47 -050047
George Keishing1b150202016-09-29 08:51:58 -050048 Wait Until Keyword Succeeds
49 ... 10 min 10 sec Verify BMC State BMC_READY
50
George Keishing5e870cd2016-08-24 10:05:47 -050051 Preserve BMC Network Setting
52 SCP Tar Image File to BMC ${FILE_PATH}
53
54 Activate BMC flash image
55
George Keishing5e870cd2016-08-24 10:05:47 -050056 # TODO: openbmc/openbmc#519
George Keishingb3700812016-08-31 03:03:30 -050057 Run Keyword And Ignore Error Trigger Warm Reset
George Keishing5e870cd2016-08-24 10:05:47 -050058 ${session_active}= Check If warmReset is Initiated
59 Run Keyword If '${session_active}' == '${True}'
60 ... Trigger Warm Reset via Reboot
61
George Keishingc4d3dc02016-09-19 03:45:55 -050062 Check If BMC is Up 30 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050063 Sleep 1 min
64 Validate BMC Version