modified to add cpu as host cpu for kvm machines. 37/26737/5
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 5 Jan 2017 15:53:56 +0000 (09:53 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 6 Jan 2017 22:27:21 +0000 (16:27 -0600)
Change-Id: Ia265021a79d5595748ec0b6b3e5988adbc3086b7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
14 files changed:
ci/00-maasdeploy.sh
ci/02-deploybundle.sh
ci/03-maasdeploy.sh
ci/deploy.sh
labconfig/cengn/pod1/labconfig.yaml
labconfig/cengn/pod2/labconfig.yaml
labconfig/huawei/pod12/labconfig.yaml
labconfig/intel/pod5/labconfig.yaml
labconfig/intel/pod6/labconfig.yaml
labconfig/intel/pod9/labconfig.yaml
labconfig/juniper/pod1/labconfig.yaml
labconfig/lenovo/pod1/labconfig.yaml [new file with mode: 0644]
labconfig/orange/pod1/labconfig.yaml
labconfig/orange/pod2/labconfig.yaml

index 556b65a..f87e2d3 100755 (executable)
@@ -192,11 +192,11 @@ maas maas sshkeys new key="`cat $HOME/.ssh/id_rsa.pub`"
 #adding compute and control nodes VM to MAAS for virtual deployment purpose.
 if [ "$virtinstall" -eq 1 ]; then
     # create two more VMs to do the deployment.
-    sudo virt-install --connect qemu:///system --name node1-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node1-control
+    sudo virt-install --connect qemu:///system --name node1-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node1-control
 
-    sudo virt-install --connect qemu:///system --name node2-compute --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node2-compute
+    sudo virt-install --connect qemu:///system --name node2-compute --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node2-compute
 
-    sudo virt-install --connect qemu:///system --name node5-compute --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node5-compute
+    sudo virt-install --connect qemu:///system --name node5-compute --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node5-compute
 
     node1controlmac=`grep  "mac address" node1-control | head -1 | cut -d "'" -f 2`
     node2computemac=`grep  "mac address" node2-compute | head -1 | cut -d "'" -f 2`
index 2310787..e34f3d7 100755 (executable)
@@ -53,6 +53,12 @@ check_status() {
 
 #read the value from deployment.yaml
 
+PROFILE=maas
+MAAS_IP=$(grep " ip_address" deployment.yaml | cut -d ':' -f 2 | sed -e 's/ //')
+API_SERVERMAAS="http://$MAAS_IP/MAAS/"
+API_KEY=`sudo maas-region apikey --username=ubuntu`
+maas login $PROFILE $API_SERVERMAAS $API_KEY
+
 if [[ "$opnfvmodel" = "openstack" ]]; then
     if [ -e ./deployment.yaml ]; then
        if [ -e ./deployconfig.yaml ]; then
index 2c7a16a..0a934c2 100755 (executable)
@@ -275,7 +275,7 @@ parse_yaml2() {
 }
 
 addnodes(){
-    sudo virt-install --connect qemu:///system --name bootstrap --ram 2048 --vcpus 2 --video \
+    sudo virt-install --connect qemu:///system --name bootstrap --ram 4098 --cpu host --vcpus 2 --video \
                  cirrus --arch x86_64 --disk size=20,format=qcow2,bus=virtio,io=native,pool=default \
                  --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole \
                  --vnc --print-xml | tee bootstrap
@@ -325,11 +325,11 @@ fi
 #adding compute and control nodes VM to MAAS for virtual deployment purpose.
 if [ "$virtinstall" -eq 1 ]; then
     # create two more VMs to do the deployment.
-    sudo virt-install --connect qemu:///system --name node1-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node1-control
+    sudo virt-install --connect qemu:///system --name node1-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node1-control
 
-    sudo virt-install --connect qemu:///system --name node2-compute --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node2-compute
+    sudo virt-install --connect qemu:///system --name node2-compute --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node2-compute
 
-    sudo virt-install --connect qemu:///system --name node5-compute --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node5-compute
+    sudo virt-install --connect qemu:///system --name node5-compute --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node5-compute
 
     node1controlmac=`grep  "mac address" node1-control | head -1 | cut -d '"' -f 2`
     node2computemac=`grep  "mac address" node2-compute | head -1 | cut -d '"' -f 2`
index d99c53e..9d24d2f 100755 (executable)
@@ -81,9 +81,9 @@ createresource() {
     nodeexist=`maas maas nodes list hostname=node3-control`
 
     if [ $nodeexist != *node3* ]; then
-        sudo virt-install --connect qemu:///system --name node3-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node3-control
+        sudo virt-install --connect qemu:///system --name node3-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node3-control
 
-        sudo virt-install --connect qemu:///system --name node4-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node4-control
+        sudo virt-install --connect qemu:///system --name node4-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node4-control
 
         node3controlmac=`grep  "mac address" node3-control | head -1 | cut -d "'" -f 2`
         node4controlmac=`grep  "mac address" node4-control | head -1 | cut -d "'" -f 2`
index 16fc381..63a2407 100644 (file)
@@ -79,7 +79,7 @@ lab:
         user: admin
         pass: admin
     floating-ip-range: 10.21.6.6,10.21.6.250,10.21.6.254,10.21.6.0/24
-    ext-port: "eth1"
+    ext-port: "br-eth1"
     dns: 8.8.8.8
     osdomainname:
 opnfv:
index 1b3a1aa..5523183 100644 (file)
@@ -110,7 +110,7 @@ lab:
     floating-ip-range: 172.16.120.20,172.16.120.62,172.16.120.254,172.16.120.0/24
     # Mutiple MACs seperated by space where MACs are from ext-ports across all network nodes.
     # eth1 of m4 since tags for networking are not yet implemented.
-    ext-port: "eth1"
+    ext-port: "br-eth1"
     dns: 8.8.8.8
     osdomainname:
 
index 0102e54..1915a3e 100644 (file)
@@ -94,7 +94,7 @@ lab:
         user: root
         pass: Huawei12#$
     floating-ip-range: 10.6.15.7,10.6.15.250,10.6.15.1,10.6.15.0/24
-    ext-port: "eth5"
+    ext-port: "br-enp4s0d1"
     dns: 8.8.8.8
     public-api-ip:
     osdomainname:
index 441b83a..8676bf5 100644 (file)
@@ -112,7 +112,7 @@ lab:
 #        user: root
 #        pass: root
     floating-ip-range: 10.5.15.6,10.5.15.250,10.5.15.1,10.5.15.0/24
-    ext-port: "eth5"
+    ext-port: "br-eth5"
     dns: 8.8.8.8
     osdomainname:
 opnfv:
index 251c860..9682aca 100644 (file)
@@ -112,7 +112,7 @@ lab:
 #        user: root
 #        pass: root
     floating-ip-range: 10.6.15.7,10.6.15.250,10.6.15.1,10.6.15.0/24
-    ext-port: "eth5"
+    ext-port: "br-eth5"
     dns: 8.8.8.8
     public-api-ip: 10.6.15.6
     osdomainname: api.maas
index 8f4afb1..6b90e81 100644 (file)
@@ -112,7 +112,7 @@ lab:
         user: root
         pass: root
     floating-ip-range: 10.9.15.6,10.9.15.250,10.9.15.1,10.9.15.0/24
-    ext-port: "eth1.905"
+    ext-port: "br-eth1.905"
     dns: 8.8.8.8
     osdomainname:
 opnfv:
index 369b6a1..107d1c2 100644 (file)
@@ -79,7 +79,7 @@ lab:
         user: ADMIN
         pass: ADMIN
     floating-ip-range: 10.10.10.6,10.10.10.250,10.10.10.1,10.10.10.0/24
-    ext-port: "eth1"
+    ext-port: "br-eth1"
     dns: 8.8.8.8
     osdomainname:
 opnfv:
diff --git a/labconfig/lenovo/pod1/labconfig.yaml b/labconfig/lenovo/pod1/labconfig.yaml
new file mode 100644 (file)
index 0000000..3efc663
--- /dev/null
@@ -0,0 +1,112 @@
+lab:
+  location: lenovo
+  racks:
+  - rack: pod1
+    nodes:
+    - name: rack-1-m1
+      architecture: x86_64
+      roles: [network,control]
+      nics:
+      - ifname: ens1f0
+        spaces: [admin]
+        mac: ["00:1E:67:CF:BB:54"]
+      - ifname: ens1f1
+        spaces: [public]
+        mac: ["90:E2:BA:85:4E:2D"]
+      power:
+        type: ipmi
+        address: 192.0.5.125
+        user: USERID
+        pass: PASSW0RD
+    - name: rack-1-m2
+      architecture: x86_64
+      roles: [compute,control,storage]
+      nics:
+      - ifname: ens1f0
+        spaces: [admin]
+        mac: ["00:1E:67:CF:B8:93"]
+      - ifname: ens1f1
+        spaces: [public]
+        mac: ["90:E2:BA:84:08:B9"]
+      power:
+        type: ipmi
+        address: 192.0.5.126
+        user: USERID
+        pass: PASSW0RD
+    - name: rack-1-m3
+      architecture: x86_64
+      roles: [compute,control,storage]
+      nics:
+      - ifname: ens1f0
+        spaces: [admin]
+        mac: ["00:1E:67:E0:08:7F"]
+      - ifname: ens1f1
+        spaces: [public]
+        mac: ["90:E2:BA:84:07:0E"]
+      power:
+        type: ipmi
+        address: 192.0.5.127
+        user: USERID
+        pass: PASSW0RD
+    - name: rack-1-m4
+      architecture: x86_64
+      roles: [compute,storage]
+      nics:
+      - ifname: ens1f0
+        spaces: [admin]
+        mac: ["00:1E:67:E0:08:B1"]
+      - ifname: ens1f1
+        spaces: [public]
+        mac: ["90:E2:BA:83:FD:81"]
+      power:
+        type: ipmi
+        address: 192.0.5.128
+        user: USERID
+        pass: PASSW0RD
+#    - name: rack-1-m5
+#      architecture: x86_64
+#      roles: [compute,storage]
+#      nics:
+#      - ifname: ens1f0
+#        spaces: [admin]
+#        mac: ["00:1E:67:E0:0A:4B"]
+#      - ifname: ens1f1
+#        spaces: [public]
+#        mac: ["90:E2:BA:75:22:75"]
+#      power:
+#        type: ipmi
+#        address: 192.0.5.129
+#        user: USERID
+#        pass: PASSW0RD
+    floating-ip-range: 172.21.159.6,172.21.159.100,172.21.159.1,172.21.159.0/24
+    ext-port: "br-ens1f1"
+    dns: 8.8.8.8
+    osdomainname:
+opnfv:
+    release: d
+    distro: xenial
+    type: nonha
+    openstack: Newton
+    sdncontroller:
+    - type: nosdn
+    storage:
+    - type: ceph
+      disk: /dev/sdb
+    feature: odl_l2
+    spaces:
+    - type: admin
+      bridge: brAdm
+      cidr: 192.0.5.0/24
+      gateway: 192.0.5.5
+      vlan:
+    - type: public
+      bridge: brPublic
+      cidr: 172.21.159.0/24
+      gateway: 172.21.159.1
+      vlan:
+    - type: external
+      bridge: brExt
+      cidr:
+      gateway: 10.240.71.1
+      ipaddress: 10.240.71.213
+      vlan:
index a5beed3..205700c 100644 (file)
@@ -95,7 +95,7 @@ lab:
         pass: pod1Admin
     floating-ip-range: 10.0.1.5,10.0.1.254,10.0.1.1,10.0.1.0/24
     public-api-ip: 10.0.1.4
-    ext-port: "eth1"
+    ext-port: "br-eth1"
     dns: 192.168.1.1
     osdomainname: pod1.opnfv.fr
 opnfv:
index 56a3827..98e7ec6 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: "eth1"
+    ext-port: "br-eth1"
     dns: 192.168.2.1
     osdomainname: pod2.opnfv.fr
 opnfv: