This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
storperf:pharos-b [2016/02/10 16:20] Mark Beierl [Installing FUEL Master] |
storperf:pharos-b [2016/03/03 17:11] (current) Mark Beierl [Installing Controller Node] |
||
---|---|---|---|
Line 35: | Line 35: | ||
wget http://artifacts.opnfv.org/fuel/opnfv-2016-02-10_09-45-08.iso | wget http://artifacts.opnfv.org/fuel/opnfv-2016-02-10_09-45-08.iso | ||
- | | ||
- | Network Assignment: | + | Set up network bridges: |
- | As I am not planning on having the two compute nodes be publicly routable over the 10.2.117.0/24 subnet, I am seconding one of the IP addresses from pod9-wcp-node1: 10.2.117.143. This way we can access FUEL and the FUEL UI directly: | + | export DEV=enp1s0f0 |
+ | export BR=brdmz | ||
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
- | Inside FUEL master, the following interfaces will be used: | + | export DEV=enp1s0f1 |
+ | export BR=bradmin | ||
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
- | Public Subnet IF0: 10.2.117.0/24 | + | export DEV=enp2s0f0 |
- | FUEL Admin (PXE) Subnet IF1: 10.9.1.0/24 | + | export BR=brprivate |
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
- | Set up network bridges: | + | export DEV=enp2s0f0.904 |
+ | export BR=brmanagement.904 | ||
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo TYPE=Bridge >> /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | |||
+ | export DEV=enp2s0f1 | ||
+ | export BR=brstorage | ||
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | |||
+ | export DEV=enp2s0f1.905 | ||
+ | export BR=brpublic | ||
+ | cp -p /etc/sysconfig/network-scripts/ifcfg-{$DEV,$BR} | ||
+ | sed -i -e'/HWADDR/d' -e'/UUID/d' -e"s/$DEV/$BR/" /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo TYPE=Bridge >> /etc/sysconfig/network-scripts/ifcfg-$BR | ||
+ | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
+ | echo BRIDGE=$BR >> /etc/sysconfig/network-scripts/ifcfg-$DEV | ||
- | cp -p /etc/sysconfig/network-scripts/ifcfg-{enp1s0f0,br0} | ||
- | sed -i -e'/HWADDR/d' -e'/UUID/d' -e's/enp1s0f0/br0/' -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-br0 | ||
- | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f0 | ||
- | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f0 | ||
- | echo BRIDGE=br0 >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f0 | ||
- | | ||
- | cp -p /etc/sysconfig/network-scripts/ifcfg-{enp1s0f1,br1} | ||
- | sed -i -e'/HWADDR/d' -e'/UUID/d' -e's/enp1s0f1/br1/' -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-br1 | ||
- | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f1 | ||
- | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f1 | ||
- | echo BRIDGE=br1 >> /etc/sysconfig/network-scripts/ifcfg-enp1s0f1 | ||
- | | ||
- | cp -p /etc/sysconfig/network-scripts/ifcfg-{enp1s1f0,br2} | ||
- | sed -i -e'/HWADDR/d' -e'/UUID/d' -e's/enp1s1f0/br2/' -e's/Ethernet/Bridge/' /etc/sysconfig/network-scripts/ifcfg-br2 | ||
- | echo DELAY=0 >> /etc/sysconfig/network-scripts/ifcfg-enp1s1f0 | ||
- | echo 'BOOTPROTO="none"' >> /etc/sysconfig/network-scripts/ifcfg-enp1s1f0 | ||
- | echo BRIDGE=br2 >> /etc/sysconfig/network-scripts/ifcfg-enp1s1f0 | ||
- | | ||
service network restart | service network restart | ||
+ | |||
+ | Network Assignment: | ||
+ | |||
+ | Inside FUEL master, the following interfaces will be used: | ||
+ | |||
+ | Admin (FUEL PXE) Subnet IF1: 10.9.1.0/24 | ||
Create fuel master: | Create fuel master: | ||
/usr/bin/qemu-img create -f qcow2 -o preallocation=metadata /var/lib/libvirt/images/fuel-master.qcow2 200G | /usr/bin/qemu-img create -f qcow2 -o preallocation=metadata /var/lib/libvirt/images/fuel-master.qcow2 200G | ||
- | virt-install --name=fuel-master --ram=16384 --vcpus=8 --accelerate --disk path=/var/lib/libvirt/images/fuel-master.qcow2,format=qcow2,bus=virtio --cdrom opnfv-2016-02-10_09-45-08.iso --network bridge=br1,model=virtio --network bridge=br0,model=virtio --os-type=linux --os-variant=rhel6 --vnc | + | virt-install --name=fuel-master --ram=16384 --vcpus=8 --accelerate --disk path=/var/lib/libvirt/images/fuel-master.qcow2,format=qcow2,bus=virtio --cdrom opnfv-2016-02-10_09-45-08.iso --network bridge=bradmin,model=virtio --os-type=linux --os-variant=rhel6 --vnc |
| | ||
- | **Note**: The following must be done in the virt-viewer UI. Also, I cannot seem to assign a default GW to eth0, so I have to put the PXE network as eth0 and the public network as eth1. | + | **Note**: The following must be done in the virt-viewer UI. |
Network setup: | Network setup: | ||
- | eth0: 10.9.1.2 netmask 255.255.255.0 no gw | + | eth0: 10.9.1.2 netmask 255.255.255.0 gw 10.9.1.1 |
- | eth1: 10.2.117.143 netmask 255.255.255.0 gw 10.2.117.1 | + | |
==== Installing Controller Node ==== | ==== Installing Controller Node ==== | ||
- | Again, we are going to use virt-manager for this so we don't take up one of the two physical servers assigned to us. | + | The controller and compute nodes are now all bare metal, so nothing further is needed. |
+ | |||
+ | The following was instructions from trying to create a controller VM node. I never did figure out how to deal with the VLANs inside the VM, so the kind folks at Pharos gave us another bare metal node to act as the controller. | ||
- | Create a new VM with: | + | The Controller will sit on all the bridged networks, except the DMZ: |
- | 8 CPUs | + | - bradmin: PXE |
- | 16 GB RAM | + | - brmanagement |
- | 100 GB Disk | + | - brprivate |
- | NIC 1: Public Subnet 10.9.15.0/24 (DHCP) | + | - brpublic |
- | NIC 2: VPN Access Subnet 10.2.117.0/24 | + | - brstorage |
- | NIC 3: OpenStack Network 10.9.12.0/24 | + | |
+ | /usr/bin/qemu-img create -f qcow2 -o preallocation=metadata /var/lib/libvirt/images/controller.qcow2 200G | ||
+ | virt-install --pxe --name=controller --ram=16384 --vcpus=8 --accelerate --disk path=/var/lib/libvirt/images/controller.qcow2,format=qcow2,bus=virtio --os-type=linux --os-variant=rhel6 --vnc --network bridge=bradmin,model=virtio --network bridge=brmanagement,model=virtio --network bridge=brprivate,model=virtio --network bridge=brpublic,model=virtio --network bridge=brstorage,model=virtio | ||
+ | Once booted, this should show up in the FUEL UI. Assign it the controller role. |