This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new 57dc228 retry failed installation of routemgmt package/actions (#413)
57dc228 is described below
commit 57dc2289dced62fd99105444a7def4e3a993c954
Author: David Grove <[email protected]>
AuthorDate: Mon Jan 14 21:51:33 2019 -0500
retry failed installation of routemgmt package/actions (#413)
---
helm/openwhisk/configMapFiles/installPackages/myTask.sh | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/helm/openwhisk/configMapFiles/installPackages/myTask.sh
b/helm/openwhisk/configMapFiles/installPackages/myTask.sh
index 28184ff..90cd1f7 100644
--- a/helm/openwhisk/configMapFiles/installPackages/myTask.sh
+++ b/helm/openwhisk/configMapFiles/installPackages/myTask.sh
@@ -34,10 +34,23 @@ else
fi
pushd $OPENWHISK_HOME/ansible/roles/routemgmt/files
- ./installRouteMgmt.sh $WHISK_AUTH $WHISK_API_HOST $WHISK_SYSTEM_NAMESPACE
/usr/local/bin/wsk
+ # This operation is unreliable in a TravisCI environment (for unknown
reasons),
+ # so try multiple times before giving up.
+ PASSED=false
+ TRIES=0
+ until $PASSED || [ $TRIES -eq 10 ]; do
+ if ./installRouteMgmt.sh $WHISK_AUTH $WHISK_API_HOST
$WHISK_SYSTEM_NAMESPACE /usr/local/bin/wsk; then
+ PASSED=true
+ echo "Successfully deployed routemgmt package"
+ else
+ echo "Failed to deploy routemgmt package; will pause, uninstall,
and try again"
+ let TRIES=TRIES+1
+ sleep 10
+ ./uninstallRouteMgmt.sh
+ fi
+ done
popd
-
#####
# Install the OpenWhisk Catalog
#####