Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Importing a Canonical Openstack Deployment Into Contrail Command

This document provides the steps needed to import a Canonical Openstack deployment into Contrail Command.

This procedure assumes that Contrail Command is already running in your Contrail Networking environment that is using Canonical Openstack as it’s orchestration platform. See How to Deploy Contrail Command and Import a Cluster Using Juju if you’d like to deploy Contrail Command and import the Contrail cluster into Contrail Command in an environment using Contrail Networking and Canonical Openstack.

Overview: Canonical Openstack Deployment into Contrail Command

Starting in Contrail Networking Release 2003, Canonical Openstack deployments can be managed using Contrail Command.

This document provides the steps needed to import a Canonical Openstack deployment into Contrail Command. Contrail Command can be used to manage the Canonical Openstack deployment after this procedure is complete.

This document makes the following assumptions about your environment:

  • A Canonical Openstack deployment managed by Contrail Networking is already operational.

  • Contrail Command is running in your environment. See Installing Contrail Command.

  • Contrail Command has access to the Juju jumphost and the Juju cluster.

Canonical Openstack is imported into Contrail Command using Juju in this procedure.

Importing Canonical Openstack Into Contrail Command

To import Canonical Openstack into Contrail Cloud:

  1. Install and start the Docker Engine.

    There are multiple ways to perform this step. In this example, Docker Community Edition version 18.03 is installed using yum install and yum-config-manager commands and started using the systemctl start docker command.

  2. Retrieve the contrail-command-deployer Docker image by logging into hub.juniper.net and entering the docker pull command.

    where <container_tag> is the container tag for the Contrail Command (UI) container deployment for the release that you are installing.

    The <container_tag> for any Contrail Release 21xx image can be found in README Access to Contrail Registry 21XX.

  3. Update the config.yml configuration file on the Contrail Command server.

    The configuration of the config.yml file is unique to your environment and complete documentation describing all config.yml configuration options is beyond the scope of this document.

    The following configuration parameters must be present in the config.yml file to support Canonical Openstack in Contrail Command:

    • ntpserver: <NTP_IP>.

      The NTP_IP variable is the IP address of the NTP server.

    • vrouter_gateway: <VROUTER_GATEWAY_IP>

      The VROUTER_GATEWAY_IP variable is the IP address of the vRouter gateway. The vrouter_gateway: parameter can be left empty, but it must be present.

    • container_registry: <CONTAINER_REGISTRY>

      The CONTAINER_REGISTRY variable is the path to the container registry. The CONTAINER_REGISTRY is hub.juniper.net/contrail in most deployments.

    • container_tag: <COMMAND_BUILD_TAG>

      The COMMAND_BUILD_TAG variable is the Contrail Command (UI) container deployment for the release that you are installing. For any Contrail Release 21xx image, you can retrieve this value from README Access to Contrail Registry 21XX.

    • contrail_container_tag: <CONTRAIL_BUILD_TAG>

      The CONTRAIL_BUILD_TAG variable is the Contrail build container for the release that you are installing. For any Contrail Release 21xx image, you can retrieve this value from README Access to Contrail Registry 21XX.

  4. Run the Contrail Command deployer.

    In the following example, Contrail Command is deployed from the Juju jump host at 172.31.40.101.

    The command variables:

    • juju_controller—(Required) The IP address of the Juju jump host. We define the Juju jump host in this context as the device that has installed the Juju CLI and is being used to run Juju commands. The Contrail Command server must have access to the Juju jump host at this IP address.

    • config_file—(Required) The path to the configuration file. This configuration file was created in the previous step of this procedure.

    • CCD_image—(Required) The Contrail Command deployer image.

    • delete_db—(Optional) Specifies whether the PostgreSQL database is deleted during the process. The PostgreSQL database is deleted by default. Enter no in this field if you do not want the PostgreSQL database deleted.

    • persist-rules—(Optional) Specify whether IP rules remain persistent across reboots.

    • juju_model_name—(Optional) The name of the Juju model. The name can be retrieved by entering the juju show-models command.

    • juju_controller_user—(Optional) The username of the Juju user on the Juju jump server.

    • juju_controller_password—(Optional) The password for the Juju user on the Juju jumpbox. This password is used if no SSH keys have been installed.

  5. (Optional) Track the progress of step 4.
  6. Verify that the Contrail Command containers are running:

    The contrail_command container is the GUI and the contrail_psql container is the database. Both containers should have a STATUS of Up.

    The contrail-command-deployer container should have a STATUS of Exited because it exits when the installation is complete.

  7. Open a web browser and enter https://<Contrail-Command-Server-IP-Address>:8079 as a URL. The Contrail Command home screen appears.

    Choose token from the drop-down menu. Enter the username and password combination to Juju as the credentials, and use admin_domain as the domain.

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.

Release
Description
2003
Starting in Contrail Networking Release 2003, Canonical Openstack deployments can be managed using Contrail Command.