blob: 461bddb6658298b870f6a0b7c0bb40dfd9098c07 [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
George Keishingdc5aa58e92016-09-27 01:35:11 -050013... - Wait for BMC to come online clean
George Keishing1b150202016-09-29 08:51:58 -050014... - Wait for BMC_READY state
George Keishing5e870cd2016-08-24 10:05:47 -050015... - Apply preserve BMC Network setting
16... - SCP image to BMC
17... - Activate the flash image
18... - Warm Reset BMC to activate code
19... - Wait for BMC to come online time out 30 minutes
20... - Version check post update
21
22Resource code_update_utils.robot
23
24*** Variables ***
25
26${FILE_PATH} ${EMPTY}
27
28*** Test cases ***
29
30Initiate Code update BMC
31 [Documentation] BMC code update process initiation
32
33 Check If File Exist ${FILE_PATH}
34 System Readiness Test
George Keishing50787fc2016-09-21 03:44:26 -050035 ${status}= Run Keyword and Return Status
36 ... Validate BMC Version before
37
38 Run Keyword if '${status}' == '${False}'
39 ... Pass Execution Same Driver version installed
40
George Keishingdc5aa58e92016-09-27 01:35:11 -050041 Initiate Power Off
42 Prepare For Update
Rahul Maheshwarid0fd8832016-10-14 03:15:51 -050043
44 # Wait time is increased temporary to 10 mins due
45 # to openbmc/openbmc#673
46 Check If BMC is Up 10 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