trying to pass correct target for deployment. 59/19259/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 22 Aug 2016 22:59:19 +0000 (17:59 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Mon, 22 Aug 2016 23:00:01 +0000 (18:00 -0500)
Change-Id: I76ee4d723b86a9d4538cb7137bd3cbe1ba8303ed
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/deploy.sh
ci/openstack.sh

index 8692df6..c9994cc 100755 (executable)
@@ -170,7 +170,7 @@ check_status
 
 echo "...... deployment finished  ......."
 
-./openstack.sh "$opnfvsdn" "$opnfvlab" || true
+./openstack.sh "$opnfvsdn" "$opnfvdistro" "$openstack" || true
 sudo ../juju/get-cloud-images || true
 ../juju/joid-configure-openstack || true
 
index a76785b..fbfc7c0 100755 (executable)
@@ -7,8 +7,11 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-opnfvlab=$2
+#./openstack.sh "$opnfvsdn" "$opnfvdistro" "$openstack"
+
 opnfvsdn=$1
+opnfvdistro=$2
+opnfvos=$3
 
 if [ -f ./deployconfig.yaml ];then
     EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
@@ -134,7 +137,7 @@ if [ "$opnfvlab" == "orangepod1" ] && [ "$opnfvsdn" == "nosdn" ]; then # only fo
         juju run --unit nodes/0 "sudo ip a a ${PUB_API_IP}/${PUB_API_NET} dev br-ex" || true
         juju run --unit nodes/0 "sudo ip l set dev br-ex up" || true
         python genPublicAPIProxyBundle.py -l labconfig.yaml >> bundles.yaml
-        juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $opnfvdistro-"$openstack" || true
+        juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $opnfvdistro-"$opnfvos" || true
     fi
 fi