summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjuraj.linkes <jlinkes@cisco.com>2017-06-27 09:19:43 +0200
committerjuraj.linkes <jlinkes@cisco.com>2017-06-27 09:19:43 +0200
commite52796576836ee2f3b2b36c63503ceb1cf6588f3 (patch)
treebd951a5f974fd668a60d564284bcacd1c4959188
parente1c18b3c63df27b2029a23818f50a6fc4e3afe59 (diff)
Increased odl restart timeout to 120
Change-Id: I2cc7154684fadc141412eb575b5f104ba19235e9 Signed-off-by: juraj.linkes <jlinkes@cisco.com>
-rwxr-xr-xscripts/resource_cleanup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/resource_cleanup.sh b/scripts/resource_cleanup.sh
index 46ed8bb..433f73b 100755
--- a/scripts/resource_cleanup.sh
+++ b/scripts/resource_cleanup.sh
@@ -382,7 +382,7 @@ else
ODL_PORT=$(awk '/<Call/{f=1} f{print; if (/<\/Call>/) exit}' $ODL_DIR/etc/jetty.xml | \
grep jetty.port | grep -Eo [0-9]+)
echo "$HOSTNAME: waiting for odl to start"
- for i in $(seq 1 60)
+ for i in $(seq 1 120)
do
sleep 1
ODL_RESPONSE=$(curl -s -XGET -u $odl_username:$odl_password \
@@ -390,12 +390,12 @@ else
| python -m json.tool 2> /dev/null)
if [[ $? -ne 0 || $(echo $ODL_RESPONSE | grep -c error) -ne 0 ]]
then
- if [[ $i == 60 ]]
+ if [[ $i == 120 ]]
then
echo "$HOSTNAME: odl didn't respond to rest calls after $i seconds, stopping trying"
elif [[ $i == *"0" ]]
then
- echo "$HOSTNAME: odl didn't respond to rest calls after $i seconds, waiting up to 60 seconds"
+ echo "$HOSTNAME: odl didn't respond to rest calls after $i seconds, waiting up to 120 seconds"
fi
else
echo "$HOSTNAME: odl is responding to rest calls"