modified to correct the labconfig.yaml and reserver more ip. 45/47445/3
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 17 Nov 2017 23:32:55 +0000 (17:32 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 17 Nov 2017 23:36:11 +0000 (17:36 -0600)
Change-Id: If88127b0a69186cc27a875c2ae544328e088dfd9
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/03-maasdeploy.sh
labconfig/intel/pod18/labconfig.yaml

index f55c39a..3004e0a 100755 (executable)
@@ -251,6 +251,10 @@ configuremaas(){
         maas $PROFILE tags create name=$tag || true
     done
 
+    #below tag would be used to enable huge pages for DPDK and SRIOV enablement in Ubuntu kernel via MAAS
+    maas $PROFILE tags create name='opnfv-dpdk' comment='OPNFV DPDK enablement' \
+         kernel_opts='hugepagesz=2M hugepages=1024 hugepagesz=1G hugepages=20 default_hugepagesz=1G intel_iommu=on'
+
     #create the required spaces.
     maas $PROFILE space update 0 name=default || true
     for space in admin-api internal-api public-api \
@@ -369,6 +373,27 @@ setupspacenetwork(){
                 PRIMARY_RACK_CONTROLLER=$(maas $PROFILE rack-controllers read | jq -r '.[0].system_id')
                 maas $PROFILE vlan update $NET_FABRIC_ID $NET_FABRIC_VID dhcp_on=True primary_rack=$PRIMARY_RACK_CONTROLLER || true
             fi
+        elif ([ $type == "public" ] || [ $type == "osapi" ]); then
+            # If we have a network, we create reserve IPS for public IP range
+            if ([ $NET_FABRIC_ID ]); then
+                # Set ranges
+                SUBNET_PREFIX=${SPACE_CIDR::-5}
+                IP_RES_RANGE_LOW="$SUBNET_PREFIX.1"
+                IP_RES_RANGE_HIGH="$SUBNET_PREFIX.39"
+                maas $PROFILE ipranges create type=reserved \
+                     start_ip=$IP_RES_RANGE_LOW end_ip=$IP_RES_RANGE_HIGH \
+                     comment='This is a reserved range' || true
+            fi
+        else
+            if ([ $NET_FABRIC_ID ]); then
+                # Set ranges
+                SUBNET_PREFIX=${SPACE_CIDR::-5}
+                IP_RES_RANGE_LOW="$SUBNET_PREFIX.1"
+                IP_RES_RANGE_HIGH="$SUBNET_PREFIX.5"
+                maas $PROFILE ipranges create type=reserved \
+                     start_ip=$IP_RES_RANGE_LOW end_ip=$IP_RES_RANGE_HIGH \
+                     comment='This is a reserved range' || true
+            fi
         fi
     done
 }
index b5990a6..2cb83d2 100644 (file)
@@ -16,9 +16,9 @@ lab:
       - ifname: intf3
         spaces: [floating]
         mac: ["A4:BF:01:14:40:16"]
-#      - ifname: intf2.1183
-#        spaces: [public]
-#        mac: ["3c:fd:fe:a4:9f:a1"]
+      - ifname: intf2.1183
+        spaces: [public]
+        mac: ["3c:fd:fe:a4:9f:a1"]
       - ifname: intf2
         spaces: [storage]
         mac: ["3c:fd:fe:a4:9f:a1"]
@@ -40,9 +40,9 @@ lab:
       - ifname: intf3
         spaces: [floating]
         mac: ["A4:BF:01:16:31:1e"]
-#      - ifname: intf2.1183
-#        spaces: [public]
-#        mac: ["3c:fd:fe:a4:a0:31"]
+      - ifname: intf2.1183
+        spaces: [public]
+        mac: ["3c:fd:fe:a4:a0:31"]
       - ifname: intf2
         spaces: [storage]
         mac: ["3c:fd:fe:a4:a0:31"]
@@ -64,9 +64,9 @@ lab:
       - ifname: intf3
         spaces: [floating]
         mac: ["A4:BF:01:16:30:F6"]
-#      - ifname: intf2.1183
-#        spaces: [public]
-#        mac: ["3c:fd:fe:a4:9e:49"]
+      - ifname: intf2.1183
+        spaces: [public]
+        mac: ["3c:fd:fe:a4:9e:49"]
       - ifname: intf2
         spaces: [storage]
         mac: ["3c:fd:fe:a4:9e:49"]
@@ -88,9 +88,9 @@ lab:
       - ifname: intf3
         spaces: [floating]
         mac: ["A4:BF:01:14:72:0D"]
-#      - ifname: intf2.1183
-#        spaces: [public]
-#        mac: ["3c:fd:fe:a4:9d:e9"]
+      - ifname: intf2.1183
+        spaces: [public]
+        mac: ["3c:fd:fe:a4:9d:e9"]
       - ifname: intf2
         spaces: [storage]
         mac: ["3c:fd:fe:a4:9d:e9"]
@@ -112,9 +112,9 @@ lab:
       - ifname: intf3
         spaces: [floating]
         mac: ["A4:BF:01:14:71:68"]
-#      - ifname: intf2.1183
-#        spaces: [public]
-#        mac: ["3c:fd:fe:a4:a1:09"]
+      - ifname: intf2.1183
+        spaces: [public]
+        mac: ["3c:fd:fe:a4:a1:09"]
       - ifname: intf2
         spaces: [storage]
         mac: ["3c:fd:fe:a4:a1:09"]
@@ -142,15 +142,13 @@ opnfv:
     - type: admin
       bridge: brAdm
       cidr: 10.10.181.0/24
-      gateway: 10.10.181.1
+      gateway: 10.10.181.2
       vlan:
     - type: data
-      #bridge: brData
       cidr: 10.10.182.0/24
       gateway:
       vlan:
     - type: storage
-      #bridge: brStor
       cidr: 10.10.183.0/24
       gateway:
       vlan:
@@ -159,8 +157,7 @@ opnfv:
       cidr: 10.10.180.0/24
       gateway:
       vlan:
-#    - type: public
-#      #bridge: brPublic
-#      cidr: 10.10.185.0/24
-#      gateway:
-#      vlan: 1183
+    - type: public
+      cidr: 10.10.185.0/24
+      gateway: 10.10.185.1
+      vlan: 1183