blob: b2d7692cbd4ba8a8964bb8bbf73f96ec7e3b022e [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
11... - Apply preserve BMC Network setting
12... - SCP image to BMC
13... - Activate the flash image
14... - Warm Reset BMC to activate code
15... - Wait for BMC to come online time out 30 minutes
16... - Version check post update
17
18Resource code_update_utils.robot
George Keishing50787fc2016-09-21 03:44:26 -050019Resource ../../lib/boot/boot_resource_master.robot
George Keishing5e870cd2016-08-24 10:05:47 -050020
21*** Variables ***
22
23${FILE_PATH} ${EMPTY}
24
25*** Test cases ***
26
27Initiate Code update BMC
28 [Documentation] BMC code update process initiation
29
30 Check If File Exist ${FILE_PATH}
31 System Readiness Test
George Keishing50787fc2016-09-21 03:44:26 -050032 ${status}= Run Keyword and Return Status
33 ... Validate BMC Version before
34
35 Run Keyword if '${status}' == '${False}'
36 ... Pass Execution Same Driver version installed
37
38 BMC Power Off
George Keishing5e870cd2016-08-24 10:05:47 -050039
40 Preserve BMC Network Setting
41 SCP Tar Image File to BMC ${FILE_PATH}
42
43 Activate BMC flash image
44
George Keishing5e870cd2016-08-24 10:05:47 -050045 # TODO: openbmc/openbmc#519
George Keishingb3700812016-08-31 03:03:30 -050046 Run Keyword And Ignore Error Trigger Warm Reset
George Keishing5e870cd2016-08-24 10:05:47 -050047 ${session_active}= Check If warmReset is Initiated
48 Run Keyword If '${session_active}' == '${True}'
49 ... Trigger Warm Reset via Reboot
50
George Keishingc4d3dc02016-09-19 03:45:55 -050051 Check If BMC is Up 30 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050052 Sleep 1 min
53 Validate BMC Version