modified to make use of the bundle generated. 17/16217/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 30 Jun 2016 22:04:04 +0000 (17:04 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 30 Jun 2016 22:09:47 +0000 (17:09 -0500)
Change-Id: I1854658a93dbb3cbd1a7c41d19d7a76645ede85c
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/01-deploybundle.sh
ci/bundle_tpl/phase2-overrides.yaml
ci/deploy.py
ci/genBundle.py

index 08f539b..bf16ce7 100755 (executable)
@@ -89,9 +89,14 @@ case "$3" in
 esac
 
 # lets put the if seperateor as "," as this will save me from world.
+fea=""
 IFS=","
-
 for feature in $5; do
+    if [ "$fea" == "" ]; then
+        fea=$feature
+    else
+        fea=$fea"_"$feature
+    fi
     case "$feature" in
         'ipv6' )
              sed -i -- 's/#prefer-ipv6: true/prefer-ipv6: true/g' ./bundles.yaml
@@ -139,6 +144,13 @@ case "$6" in
         ;;
 esac
 
+var=os-$4-$fea-$1
+if [ "$4" == "nosdn" ]; then
+    python genBundle.py  -l deployconfig.yaml  -s $var > bundles.yaml
+elif [ "$4" == "odl" ]; then
+    python genBundle.py  -l deployconfig.yaml  -s $var > bundles.yaml
+fi
+
 echo "... Deployment Started ...."
     juju-deployer -vW -d -t 3600 -c bundles.yaml $6-"$2"-nodes
     check_status
index c2b8ff9..80bfffc 100644 (file)
@@ -1,10 +1,10 @@
 {% if opnfv.spaces_dict.data is defined %}
-    os-data-network: {{ opnfv.dataNetwork }}
+    os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
 {% if opnfv.spaces_dict.storage is defined %}
     #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
 {% endif %}
-{% if os.network.ipv6 == 'true' %}
+{% if os.network.ipv6 %}
     prefer-ipv6: {{ os.network.ipv6 }}
 {% endif %}
 {% if os.network.dvr %}
index 0886161..a7ee952 100644 (file)
@@ -242,6 +242,7 @@ opnfvlabcfg["opnfv"]["ext_port"]=labcfg["lab"]["racks"][0]["ext-port"]
 opnfvlabcfg["opnfv"]["units"]=len(labcfg["lab"]["racks"][0]["nodes"])
 opnfvlabcfg["opnfv"]["admin_password"]="openstack"
 opnfvlabcfg["opnfv"]["storage"]=labcfg["opnfv"]["storage"]
+opnfvlabcfg["opnfv"]["spaces"]=labcfg["opnfv"]["spaces"]
 
 with open('deployment.yaml', 'wa') as opnfvf:
    yaml.dump(opnfvcfg, opnfvf, default_flow_style=False)
index 85af5da..cb61f5a 100644 (file)
@@ -130,7 +130,7 @@ config['os']['network']['controller'] = sdn
 # Change features
 if 'lxd' in features:
     config['os']['lxd'] = True
-if 'drv' in features:
+if 'dvr' in features:
     config['os']['network']['dvr'] = True
 if 'ipv6' in features:
     config['os']['network']['ipv6'] = True