Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Installing OpenStack Octavia LBaaS with RHOSP in Contrail Networking

Contrail Networking Release 2005 supports Octavia as LBaaS. The deployment supports RHOSP and Juju platforms.

With Octavia as LBaaS, Contrail Networking is only maintaining network connectivity and is not involved in any load balancing functions.

For each OpenStack load balancer creation, Octavia launches a VM known as amphora VM. The VM starts the HAPROXY when listener is created for the load balancer in OpenStack. Whenever the load balancer gets updated in OpenStack, amphora VM updates the running HAPROXY configuration. The amphora VM is deleted on deleting the load balancer.

Contrail Networking provides connectivity to amphora VM interfaces. Amphora VM has two interfaces; one for management and the other for data. The management interface is used by the Octavia services for the management communication. Since, Octavia services are running in the underlay network and amphora VM is running in the overlay network, SDN gateway is needed to reach the overlay network. The data interface is used for load balancing.

Follow the procedure to install OpenStack Octavia LBaaS with Contrail Networking:

  1. Deploy RHOSP13 with Contrail Networking without Octavia.
  2. Make a copy of tripleo-heat-templates/docker/services/octavia/octavia-deployment-config.yaml file.
  3. Make the following changes in generate_certs section of the tripleo-heat-templates/docker/services/octavia/octavia-deployment-config.yaml file.
  4. Deploy RHOSP13 with Octavia services.
  5. Rollback changes in tripleo-heat-templates/docker/services/octavia/octavia-deployment-config.yaml file.

Here is an example for creating and testing load balancer:


  • You must have connectivity between Octavia controller and amphora instances,

  • You must have OpenStack services into LXD containers.

  • You must have separate interfaces for control plane and data plane.

  1. Create private network.

  2. Create security group.

  3. Check available flavors and images. You can create them, if needed.

  4. Create two servers for load balancer.

  5. Create additional server to test load balancer.

  6. Check status and IP addresses.

  7. Create simple HTTP server on every cirros. Login on both the cirros instances and run following commands:

  8. Create load balancer

    Make sure provisioning_status is Active.

  9. Setup load balancer

    IP addresses and belong to VMs created with test http server in step 7.

  10. Check the status of load balancer.

  11. Login to load balancer client and verify if round robin works.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Contrail Networking Release 2005 supports Octavia as LBaaS.