From f809fd6d07d3447af62297377f963e1c6e4556e3 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Mon, 20 Mar 2017 10:59:42 +0800 Subject: Add delay when upload csar package fail There is occasional failure when upload csar package. Add 10 second 10 retries to workaroud this problem. Change-Id: I0d081699d744bc2a3f93d23fa5afea48f426beff Signed-off-by: Harry Huang --- juju/juju_launch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juju') diff --git a/juju/juju_launch.sh b/juju/juju_launch.sh index 2aff57e..766ebfe 100755 --- a/juju/juju_launch.sh +++ b/juju/juju_launch.sh @@ -78,7 +78,8 @@ function juju_client_prepare() $OS_REGION_NAME: endpoint: $OS_AUTH_URL' > clouds.yaml" - local cmd1="juju add-cloud openstack clouds.yaml --replace" + local cmd1="juju remove-cloud openstack; \ + juju add-cloud openstack clouds.yaml --replace" exec_cmd_on_client $cmd1 if [[ ! $(exec_cmd_on_client "juju list-clouds | grep openstack") ]]; then -- cgit 1.2.3-korg