blob: 29566fe7ab6a2b8b7cb6f54d0edaf2f1dc24a8de [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 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
43 # TODO: openbmc/openbmc#519
44 Trigger Warm Reset via Reboot
45 Check If BMC is Up 5 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050046
47 Preserve BMC Network Setting
48 SCP Tar Image File to BMC ${FILE_PATH}
49
50 Activate BMC flash image
51
George Keishing5e870cd2016-08-24 10:05:47 -050052 # TODO: openbmc/openbmc#519
George Keishingb3700812016-08-31 03:03:30 -050053 Run Keyword And Ignore Error Trigger Warm Reset
George Keishing5e870cd2016-08-24 10:05:47 -050054 ${session_active}= Check If warmReset is Initiated
55 Run Keyword If '${session_active}' == '${True}'
56 ... Trigger Warm Reset via Reboot
57
George Keishingc4d3dc02016-09-19 03:45:55 -050058 Check If BMC is Up 30 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050059 Sleep 1 min
60 Validate BMC Version