From 4b4735f68fd916c443f7a8c860e6f7623491408b Mon Sep 17 00:00:00 2001 From: Brian Freeman Date: Fri, 1 Nov 2019 10:37:33 -0500 Subject: Fix if/fi on stack create Issue-ID: INT-1217 Change-Id: I94a9d2a4f3e98a2c08ee7dc2af40c6fc718c23f4 Signed-off-by: Brian Freeman --- deployment/heat/onap-rke/scripts/deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'deployment/heat/onap-rke') diff --git a/deployment/heat/onap-rke/scripts/deploy.sh b/deployment/heat/onap-rke/scripts/deploy.sh index 935e69424..1a1791e09 100755 --- a/deployment/heat/onap-rke/scripts/deploy.sh +++ b/deployment/heat/onap-rke/scripts/deploy.sh @@ -156,11 +156,13 @@ for n in $(seq 1 5); do fi if [ "$branch" == "staging" ] ; then - if ! openstack stack create -t ./onap-oom.yaml~ -e $ENV_FILE~ $stack_name --parameter integration_gerrit_branch=$integration_gerrit_branch --parameter oom_gerrit_branch=$oom_gerrit_branch --parameter portal_hostname=$portal_hostname --parameter additional_override="~/integration/deployment/heat/onap-rke/staging-image-override.yaml" ; then + if ! openstack stack create -t ./onap-oom.yaml~ -e $ENV_FILE~ $stack_name --parameter integration_gerrit_branch=$integration_gerrit_branch --parameter oom_gerrit_branch=$oom_gerrit_branch --parameter portal_hostname=$portal_hostname --parameter additional_override='~/integration/deployment/heat/onap-rke/staging-image-override.yaml' ; then break + fi else if ! openstack stack create -t ./onap-oom.yaml~ -e $ENV_FILE~ $stack_name --parameter integration_gerrit_branch=$integration_gerrit_branch --parameter oom_gerrit_branch=$oom_gerrit_branch --parameter portal_hostname=$portal_hostname; then break + fi fi while [ "CREATE_IN_PROGRESS" == "$(openstack stack show -c stack_status -f value $stack_name)" ]; do @@ -184,6 +186,7 @@ for n in $(seq 1 5); do echo Error: OpenStack infrastructure issue: unable to reach NFS server "$NFS_IP" sleep 10 + done if ! timeout 1 ping -c 1 "$NFS_IP"; then -- cgit 1.2.3-korg