From d9728c68b206b05daad933db838a31a140d53557 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 30 Nov 2015 11:59:25 -0500 Subject: adding flag to use flat underlay network Change-Id: I12cbb68df993e27f9ff3c41185c4682a64349736 --- ci/deploy.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'ci') diff --git a/ci/deploy.sh b/ci/deploy.sh index 3fb6a0de..5a41e660 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -5,16 +5,6 @@ # author: Tim Rozet (trozet@redhat.com) # # Based on RDO Manager http://www.rdoproject.org -# -# Pre-requisties: -# - Supports 3 or 4 network interface configuration -# - Target system must be RPM based -# - Provisioned nodes expected to have following order of network connections (note: not all have to exist, but order is maintained): -# eth0- admin network -# eth1- private network (+storage network in 3 NIC config) -# eth2- public network -# eth3- storage network -# - script assumes /24 subnet mask set -e @@ -28,6 +18,8 @@ vm_index=4 ha_enabled="TRUE" ping_site="8.8.8.8" ntp_server="pool.ntp.org" +net_isolation_enabled="TRUE" + declare -i CNT declare UNDERCLOUD @@ -189,8 +181,6 @@ function setup_instack_vm { # extra space to overwrite the previous connectivity output echo -e "${blue}\r ${reset}" - ssh -T ${SSH_OPTIONS[@]} "root@$UNDERCLOUD" "if ! ip a s eth1 | grep 192.0.2.1 > /dev/null; then ip a a 192.0.2.1/24 dev eth1; fi" - #add the instack brbm1 interface virsh attach-interface --domain instack --type network --source brbm1 --model rtl8139 --config --live sleep 1 @@ -295,6 +285,11 @@ function undercloud_prep_overcloud_deploy { DEPLOY_OPTIONS+=" --ntp-server $ntp_server" fi + if [ $net_isolation_enabled == "TRUE" ]; then + DEPLOY_OPTIONS+=" -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml" + DEPLOY_OPTIONS+=" -e network-environment.yaml" + fi + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <