User Tools

Site Tools


storperf:pharos-b

StorPerf Pharos Lab for Brahmaputra

Intel POD 9 has been assigned to StorPerf for final integration testing in Pharos.

You will need a GPG key (https://fedoraproject.org/wiki/Creating_GPG_Keys) in order to get access to the POD, so anyone interested in helping, please be sure to get set up with Pharos access.

Configuration

StorPerf Pharos testing will use FUEL for its base installation and follow the directions in How to Install and Run StorPerf to set up.

First thing is to bring the Jump Host up to date:

yum udpate
yum install -y virt-install virt-viewer
reboot

Jump host pod9-urb-jump has Xauth installed and ssh X forwarding enabled. FUEL ISO is downloaded and a new VM is created using that.

XAuth Setup:

yum install xauth

Edit /etc/ssh/sshd_config to read:

X11Forwarding yes
X11UseLocalhost no

Restart sshd:

service sshd reload

Installing FUEL Master

Download FUEL (Replace as needed)

wget http://artifacts.opnfv.org/fuel/opnfv-2016-02-10_09-45-08.iso

Set up network bridges:

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
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
export DEV=enp2s0f0
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
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
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:

/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=bradmin,model=virtio --os-type=linux --os-variant=rhel6 --vnc

Note: The following must be done in the virt-viewer UI.

Network setup:

eth0: 10.9.1.2       netmask 255.255.255.0   gw 10.9.1.1

Installing Controller Node

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.

The Controller will sit on all the bridged networks, except the DMZ:

  1. bradmin: PXE
  2. brmanagement
  3. brprivate
  4. brpublic
  5. brstorage
/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.

storperf/pharos-b.txt · Last modified: 2016/03/03 17:11 by Mark Beierl