Jump to: navigation, search

Difference between revisions of "Mellanox-Neutron-Liberty-Redhat-Ethernet"

m (RDO installation)
Line 26: Line 26:
 
  yum install -y openstack-packstack
 
  yum install -y openstack-packstack
  
2. Prepare answer file
+
2. Modify answer file
# packstack --gen-answer-file=packstack.sriov
 
 
 
3. Modify answer file
 
 
  packstack --provision-demo=n --nagios-install=n --os-swift-install=n --os-ceilometer-install=n --os-neutron-ml2-type-drivers=flat,vlan --os-neutron-ml2-tenant-network-types=vlan --os-neutron-ml2-mechanism-drivers=openvswitch,mlnx --os-neutron-ml2-vlan-ranges=default:31:40 --use-epel=y --os-compute-hosts=10.209.24.105,10.209.24.106 --keystone-admin-passwd=admin --keystone-demo-passwd=demo --novacompute-privif=enp5s0 --novanetwork-pubif=em1 --novanetwork-privif=enp5s0 --os-neutron-ovs-bridge-mappings=default:br-enp5s0,extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-enp5s0:enp5s0 --gen-answer-file=answerfile.cfg
 
  packstack --provision-demo=n --nagios-install=n --os-swift-install=n --os-ceilometer-install=n --os-neutron-ml2-type-drivers=flat,vlan --os-neutron-ml2-tenant-network-types=vlan --os-neutron-ml2-mechanism-drivers=openvswitch,mlnx --os-neutron-ml2-vlan-ranges=default:31:40 --use-epel=y --os-compute-hosts=10.209.24.105,10.209.24.106 --keystone-admin-passwd=admin --keystone-demo-passwd=demo --novacompute-privif=enp5s0 --novanetwork-pubif=em1 --novanetwork-privif=enp5s0 --os-neutron-ovs-bridge-mappings=default:br-enp5s0,extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-enp5s0:enp5s0 --gen-answer-file=answerfile.cfg
  
4. Run packstack
+
3. Run packstack
 
  # packstack --answer-file=answerfile.cfg
 
  # packstack --answer-file=answerfile.cfg
 +
 
==Configuration==
 
==Configuration==
 
[[SR-IOV-Passthrough-For-Networking-Liberty|Configure SR-IOV]]
 
[[SR-IOV-Passthrough-For-Networking-Liberty|Configure SR-IOV]]

Revision as of 05:40, 5 November 2015

Ethernet Configuration with Mellanox

SR-IOV Networking in OpenStack Liberty

OpenStack Juno added inbox support to request VM access to virtual network via SR-IOV NIC. With the introduction of SR-IOV based NICs, the traditional virtual bridge is no longer required. Each SR-IOV port is associated with a virtual function (VF). SR-IOV ports may be provided by Hardware-based Virtual Ethernet Bridging (HW VEB); or they may be extended to an upstream physical switch (IEEE 802.1br). There are two ways that SR-IOV port may be connected:

  • directly connected to its VF
  • connected with a macvtap device that resides on the host, which is then connected to the corresponding VF

Prerequisites

  • Clean Red Hat 7.1
  • A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge.
  • All nodes equipped with Mellanox ConnectX®-3 Network Adapter [1]
  • Mellanox OFED 2.4 or greater installed on all nodes. Please refer to Mellanox website for the latest OFED: [2]
  • SR-IOV enabled on all compute nodes. For more information, please refer to Mellanox Community click [3].
  • The software package iproute2 [4] installed on all Compute nodes
  • Add repository
yum -y install yum-plugin-priorities
cd /etc/yum.repos.d/
sudo wget http://trunk.rdoproject.org/centos7-liberty/delorean-deps.repo
sudo wget http://trunk.rdoproject.org/centos7-liberty/current-passed-ci/delorean.repo
yum update -y

RDO installation

To install and configure packstack

1. Install packstack

yum install -y openstack-packstack

2. Modify answer file

packstack --provision-demo=n --nagios-install=n --os-swift-install=n --os-ceilometer-install=n --os-neutron-ml2-type-drivers=flat,vlan --os-neutron-ml2-tenant-network-types=vlan --os-neutron-ml2-mechanism-drivers=openvswitch,mlnx --os-neutron-ml2-vlan-ranges=default:31:40 --use-epel=y --os-compute-hosts=10.209.24.105,10.209.24.106 --keystone-admin-passwd=admin --keystone-demo-passwd=demo --novacompute-privif=enp5s0 --novanetwork-pubif=em1 --novanetwork-privif=enp5s0 --os-neutron-ovs-bridge-mappings=default:br-enp5s0,extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-enp5s0:enp5s0 --gen-answer-file=answerfile.cfg

3. Run packstack

# packstack --answer-file=answerfile.cfg

Configuration

Configure SR-IOV

SDN Mechanism Driver

SDN Mechanism Driver allows NEO to configure dynamically VLANs on the Mellanox Switches. Further Reading

Ceilometer

The Mellanox Ceilometer SR-IOV module allows the OpenStack Ceilometer to collect measurements of SR-IOV counters.

More details about applying Mellanox Ceilometer module can be found here