Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Setting Up the Overcloud for RHOSP 16.2

SUMMARY Follow this topic to setup the overcloud for a Contrail Networking deployment with RHOSP 16.2.

Follow this topic to setup the overcloud for a Contrail Networking deployment with RHOSP 16.2.

Contrail Networking was enhanced to operate with hosts using Red Hat Virtualization (RHV) in Contrail Networking Release 21.4.L2 or later. Prior to this enhancement, Contrail Networking was supported in environments with hosts using Kernel-based Virtual Machine (KVM) only.

These instructions apply to both environments unless otherwise noted. In cases where the running virtualization engine impacts this procedure, the steps to perform in environments using RHV or KVM are noted.

Configuring the Overcloud

Use this example procedure on the undercloud to set up the configuration for the overcloud.

  1. Specify the name server to be used:
  2. Retrieve and upload the overcloud images.
    1. Create the image directory:

    2. Retrieve the overcloud images from either the RDO project or from RHOSO 16.2.

    3. Upload the overcloud images:

  3. Prepare OpenStack’s bare metal provisioning (Ironic).

    The Ironic driver installation depends on the virtualization engine running for Red Hat Openstack:

    • Red Hat Virtualization (RHV, Contrail Networking Release 21.4.L2 and later): Use staging-ovirt to download the Ironic driver.

      See the Creating virtualized control planes document from Red Hat to enable the control plane with the staging-ovirt driver.

    • Kernel-based Virtual Machine (KVM, Contrail Networking Release 21.3 and earlier releases that support RHOSP16): Use the IPMI driver to download the Ironic driver.

      The IPMI driver download procedure is provided in these steps.

    Note:

    Make sure to combine the ironic_list files from the three overcloud KVM hosts.

    1. Add the overcloud VMs to Ironic:

    2. Introspect the overcloud node:

  4. Create Flavor:
  5. Copy the TripleO heat templates.
  6. Download and copy the Contrail heat templates from https://support.juniper.net/support/downloads.
  7. Create rhsm.yaml file with your RedHat credentials
  8. Create and upload the OpenStack containers.
    1. Create the OpenStack container file.

      Note:

      The container must be created based on the OpenStack program.

      OSP16.2

    2. Upload the OpenStack containers:

  9. Create and upload the Contrail containers.
    1. Create the Contrail container file.

      Note:

      This step is optional. The Contrail containers can be downloaded from external registries later.

      Here are few examples of importing Contrail containers from different sources:

      • Import from password protected public registry:

      • Import from Dockerhub:

      • Import from private secure registry:

      • Import from private insecure registry:

    2. Upload Contrail containers to the undercloud registry:

Customizing the Contrail Service with Templates (contrail-services.yaml)

This section contains information to customize Contrail services for your network by modifying the contrail-services.yaml file.

  • APPLY_DEFAULTS Settings customization - When Contrail is deployed for the first time, the default value of APPLY_DEFAULTS parameter in the ContrailDefaults section needs to be set to ’True’. This enables provisioning parameters present inside the template to use day0 configuration whenever a config provisioning container is restarted. Thus, the provisioning parameters are template driven and any changes to Contrail settings should be done through TripleO templates.

    Contrail Networking allows you to configure some global configuration parameters like VXLAN network id mode, linklocal configuration, IBGP auto mesh configuration, enabling 4byte_AS, and changing BGP Global ASN through its web user interface. If you want to manage your cluster through web user interface, then you need to set APPLY_DEFAULTS=False in ContrailDefaults section and deploy your cluster again by running openstack overcloud deploy. This additional step is required because when you have changed Contrail global configuration parameters through web user interface, then there is a possibility for these global configuration parameters to be overwritten if any config provisioner container is restarted. In order to avoid these values to be overwritten, set APPLY_DEFAULTS as ’False’ and deploy Contrail again by running openstack overcloud deploy command. As a result, the global configuration parameters remain unchanged as provisioning is not executed again.

    For example, if you set APPLY_DEFAULTS=False through TripleO template, deploy your Contrail cluster, set VxLAN Identifier Mode to ’User Configured’ from web user interface, and restart config provisioner container, then VxLAN Identifier Mode will remain ’User Configured’ after the restart of config provisioner container. On the contrary, if APPLY_DEFAULTS is set to True, then after the restart of config provisioner container, VxLAN Identifier Mode will change to its default value, which is Automatic.

    For example, if you set APPLY_DEFAULTS=False through TripleO template, deploy your Contrail cluster, set VxLAN Identifier Mode to ’User Configured’ from web user interface, and restart config provisioner container, then VxLAN Identifier Mode will remain ’User Configured’ after the restart of config provisioner container. On the contrary, if APPLY_DEFAULTS is set to True, then after the restart of config provisioner container, VxLAN Identifier Mode will change to its default value, which is Automatic.

  • Contrail Services customization

  • Contrail registry settings

    Here are few examples of default values for various registries:

    • Public Juniper registry

    • Insecure registry

    • Private secure registry

  • Contrail Container image settings

Customizing the Contrail Network with Templates

Overview

In order to customize the network, define different networks and configure the overcloud nodes NIC layout. TripleO supports a flexible way of customizing the network.

The following networking customization example uses network as:

Table 1: Network Customization

Network

VLAN

overcloud Nodes

provisioning

-

All

internal_api

710

All

external_api

720

OpenStack CTRL

storage

740

OpenStack CTRL, Computes

storage_mgmt

750

OpenStack CTRL

tenant

-

Contrail CTRL, Computes

Roles Configuration (roles_data_contrail_aio.yaml)

The networks must be activated per role in the roles_data file:

OpenStack Controller

Compute Node

Contrail Controller

Compute DPDK

Compute SRIOV

Compute CSN

Network Parameter Configuration (contrail-net.yaml)

Network Interface Configuration (*-NIC-*.yaml)

NIC configuration files exist per role in the following directory:

OpenStack Controller

Contrail Controller

Compute Node

Advanced vRouter Kernel Mode Configuration

In addition to the standard NIC configuration, the vRouter kernel mode supports VLAN, Bond, and Bond + VLAN modes. The configuration snippets below only show the relevant section of the NIC template configuration for each mode.

VLAN

Bond

Bond + VLAN

Advanced vRouter DPDK Mode Configuration

In addition to the standard NIC configuration, the vRouter DPDK mode supports Standard, VLAN, Bond, and Bond + VLAN modes.

Network Environment Configuration:

Enable the number of hugepages:

See the following NIC template configurations for vRouter DPDK mode. The configuration snippets below only show the relevant section of the NIC configuration for each mode.

Standard

VLAN

Bond

Bond + VLAN

Advanced vRouter SRIOV + Kernel Mode Configuration

vRouter SRIOV + Kernel mode can be used in the following combinations:

  • Standard

  • VLAN

  • Bond

  • Bond + VLAN

Network environment configuration:

Enable the number of hugepages:

SRIOV PF/VF settings:

The SRIOV NICs are not configured in the NIC templates. However, vRouter NICs must still be configured. See the following NIC template configurations for vRouter kernel mode. The configuration snippets below only show the relevant section of the NIC configuration for each mode.

VLAN

Bond

Bond + VLAN

Advanced vRouter SRIOV + DPDK Mode Configuration

vRouter SRIOV + DPDK can be used in the following combinations:

  • Standard

  • VLAN

  • Bond

  • Bond + VLAN

Network environment configuration:

Enable the number of hugepages

SRIOV PF/VF settings

The SRIOV NICs are not configured in the NIC templates. However, vRouter NICs must still be configured. See the following NIC template configurations for vRouter DPDK mode. The configuration snippets below only show the relevant section of the NIC configuration for each mode.

Standard

VLAN

Bond

Bond + VLAN

Installing Overcloud

Perform the following procedure to install Overcloud.

  1. Deployment:
  2. Validation Test: