From 14d891da03cf0eeafd0d8b53174144dc6462877a Mon Sep 17 00:00:00 2001 From: David Blaisonneau Date: Fri, 19 Aug 2016 17:13:29 +0200 Subject: [beta] add a public api proxy for orange pod1 Change-Id: I173b545a2b3bdc7ff948f37820fc2cfb62d5ca6d Signed-off-by: David Blaisonneau --- ci/deploy.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'ci/deploy.sh') diff --git a/ci/deploy.sh b/ci/deploy.sh index 2e575898..b69b5baa 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -23,13 +23,13 @@ read_config() { } usage() { echo "Usage: $0 [-s ] - [-t ] + [-t ] [-o ] [-l ] [-f ] [-d ] [-a ] - [-r ]" 1>&2 exit 1; } + [-r ]" 1>&2 exit 1; } while getopts ":s:t:o:l:h:r:f:d:a:" opt; do case "${opt}" in @@ -161,6 +161,18 @@ echo "...... deployment started ......" deploy check_status + +echo "...... deploy public api proxy ......" + +if [ "$opnfvlab" == "orangepod1" ] && [ "$opnfvsdn" == "nosdn" ]; then # only for first test phase + PUB_API_NET=$(grep floating-ip-range ./labconfig.yaml |cut -d/ -f2) + PUB_API_IP=$(grep public-api-ip ./labconfig.yaml |cut -d: -f2) + juju run --unit nodes/0 "sudo ip a a ${PUB_API_IP}/${PUB_API_NET} dev br-ex" + juju run --unit nodes/0 "sudo ip l set dev br-ex up" + python genPublicAPIProxyBundle.py -l labconfig.yaml > haproxy.bundle.yaml + juju-deployer -vW -d -t 7200 -r 5 -c haproxy.bundle.yaml haproxy +fi + echo "...... deployment finished ......." ./openstack.sh "$opnfvsdn" || true -- cgit 1.2.3-korg