AES variant retries
Added:
- Increase ping check time
- Ignore SSH failure
- Retry REST connection
- Replace old org wait for standby to new xyz keyword
- Increase keyword "Initialize OpenBMC" default to 20
seconds for known issues with the SSL authentication time.
(openbmc/openbmc#1367 and openbmc/openbmc#612)
Resolves openbmc/openbmc-test-automation#375
Change-Id: I747e990b9666892b75266b24d65cef47a174b844
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/standby_bmc.robot b/extended/standby_bmc.robot
index e56b12d..3e46711 100644
--- a/extended/standby_bmc.robot
+++ b/extended/standby_bmc.robot
@@ -34,12 +34,12 @@
Run Keyword And Ignore Error Powercycle System Via PDU
- Wait For Host To Ping ${OPENBMC_HOST} 1 mins
- Open Connection And Log In host=${OPENBMC_HOST}
+ Wait For Host To Ping ${OPENBMC_HOST} 2 mins
+ Run Keyword And Ignore Error
+ ... Open Connection And Log In host=${OPENBMC_HOST}
- ${rest_status}= Run Keyword And Return Status Initialize OpenBMC
- Run Keyword If '${rest_status}' == '${False}'
- ... Reboot and Wait for BMC Online
+ Wait Until Keyword Succeeds
+ ... 1 min 30 sec Initialize OpenBMC
${ready_status}= Run Keyword And Return Status Is BMC Ready
Run Keyword If '${ready_status}' == '${False}' Put BMC State Ready
diff --git a/lib/rest_client.robot b/lib/rest_client.robot
index 1477b05..53d9a84 100644
--- a/lib/rest_client.robot
+++ b/lib/rest_client.robot
@@ -108,7 +108,7 @@
[Return] ${ret}
Initialize OpenBMC
- [Arguments] ${timeout}=10 ${quiet}=${1}
+ [Arguments] ${timeout}=20 ${quiet}=${1}
Create Session openbmc ${AUTH_URI} timeout=${timeout} max_retries=3
${headers}= Create Dictionary Content-Type=application/json