Increase FFDC GET request for REST call timedout
Changes:
- FFDC is meant to collect data at best and not for performance
and its better to give chance for REST server to respond then
timedout during critical FFDC collection.
We have seen instances where BMC stop responding momentarily or due
to network glitches.
Change-Id: I2d6346af55e7054ebecd520ff038c99bf13cd044
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index ad21d73..c5a0281 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -284,7 +284,7 @@
FOR ${cmd} IN @{cmd_list}
${logpath}= Catenate SEPARATOR= ${LOG_PREFIX} ${cmd[0]}
- ${resp}= OpenBMC Get Request ${cmd[1]} quiet=${1}
+ ${resp}= OpenBMC Get Request ${cmd[1]} quiet=${1} timeout=${30}
${status}= Run Keyword and Return Status Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
Run Keyword If '${status}' == '${False}' Continue For Loop
${jsondata}= to json ${resp.content} pretty_print=True
@@ -507,7 +507,7 @@
[Documentation] Collect dumps from dump entry.
[Arguments] ${log_prefix_path}=${LOG_PREFIX}
- ${data}= Read Properties ${DUMP_ENTRY_URI}enumerate quiet=${1}
+ ${data}= Read Properties ${DUMP_ENTRY_URI}enumerate quiet=${1} timeout=${30}
# Grab the list of entries from dump/entry/
# The data shown below is the result of the "Get Dictionary Keys".