#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`
#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
}
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
#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`
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`
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:
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:
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:
# 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:
# 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
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:
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:
--- /dev/null
+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:
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:
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: