blob: 9c479ab4ea7ac107774e27eee2e30bae29be9df2 [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
Rahul Maheshwarid0fd8832016-10-14 03:15:51 -050046
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 Keishing5e870cd2016-08-24 10:05:47 -050050
George Keishing1b150202016-09-29 08:51:58 -050051 Wait Until Keyword Succeeds
52 ... 10 min 10 sec Verify BMC State BMC_READY
53
George Keishing5e870cd2016-08-24 10:05:47 -050054 Preserve BMC Network Setting
55 SCP Tar Image File to BMC ${FILE_PATH}
56
57 Activate BMC flash image
58
George Keishing5e870cd2016-08-24 10:05:47 -050059 # TODO: openbmc/openbmc#519
George Keishingb3700812016-08-31 03:03:30 -050060 Run Keyword And Ignore Error Trigger Warm Reset
George Keishing5e870cd2016-08-24 10:05:47 -050061 ${session_active}= Check If warmReset is Initiated
62 Run Keyword If '${session_active}' == '${True}'
63 ... Trigger Warm Reset via Reboot
64
George Keishingc4d3dc02016-09-19 03:45:55 -050065 Check If BMC is Up 30 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050066 Sleep 1 min
67 Validate BMC Version