modified to fix deployment error 17/38117/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 26 Jul 2017 04:39:20 +0000 (23:39 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Wed, 26 Jul 2017 04:39:20 +0000 (23:39 -0500)
Change-Id: Iec917ba5ae1e2bfa1f32d0682945dc770454570c
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/03-maasdeploy.sh
ci/config_tpl/juju2/bundle_tpl/bundle.yaml
labconfig/juniper/pod1/labconfig.yaml

index 1387e6b..58879df 100755 (executable)
@@ -431,6 +431,7 @@ addnodes(){
            units=$(($units - 1));
            NODE_NAME=`cat labconfig.json | jq ".lab.racks[].nodes[$units].name" | cut -d \" -f 2 `
            MAC_ADDRESS=`cat labconfig.json | jq ".lab.racks[].nodes[$units].nics[] | select(.spaces[]==\"admin\").mac"[0] | cut -d \" -f 2 `
+           MAC_ADDRESS1=`cat labconfig.json | jq ".lab.racks[].nodes[$units].nics[] | select(.spaces[]==\"floating\").mac"[0] | cut -d \" -f 2 `
            POWER_TYPE=`cat labconfig.json | jq ".lab.racks[].nodes[$units].power.type" | cut -d \" -f 2 `
            POWER_IP=`cat labconfig.json |  jq ".lab.racks[].nodes[$units].power.address" | cut -d \" -f 2 `
            POWER_USER=`cat labconfig.json |  jq ".lab.racks[].nodes[$units].power.user" | cut -d \" -f 2 `
@@ -439,7 +440,7 @@ addnodes(){
            maas $PROFILE machines create autodetect_nodegroup='yes' name=$NODE_NAME \
                hostname=$NODE_NAME power_type=$POWER_TYPE power_parameters_power_address=$POWER_IP \
                power_parameters_power_user=$POWER_USER power_parameters_power_pass=$POWER_PASS mac_addresses=$MAC_ADDRESS \
-               architecture='amd64/generic'
+               mac_addresses=$MAC_ADDRESS1 architecture='amd64/generic'
        done
     fi
 
index 5a49b9a..bfc297d 100644 (file)
@@ -13,7 +13,7 @@
 {% else %}
       num_units: 1
 {% endif %}
-      constraints: tags=control
+
     nodes-compute:
       charm: "cs:{{ ubuntu.release }}/ubuntu"
 {% if os.ha.mode == 'ha' %}
index 87e2577..b1b90ba 100644 (file)
@@ -101,6 +101,6 @@ opnfv:
       vlan:
     - type: floating
       bridge: brPublic
-      cidr: 10.10.10.0/24
+      cidr: 10.10.0.0/20
       gateway:
       vlan: