HowTo Install Mirantis Fuel 5.1/5.1.1 OpenStack with Mellanox Adapters Support (Ethernet Network)
Version 34
This post shows how to set up and configure Mirantis Fuel ver. 5.1/5.1.1 (OpenStack Icehouse based on CentOS 6.5) to support Mellanox ConnectX-3 adapters to work in SR-IOV mode for the VMs on the compute nodes, and in iSER (iSCSI over RDMA) transport mode for the storage nodes.
Related references:
- MLNX-OS User Manual - (located at support.mellanox.com )
- Planning Guide — Mirantis OpenStack v5.1 | Documentation
- Reference Architectures — Mirantis OpenStack v5.1 | Documentation
- HowTo Configure 56GbE Link on Mellanox Adapters and Switches
- HowTo upgrade MLNX-OS Software on Mellanox switches
- Mirantis Fuel ISO Download page
- HowTo Configure iSER Block Storage for OpenStack Cloud with Mellanox ConnectX-3 Adapters
- Mellanox CloudX, Mirantis Fuel 5.1 Solution Guide
- Movie - HowTo Install Mirantis Fuel 5.1 OpenStack with Mellanox Adapters
Before reading this post, Make sure you are familiar with Mirantis Fuel 5.1/5.1.1 installation procedures.
It is also recommended to watch the movie HowTo Install Mirantis Fuel 5.1 OpenStack with Mellanox Adapters
Setup Diagram:
Note: Besides the Fuel Master node, all nodes should be connected to all five networks.
Note: Server’s IPMI and the switches management interfaces wiring and configuration are out of scope.
You need to ensure that there is management access (SSH) to Mellanox Ethernet switch SX1036 to perform the configuration.
Setup BOM:
Component | Quantity | Description |
---|---|---|
Fuel Master server | 1 |
DELL PowerEdge R620
|
Cloud Controllers and Compute servers
| 6 |
DELL PowerEdge R620
|
Cloud Storage server | 1 |
Supermicro X9DR3-F
|
Admin (PXE) and Public switch | 1 | 1Gb switch with VLANs configured to support both networks |
Cloud Ethernet Switch | 1 | Mellanox SX1036 40/56Gb 36 port Ethernet |
Cables |
16 x 1Gb CAT-6e for Admin (PXE) and Public networks
7 x 56GbE copper cables up to 2m (MC2207130-XXX)
|
Note: You can use Mellanox ConnectX-3 PRO EN (MCX313A-BCCT) or Mellanox ConnectX-3 Pro VPI (MCX353-FCCT) adapter cards.
Storage server RAID Setup:
- 2 SSD drives in bays 0-1 configured in RAID-1 (Mirror): The OS will be installed on it.
- 22 SSD drives in bays 3-24 configured in RAID-10: The Cinder volume will be configured on the RAID drive.
Network Physical Setup:
- Connect all nodes to the Admin (PXE) 1GbE switch (preferably through the eth0 interface on board).
It is recommended to write the MAC address of the Controller and Storage servers to make Cloud installation easier (see Controller Node section below in Nodes tab). - Connect all nodes to the Public 1GbE switch (preferably through the eth1 interface on board).
- Connect port #1 (eth2) of ConnectX-3 Pro to SX1036 Ethernet switch (Private, Management, Storage networks).
Note: The interface names (eth0, eth1, p2p1, etc.) may vary between servers from different vendors.
Note: Port bonding is not supported when using SR-IOV over the ConnectX-3 adapter family.
Note: Port bonding is not supported when using SR-IOV over the ConnectX-3 adapter family.
Rack Setup Example:
Fuel Node:
Compute and Controller Nodes:
4. Configure the required VLANs and enable flow control on the Ethernet switch ports.
All related VLANs should be enabled on the 40/56GbE switch (Private, Management, Storage networks). On Mellanox switches, use the command flow below to enable VLANs (e.g. VLAN 1-100 on all ports).
Note: Refer to the MLNX-OS User Manual to get familiar with switch software (located at support.mellanox.com).
Note: Before start using the Mellanox switch, it is recommended to upgrade the switch to the latest MLNX-OS version.
switch > enable
switch # configure terminal
switch (config) # vlan 1-100
switch (config vlan 1-100) # exit
switch (config) # interface ethernet 1/1 switchport mode hybrid
switch (config) # interface ethernet 1/1 switchport hybrid allowed-vlan all
switch (config) # interface ethernet 1/2 switchport mode hybrid
switch (config) # interface ethernet 1/2 switchport hybrid allowed-vlan all
...
switch (config) # interface ethernet 1/36 switchport mode hybrid
switch (config) # interface ethernet 1/36 switchport hybrid allowed-vlan all
Flow control is required when running iSER (RDMA over RoCE - Ethernet). On Mellanox switches, run the following command to enable flow control on the switches (on all ports in this example):
switch (config) # interface ethernet 1/1-1/36 flowcontrol receive on force
switch (config) # interface ethernet 1/1-1/36 flowcontrol send on force
To save the configuration (permanently), run:
switch (config) # configuration write
Note: Flow control (global pause) is normally enabled by default on the servers. If it is disabled, run:
# ethtool -A <interface-name> rx on tx on
6. If you are running 56GbE, follow this example to set the link between the servers to the switch
from 40GbE to 56GbE: HowTo Configure 56GbE Link on Mellanox Adapters and Switches.
Networks Allocation (Example)
The example in this post is based on the network allocation defined in this table:
Network | Subnet/Mask | Gateway | Notes |
---|---|---|---|
Admin (PXE) | 10.20.0.0/24 | N/A |
The network is used to provision and manage Cloud nodes via the Fuel Master.
The network is enclosed within a 1Gb switch and has no routing outside.
This is the default Fuel network. |
Management | 192.168.0.0/24 | N/A |
This is the Cloud Management network.
The network uses VLAN 2 in SX1036 over 40/56Gb interconnect.
This is the default Fuel network.
|
Storage | 192.168.1.0/24 | N/A |
This network is used to provide storage services.
The network uses VLAN 3 in SX1036 over 40/56Gb interconnect.
This is the default Fuel network.
|
Public and
Neutron L3
| 10.7.208.0/24 | 10.7.208.1 |
Public network is used to connect Cloud nodes to an external network.
Neutron L3 is used to provide Floating IP for tenant VMs.
Both networks are represented by IP ranges within same subnet with routing to external networks.
All Cloud nodes which have Public IP and HA functionality require an additional Virtual IP.
For our example with 7 Cloud nodes we need 8 IPs in Public network range.
Consider a larger range if you are planning to add more servers to the cloud later.
In our build we will use range IP range 10.7.208.53 >> 10.7.208.76 for both Public and Neutron L3. IP allocation will be as follows:
|
Install the Fuel Master via ISO Image:
- Boot Fuel Master Server from the ISO as a virtual CD (click here for the image).
- Press the <TAB> key on the very first installation screen which says "Welcome to Fuel Installer" and update the kernel option from showmenu=no toshowmenu=yes and hit Enter. It will now install Fuel and reboot the server.
- After the reboot, boot from the local disk. The Fuel menu window will start.
- Network setup:
- Configure eth0 - PXE (Admin) network interface.Ensure the default Gateway entry is empty for the interface – the network is enclosed within the switch and has no routing outside.Select Apply.
- Configure eth1 – Public network interface.The interface is routable to LAN/internet and will be used to access the server.Configure static IP address, netmask and default gateway on the public network interface.Select Apply.
- Configure eth0 - PXE (Admin) network interface.Ensure the default Gateway entry is empty for the interface – the network is enclosed within the switch and has no routing outside.Select Apply.
- PXE SetupThe PXE network is enclosed within the switch.Do not make changes – proceed with defaults.Press Check button to ensure no errors are found.
- Time SyncCheck NTP availability (e.g. ntp.org) via Time Sync tab on the left.
Configure NTP server entries suitable for your infrastructure.
Press Check to verify settings. - Navigate to Quit Setup and select Save and Quit to proceed with the installation.
- Once the Fuel installation is done, you are provided with Fuel access details both for SSH and HTTP.
Access Fuel Web UI by http://10.7.208.53:8000. Use "admin" for both login and password.
OpenStack Environment:
Log into Fuel
- Open in WEB browser (for example: http://10.7.208.53:8000)
- Log into Fuel using "admin" for both login and password.
Creating a new OpenStack environment:
- Open a new environment in the Fuel dashboard. A configuration wizard will start.
- Configure the new environment wizard as follows:
- Name and Release
- Name: TEST
- Release: Icehouse on CentOS 6.5 (2014.1.1-5.1)
- Deployment Mode
- Multi-node with HA
- Compute
- KVM
- Network
- Neutron with VLAN segmentation
- Storage Backend
- Cinder: Default
- Glance : Default
- Additional Services
- None
- Finish
- Click Create button
- Name and Release
- When done, a new TEST environment will be created. Click on it and proceed with environment configuration.
Configuring the OpenStack Environment:
Settings Tab
Kernel parameters
Mellanox Neutron component
Note: The default number of supported virtual functions (VF) is 16. If you want to have more vNICs available, please contact Mellanox Support.
Configure Storage
- To use high performance block storage, check ISER protocol for volumes (Cinder) in the Storage section.
Note: "Cinder LVM over iSCSI for volumes" should remain checked (default). - Save the settings.
Public Network Assignment
Nodes Tab
Servers Discovery by Fuel
This section will assign Cloud roles to servers.
First of all, servers should be discovered by Fuel. For this to happen, make sure the servers are configured for PXE boot over Admin (PXE) network.
When done, reboot the servers and wait for them to be discovered.
Now you may add UNALLOCATED NODES to the setup.
First you may add Controller, Storage, and then Compute nodes.
Add Controller Nodes
- Click Add Node.
- Identify 3 controller node. Use the last 4 Hexa of its MAC address of interface connected to Admin (PXE) network.
Assign the node's role to be a Controller node. - Click Apply Changes.
Add Storage Node
- Click Add Node.
- Identify your controller node. Use the last 4 Hexa of its MAC address of interface connected to Admin (PXE) network.
In our example this is an only Supermicro server, so identification is easy.
Select this node to be a Storage - Cinder LVM node. - Click Apply Changes.
Add Compute Nodes
- Click Add Node.
- Select all the nodes that are left and assign them the Compute role.
- Click Apply Changes.
Configure Interfaces
In this step, we will map each network to a physical interface for each node.
You can choose and configure multiple nodes in parallel.
Fuel will not let you to proceed with bulk configuration if HW differences between selected nodes (like the number of network ports) are detected.
In this case the Configure Interfaces button will have an error icon (see below).
You can choose and configure multiple nodes in parallel.
Fuel will not let you to proceed with bulk configuration if HW differences between selected nodes (like the number of network ports) are detected.
In this case the Configure Interfaces button will have an error icon (see below).
The example below allows configuring 6 nodes in parallel. The 7th node (Supermicro storage node) will be configured separately.
- In this example, we set the Admin (PXE) network to eth0 and the Public network to eth1.
- The Storage, Private and Management networks should run on the ConnectX-3 adapters 40/56GbE port.This is an example:
- Click Back To Node List and perform network configuration for Storage Node
Note: Port bonding is not supported when using SR-IOV over ConnectX-3 Pro adapter family.
Configure Disks
There is no need to change the defaults for Controller and Compute nodes unless you are sure changes are required.
For the Storage node it is recommended to allocate only high performing RAID as Cinder storage. The small disk shall be allocated to Base System.
- Select Storage node
- Press Configure Disks button
- Click on sda disk bar, set Cinder allowed space to 0 MB and make Base System occupy the entire drive – press USE ALL ALLOWED SPACE.
- Press Apply.
Networks Tab
Public
Note: In our example, Public network does not use VLAN. If you use VLAN for Public network You should check Use VLAN tagging and set proper VLAN ID.
Management
Storage
Neutron L2 Configuration
In this example, we set the VLAN range to 4-100. It should be aligned with the switch VLAN configuration (above).
The base MAC is left untouched.
The base MAC is left untouched.
Neutron L3 Configuration:
Floating IP range: Configure it to be part of your Public network range, in this example, we select 10.7.208.62-10.7.208.76.
Internal Network: Leave CIDR and Gateway with no changes.
Name servers: Leave DNS servers with no changes.
Save Configuration
Click Save Settings at the bottom of page
Verify Networks
Click Verify Networks.
You should see the following message: Verification succeeded. Your network is configured correctly. Otherwise, check the log file for troubleshooting.
You should see the following message: Verification succeeded. Your network is configured correctly. Otherwise, check the log file for troubleshooting.
Deployment
Click the Deploy Changes button and view the installation progress at the nodes tab and view logs.
Health Test
- Click the Health Test tab.
- Check the Select All checkbox.
- Uncheck Platform services functional tests (image with special packages is required).
- Click Run Tests.
All tests should pass. Otherwise, check the log file for troubleshooting.
You can now safely use the cloud
Click the dashboard link at the top of the page.
Bug in Launchpad
Usernames and Passwords:
- Fuel server Dashboard user / password: admin / admin
- Fuel server SSH user / password: root / r00tme
- TestVM SSH user / password: cirros / cubswin:)
- To get controller node CLI permissions run: # source /root/openrc
Prepare Linux VM Image for CloudX:
In order to have network and RoCE support on the VM, MLNX_OFED (2.2-1 or later) should be installed on the VM environment.
MLNX_OFED may be downloaded from http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers
(In case of CentOS/RHEL OS, you can use virt-manager to open existing VM image and perform MLNX_OFED installation).
Known Issues:
Issue #
|
Description
| Workaround |
Bug in Launchpad
|
1
|
The default number of supported virtual functions (VFs),16, is not sufficient.
| To have more vNICs available, contact Mellanox Support. | |
2
|
Hypervisor crash on instance (VM) termination
| Please contact Mellanox Support. | |
3 | 56Gb links are discovered by Fuel as 10Gb | No action is required. Actual port speed is 56Gb. After deployment ports are re-discovered as 56Gb. |
Tidak ada komentar:
Posting Komentar