ON THIS PAGE
Deploying Contrail Cluster using the Contrail Command UI
This example topic describes how to use the Contrail Command User interface (UI) to deploy a Contrail Cluster starting with Contrail Release 5.0.1.
Requirements
Contrail Controller — 8 vCPU, 64G memory, 300G storage
OpenStack Controller — 4 vCPU , 32G memory, 100G storage
Contrail Server Node (CSN) — 4 vCPU, 16G memory, 100G storage
Compute nodes— Dependent on the workloads
Overview
Contrail Cluster is an OpenStack orchestration coupled with the Contrail Networking plugin.
Topology
Consider a sample cluster topology, with a non-HA environment of one Contrail Controller and one OpenStack Controller, one compute node and one CSN, as displayed in Figure 1.
Configuration
Deploying a Contrail Cluster
Step-by-Step Procedure
To deploy a Contrail Cluster using Contrail Command, perform the following steps.
Add physical servers. You can add a server in the following two ways:
One by one
CSV file bulk import
Note:Create server login credentials before adding the servers.
One by one: You can add each server one by one. To add servers one by one, the following mandatory parameters should be entered.
Hostname, Management IP address and the Management Interface.
CSV file bulk import: You can upload a CSV file which contains the details of each server. This CSV file must conform to the Contrail Command format. You can download the CSV template from Contrail Command and reuse the template as per your requirements. To download a sample CSV file, navigate to Infrastructure > Servers > Add Servers in the Contrail Command UI.
Use the Bulk Import option for large deployments. Bulk Import option requires a CSV file input. For large deployments, use the Bulk Import (csv) option. Click Bulk Import (csv), to download the template. A sample CSV file is shown here:
Workload Type,HostName,Management IP,Disk Partition,Network Interface,MAC address,IPMI Driver,IPMI Address,IPMI UserName,IPMI Password,Memory mb,CPU's,CPU Arch,Local gb,Capabilities,Number of Network Interfaces,Interface Name,Interface MAC Address,Interface IP,Enable PXE,Interface Name,Interface MAC Address,Interface IP,Enable PXE physical,5c10s9,10.87.74.69,,enp4s0f0,,,,,,,,,,,2,enp4s0f0,,10.87.74.69,,ens2f0,,10.1.0.2, physical,5c10s7-node1,10.87.74.65,,eno1,,,,,,,,,,,2,eno1,,10.87.74.65,,ens2f1,,10.1.0.3, physical,5c10s7-node3,10.87.74.67,,eno1,,,,,,,,,,,2,eno1,,10.87.74.67,,ens2f1,,10.1.0.67, physical,5c10s12,10.87.74.71,,eno1,,,,,,,,,,,2,eno1,,10.87.74.71,,ens1f0,,10.1.0.66,
Note:The demo topology above has only one compute node. If you are deploying additional compute nodes, you must include them in the CSV file.
Figure 2: Add ServerCreate a cluster.
If Container registry = hub.juniper.net/contrail . This registry is secure. Unselect the Insecure box. Also, Contrail version = contrail_container_tag for your release of Contrail as listed in README Access for Contrail.
Default vRouter Gateway = Default gateway for the compute nodes. If any one of the compute nodes has a different default gateway than the one provided here, enter that gateway in 5 and 6 for service nodes.
Set the order of Encapsulation Priority for the EVPN supported methods - MPLS over UDP, MPLS over GRE And VxLAN.
VXLAN, MPLSoUDP, MPLSoGRE
Select Show Advanced Options. Add the following configuration parameters:
CONTROLLER_NODES = List of comma separated mgmt interface IP addresses of the Contrail controller
CONTROL_NODES = List of comma seperated data interface IP addresses of the Contrail controller
TSN_NODES = List of comma seperated data interface IP addresses of the Contrail service nodes
CONTRAIL_CONTAINER_TAG = contrail_container_tag-ocata or container_tag-queens
Figure 3: Create ClusterSelect the contrail-control node.
Figure 4: Select Control NodesSelect the orchestration node.
Select Show Advanced option to customize your deployment and then select Orchestration Nodes.
In order to run Openstack services on the control data network, set the following parameters:
Control & Data Network Virtual IP address: It is an internal VIP. e.g. - 10.87.74.100
Management Network Virtual IP address: It is an external VIP. e.g. - 10.1.0.100
keepalived_virtual_router_id: It is to be added as a key value pair. It can be set to any value between 0-255
Add the following under custom configuration for VM based setup:
nova.conf: | [libvirt] virt_type=qemu cpu_mode=none
Note:Minimum 8 indent spaces are required for lines following the nova.conf.
In Contrail Command, key-value pairs handle parameters that be enabled or disabled in Kolla Global.
Set the following in Kolla Globals:
enable_ironic = yes enable_swift = yes upgrade_kernel = yes
If Ironic is not needed and if you are not going to use Life Cycle Management in Contrail Command then you need not deploy Ironic.
Swift can be enabled for Image management uses case, this parameter is disabled by default.
Compute node kernel version = kernel-3.10.0-862.3.2.el7.x86_64; Else kernel upgrade is required.
To configure kolla password add keystone_admin_password<password> key-value pair in the kolla passwords section. This password will be used for logging onto the contrail command UI after the provisioning completes.
Figure 5: Select Orchestrator NodesSelect the Openstack (orchestration) node.
Select the Compute Nodes. For each compute node, enter the gateway, if it is different from what was added in the global parameters in 2. Then set the mode.
As of now, only Kernel mode is supported
Figure 6: Select Compute NodesSelect the Contrail Service Node.
Figure 7: Select Contrail Service NodesVerify the summary of your cluster configuration and click Provision.
Figure 8: Verify Summary