added the labconfig file for att virpod1. Remove the mac 27/15227/5
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 6 Jun 2016 20:19:31 +0000 (15:19 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 7 Jun 2016 06:10:42 +0000 (01:10 -0500)
as it gateway br-ex was not configured with MAC.

Change-Id: I32769c8d03dded073889a08d364c7bd3936880d3
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
17 files changed:
ci/01-deploybundle.sh
ci/02-maasdeploy.sh
ci/deploy.sh
ci/maas/att/virpod1/deployment.yaml [deleted file]
ci/nosdn/juju-deployer/ovs-nosdn-ha.yaml
ci/nosdn/juju-deployer/ovs-nosdn-nonha.yaml
ci/nosdn/juju-deployer/ovs-nosdn-tip.yaml
ci/odl/juju-deployer/ovs-odl-ha.yaml
ci/odl/juju-deployer/ovs-odl-nonha.yaml
ci/odl/juju-deployer/ovs-odl-tip.yaml
ci/openstack.sh
labconfig/att/virpod1/labconfig.yaml [new file with mode: 0644]
labconfig/intel/pod5/labconfig.yaml
labconfig/intel/pod6/labconfig.yaml
labconfig/labconfig.yaml
labconfig/orange/pod1/labconfig.yaml
labconfig/orange/pod2/labconfig.yaml

index 7aceab3..660db5b 100755 (executable)
@@ -41,7 +41,9 @@ if [ -e ~/.juju/deployment.yaml ]; then
       sed --i "s@#ext-port: \"eth1\"@ext-port: \"$extport\"@g" ./bundles.yaml
 
       datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
-      sed --i "s@#os-data-network: 10.4.8.0/21@os-data-network: $datanet@g" ./bundles.yaml
+      if [ -z "$datanet" ]
+          sed --i "s@#os-data-network: 10.4.8.0/21@os-data-network: $datanet@g" ./bundles.yaml
+      fi
 
       admnet=`grep "admNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
       sed --i "s@10.4.1.1@$admnet@g" ./bundles.yaml
@@ -52,12 +54,6 @@ if [ -e ~/.juju/deployment.yaml ]; then
 fi
 
 case "$3" in
-     'attvirpod1' )
-        # As per your lab vip address list be deafult uses 10.4.1.11 - 10.4.1.20
-         sed -i -- 's/10.4.1.1/192.168.10.1/g' ./bundles.yaml
-        # Choose the external port to go out from gateway to use.
-         sed -i -- 's/#ext-port: "eth1"/ext-port: "eth1"/g' ./bundles.yaml
-        ;;
      'cengnlynxpod1' )
         # Chose the hard drive(s) to use for CEPH OSD
          sed -i -- 's|osd-devices: /srv|osd-devices: /dev/sdb|g' ./bundles.yaml
@@ -134,4 +130,3 @@ esac
 echo "... Deployment Started ...."
     juju-deployer -vW -d -t 3600 -c bundles.yaml $6-"$2"-nodes
     juju-deployer -vW -d -t 7200 -r 5 -c bundles.yaml $6-"$2"
-
index e7f9e8d..839d29f 100755 (executable)
@@ -67,7 +67,9 @@ else
             python deploy.py
             ;;
         'attvirpod1' )
-            cp maas/att/virpod1/deployment.yaml ./deployment.yaml
+            cp ../labconfig/att/virpod1/labconfig.yaml ./
+            #to be removed later once converted for all labs.
+            python deploy.py
             ;;
         'juniperpod1' )
             cp maas/juniper/pod1/deployment.yaml ./deployment.yaml
@@ -269,7 +271,7 @@ case "$labname" in
         enableautomode eth3 AUTO "192.168.12.0/24" || true
         ;;
     'attvirpod1' )
-        enableautomodebyname eth1 AUTO "192.168.10.0/24" control || true
+        enableautomode eth1 AUTO "192.168.10.0/24" || true
         ;;
     'juniperpod1' )
         ;;
index a698ad1..31d435b 100755 (executable)
@@ -189,6 +189,10 @@ echo "...... deployment started ......"
 #deploy_dep
 deploy
 check_status
+
+#create the basic dayta for verification of stack.
+./openstack.sh
+
 echo "...... deployment finished  ......."
 
 echo "...... creating OpenRc file for consuming by various user ......."
diff --git a/ci/maas/att/virpod1/deployment.yaml b/ci/maas/att/virpod1/deployment.yaml
deleted file mode 100644 (file)
index f03031f..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-# This file defines the deployment for the MAAS environment which is to be
-# deployed and automated.
-demo-maas:
-    maas:
-        # Defines the general setup for the MAAS environment, including the
-        # username and password for the host as well as the MAAS server.
-        user: ubuntu
-        password: ubuntu
-
-        # Contains the virtual machine parameters for creating the MAAS virtual
-        # server. Here you can configure the name of the virsh domain, the
-        # parameters for how the network is attached.
-        name: opnfv-maas-att
-        interfaces: ['bridge=brAdm,model=virtio']
-        memory: 4096
-        vcpus: 2
-        arch: amd64
-        pool: default
-        disk_size: 160G
-
-        # Apt http proxy setting(s)
-        apt_http_proxy:
-
-        apt_sources:
-          - ppa:maas/stable
-          - ppa:juju/stable
-
-        # Virsh power settings
-        # Specifies the uri and keys to use for virsh power control of the 
-        # juju virtual machine. If the uri is omitted, the value for the
-        # --remote is used. If no power settings are desired, then do not
-        # supply the virsh block.
-        virsh:
-            rsa_priv_key: /home/ubuntu/.ssh/id_rsa
-            rsa_pub_key: /home/ubuntu/.ssh/id_rsa.pub
-            uri: qemu+ssh://ubuntu@192.168.10.2/system
-
-        # Defines the IP Address that the configuration script will use to
-        # to access the MAAS controller via SSH.
-        ip_address: 192.168.10.3
-
-        # This section allows the user to set a series of options on the
-        # MAAS server itself. The list of config options can be found in
-        # the upstream MAAS documentation:
-        #  - http://maas.ubuntu.com/docs/api.html#maas-server
-        settings:
-            main_archive: http://us.archive.ubuntu.com/ubuntu
-            upstream_dns: 8.8.8.8
-            maas_name: attvirpod1
-            # kernel_opts: "console=tty0 console=ttyS1,115200n8"
-            # ntp_server: ntp.ubuntu.com
-
-        # This section is used to define the networking parameters for when
-        # the node first comes up. It is fed into the meta-data cloud-init
-        # configuration and is used to configure the networking piece of the
-        # service. The contents of this section are written directly to the
-        # /etc/network/interfaces file.
-        #
-        # Please note, this is slightly different than the
-        # node-group-interfaces section below. This will configure the
-        # machine's networking params, and the node-group-interfaces will
-        # configure the maas node-group interfaces which is used for
-        # controlling the dhcp, dns, etc.
-        network_config: |
-            auto lo
-            iface lo inet loopback
-
-            auto eth0
-            iface eth0 inet static
-            address 192.168.10.3
-            netmask 255.255.255.0
-            network 192.168.10.0
-            broadcast 192.168.10.255
-            gateway 192.168.10.1
-            dns-nameservers 8.8.8.8 127.0.0.1
-
-        # The node-group-interfaces section is used to configure the MAAS
-        # network interfaces. Basic configuration is supported, such as which
-        # device should be bound, the range of IP addresses, etc.
-        # Note: this may contain the special identifiers:
-        #   ${maas_net} - the first 3 octets of the ipv4 address
-        #   ${maas_ip} - the ip address of the MAAS controller 
-        node_group_ifaces:
-            - device: eth0
-              ip: 192.168.10.3
-              subnet_mask: 255.255.255.0
-              broadcast_ip: 192.168.10.255
-              router_ip: 192.168.10.1
-              static_range:
-                  low: 192.168.10.20
-                  high: 192.168.10.100
-              dynamic_range:
-                  low: 192.168.10.101
-                  high: 192.168.10.200
-
-        # Defines the physical nodes which are added to the MAAS cluster
-        # controller upon startup of the node.
-        nodes:
-            - name: node1-control
-              tags: control
-              architecture: amd64/generic
-              mac_addresses:
-                  - "<controller1-mac>"
-              power:
-                  type: ether_wake
-                  mac_address: <controller1-mac>
-
-            - name: node2-compute
-              tags: compute
-              architecture: amd64/generic
-              mac_addresses:
-                  - "<compute1-mac>"
-              power:
-                  type: ether_wake
-                  mac_address:  <compute1-mac>
-
-    # Contains the virtual machine parameters for creating the Juju bootstrap
-    # node virtual machine
-    juju-bootstrap:
-        name: bootstrap
-        interfaces: ['bridge=brAdm,model=virtio']
-        memory: 4096
-        vcpus: 2
-        arch: amd64
-        pool: default
-        disk_size: 120G
index 5329f72..856fc9d 100644 (file)
@@ -12,7 +12,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index fa2a24b..3601d2c 100644 (file)
@@ -12,7 +12,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index 03e24ca..6ae2fc2 100644 (file)
@@ -12,7 +12,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index e33fa8e..73a8b3f 100644 (file)
@@ -13,7 +13,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index ae3be75..4c52b99 100644 (file)
@@ -12,7 +12,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index 9034fea..c01dad1 100644 (file)
@@ -12,7 +12,6 @@ trusty-mitaka:
     #prefer-ipv6: true
     #enable-dvr: true
     #l2-population: true
-    #ext-port: "eth1"
     region: Canonical
     #source: "cloud:trusty-mitaka"
     openstack-origin: "cloud:trusty-mitaka"
index 5f9a3a4..89194de 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -ex
+#!/bin/bash -ex
 
 ##############################################################################
 # All rights reserved. This program and the accompanying materials
@@ -63,15 +63,17 @@ keystone user-create --name demo --tenant demo --pass demo --email demo@demo.dem
 nova keypair-add --pub-key ~/.ssh/id_rsa.pub ubuntu-keypair
 
 # configure external network
-neutron net-create ext-net --router:external --provider:physical_network external --provider:network_type flat
+neutron net-create ext-net --shared --router:external --provider:physical_network external --provider:network_type flat
 
 ##
 ## Parse Network config
 ##
 
 EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
+
 # split EXTERNAL_NETWORK=first ip;last ip; gateway;network
-IFS=',' read -r -a EXTNET <<< "$EXTERNAL_NETWORK"
+
+EXTNET=(${EXTERNAL_NETWORK//,/ })
 
 EXTNET_FIP=${EXTNET[0]}
 EXTNET_LIP=${EXTNET[1]}
@@ -94,7 +96,7 @@ neutron router-gateway-set demo-router ext-net
 
 # create pool of floating ips
 i=0
-while [ $i -ne 10 ]; do
+while [ $i -ne 5 ]; do
        neutron floatingip-create ext-net
        i=$((i + 1))
 done
diff --git a/labconfig/att/virpod1/labconfig.yaml b/labconfig/att/virpod1/labconfig.yaml
new file mode 100644 (file)
index 0000000..1bc27af
--- /dev/null
@@ -0,0 +1,45 @@
+lab:
+  location: att
+  racks:
+  - rack: virpod1
+    nodes:
+    - name: rack-1-m1
+      architecture: x86_64
+      roles: [network,control]
+      nics:
+      - ifname: eth0
+        spaces: [admin]
+        mac: ["00:1e:67:d8:ba:46"]
+      power:
+        type: wakeonlan
+        mac_address: 00:1e:67:d8:ba:46
+    - name: rack-1-m2
+      architecture: x86_64
+      roles: [compute,control,storage]
+      nics:
+      - ifname: eth0
+        spaces: [admin]
+        mac: ["00:1e:67:e0:0b:72"]
+      power:
+        type: wakeonlan
+        mac_address: 00:1e:67:e0:0b:72
+    floating-ip-range: 192.168.10.6,192.168.10.49,192.168.10.1,192.168.10.0/24
+    ext-port: "90:E2:BA:83:FD:21,90:E2:BA:75:30:F5"
+    dns: 8.8.8.8
+opnfv:
+  release: c
+  distro: trusty
+  type: nonha
+  openstack: mitaka
+  sdncontroller:
+  - type: nosdn
+  storage:
+  - type: ceph
+    disk: /srv
+  feature: odl_l2
+  spaces:
+  - type: admin
+    bridge: brAdm
+    cidr: 192.168.10.0/24
+    gateway: 192.168.10.1
+    vlan:
index f1758c1..e7f8c0d 100644 (file)
@@ -79,7 +79,7 @@ lab:
         user: root
         pass: root
     floating-ip-range: 10.5.15.6,10.5.15.250,10.5.15.254,10.5.15.0/24
-    ext-port: "90:E2:BA:85:4E:2D,90:E2:BA:84:08:B9,90:E2:BA:84:07:0E,90:E2:BA:83:FD:81,90:E2:BA:75:22:75"
+    ext-port: "eth5"
     dns: 8.8.8.8
 opnfv:
     release: c
index 0b9b266..f3ff6db 100644 (file)
@@ -79,7 +79,7 @@ lab:
         user: root
         pass: root
     floating-ip-range: 10.6.15.6,10.6.15.250,10.6.15.254,10.6.15.0/24
-    ext-port: "90:E2:BA:83:FD:21,90:E2:BA:75:30:F5,90:E2:BA:83:FE:75,90:E2:BA:84:15:7D,90:E2:BA:84:08:F5"
+    ext-port: "eth5"
     dns: 8.8.8.8
 opnfv:
   release: c
index 52775d7..0b9b266 100644 (file)
-labconfig:
-    lab_location: intelpod6
-    bridges:
-        - type: admin
-          bridge: brAdm
-          cidr: 10.6.1.0/24
-          gateway: 10.6.1.1
-        - type: data
-          bridge: brData
-          cidr: 10.6.12.0/24
-          gateway:
-        - type: public
-          bridge: brPublic
-          cidr: 10.6.15.0/24
-          gateway: 10.6.15.254
-        - type: external
-          bridge: brExt
-          cidr:
-          gateway:
-          ipaddress: 10.2.117.107
-    labsettings:
-        upstream_dns: 8.8.8.8
+lab:
+  location: intel
+  racks:
+  - rack: pod6
     nodes:
-        - type: control
-          architecture: x86_64 
-          pxe_mac_address:
-              - "00:1e:67:d8:ba:46"
-          power:
-              type: ipmi
-              address: 10.2.117.96
-              user: root
-              pass: root
-        - type: control
-          architecture: x86_64 
-          pxe_mac_address:
-              - "00:1e:67:e0:0b:72"
-          power:
-              type: ipmi
-              address: 10.2.117.97
-              user: root
-              pass: root
-        - type: control
-          architecture: x86_64 
-          pxe_mac_address:
-              - "00:1e:67:e0:09:33"
-          power:
-              type: ipmi
-              address: 10.2.117.98
-              user: root
-              pass: root
-        - type: compute
-          architecture: x86_64 
-          pxe_mac_address:
-              - "00:1e:67:e0:09:fb"
-          power:
-              type: ipmi
-              address: 10.2.117.99
-              user: root
-              pass: root
-        - type: compute
-          architecture: x86_64 
-          pxe_mac_address:
-              - "00:1e:67:cf:bc:f8"
-          power:
-              type: ipmi
-              address: 10.2.117.100
-              user: root
-              pass: root
+    - name: rack-6-m1
+      architecture: x86_64
+      roles: [network,control]
+      nics:
+      - ifname: eth1
+        spaces: [admin]
+        mac: ["00:1e:67:d8:ba:46"]
+      - ifname: eth4
+        spaces: [data]
+        mac: ["90:E2:BA:83:FD:20"]
+      power:
+        type: ipmi
+        address: 10.2.117.96
+        user: root
+        pass: root
+    - name: rack-6-m2
+      architecture: x86_64
+      roles: [compute,control,storage]
+      nics:
+      - ifname: eth1
+        spaces: [admin]
+        mac: ["00:1e:67:e0:0b:72"]
+      - ifname: eth4
+        spaces: [data]
+        mac: ["90:E2:BA:75:30:F4"]
+      power:
+        type: ipmi
+        address: 10.2.117.97
+        user: root
+        pass: root
+    - name: rack-6-m3
+      architecture: x86_64
+      roles: [compute,control,storage]
+      nics:
+      - ifname: eth1
+        spaces: [admin]
+        mac: ["00:1e:67:e0:09:33"]
+      - ifname: eth4
+        spaces: [data]
+        mac: ["90:E2:BA:83:FE:74"]
+      power:
+        type: ipmi
+        address: 10.2.117.98
+        user: root
+        pass: root
+    - name: rack-6-m4
+      architecture: x86_64
+      roles: [compute,storage]
+      nics:
+      - ifname: eth1
+        spaces: [admin]
+        mac: ["00:1e:67:e0:09:fb"]
+      - ifname: eth4
+        spaces: [data]
+        mac: ["90:E2:BA:84:15:7C"]
+      power:
+        type: ipmi
+        address: 10.2.117.99
+        user: root
+        pass: root
+    - name: rack-6-m5
+      architecture: x86_64
+      roles: [compute,storage]
+      nics:
+      - ifname: eth1
+        spaces: [admin]
+        mac: ["00:1e:67:cf:bc:f8"]
+      - ifname: eth4
+        spaces: [data]
+        mac: ["90:E2:BA:84:08:F4"]
+      power:
+        type: ipmi
+        address: 10.2.117.100
+        user: root
+        pass: root
+    floating-ip-range: 10.6.15.6,10.6.15.250,10.6.15.254,10.6.15.0/24
+    ext-port: "90:E2:BA:83:FD:21,90:E2:BA:75:30:F5,90:E2:BA:83:FE:75,90:E2:BA:84:15:7D,90:E2:BA:84:08:F5"
+    dns: 8.8.8.8
 opnfv:
-    release: c
-    distro: trusty
-    type: nonha
-    openstack: liberty
-    sdncontroller: 
-        - type: nosdn
-    storage: 
-        - type: ceph
-          disk: sda,sdb
-    floating-ip-range: 
-    feature: odl_l2 
-    ext-port: eth0
+  release: c
+  distro: trusty
+  type: nonha
+  openstack: liberty
+  sdncontroller:
+  - type: nosdn
+  storage:
+  - type: ceph
+    disk: /srv
+  feature: odl_l2
+  spaces:
+  - type: admin
+    bridge: brAdm
+    cidr: 10.6.1.0/24
+    gateway: 10.6.1.1
+    vlan:
+  - type: data
+    bridge: brData
+    cidr: 10.6.12.0/24
+    gateway:
+    vlan:
+  - type: public
+    bridge: brPublic
+    cidr: 10.6.15.0/24
+    gateway: 10.6.15.254
+    vlan:
+  - type: external
+    bridge: brExt
+    cidr:
+    gateway:
+    ipaddress: 10.2.117.107
+    vlan:
index 76cd74a..b844552 100644 (file)
@@ -94,7 +94,7 @@ lab:
         user: Administrator
         pass: pod1Admin
     floating-ip-range: 161.105.231.2,161.105.231.62,161.105.231.1,161.105.231.0/26
-    ext-port: "68:b5:99:75:05:60"
+    ext-port: "eth1"
     dns: 192.168.1.1
 opnfv:
   release: c
index 95301dd..9b2aa87 100644 (file)
@@ -130,7 +130,7 @@ lab:
          user: Administrator
          pass: pod2Admin
     floating-ip-range: 161.105.231.2,161.105.231.62,161.105.231.1,161.105.231.0/26
-    ext-port: "94:57:a5:52:c9:49"
+    ext-port: "eth1"
     dns: 192.168.2.1
 opnfv:
     release: c