Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring Contrail Command

The Contrail Command user interface (UI) is supported starting with Contrail Release 5.0.1. Contrail Command is an intuitive, wizard-based UI which provides automated work flows such as the following:

  • Contrail cluster deployment (Kolla-based OpenStack cluster)

  • Automating the data center IP fabric

  • Orchestrating virtual machines and bare metal servers

Requirements

The system requirements to install the Contrail Command server are:

  • A VM or physical server with:

    • 8 vCPUs

    • 64 GB RAM

    • 300 GB disk out of which 256 GB is allocated to /root directory.

  • Internet access to and from the physical server, hereafter referred to as the Contrail Command server

  • (Recommended) x86 server with CentOS 7.5 as the base OS to install Contrail Command

Overview

Contrail Command is an intuitive, wizard-based user interface (UI) to manage private and public clouds, physical and virtual workloads and devices.

Configuration

Prerequisite

docker-py is obsolete in Contrail Release 5.0.2. You must remove docker-py and docker Python packages from all the nodes where you want to install the Contrail Command UI.

Procedure

Step-by-Step Procedure

Perform the following steps to configure and install Contrail Command.

  1. Install Docker on the Contrail Command server. These packages are necessary to automate the deployment of Contrail Command software.

    yum install -y yum-utils device-mapper-persistent-data lvm2

    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

    yum install -y docker-ce

    systemctl start docker

  2. Download the contrail-command-deployer Docker container image to deploy contrail-command (contrail_command, contrail_mysql containers) from hub.juniper.net. Allow Docker to connect to the private secure registry.

    docker login hub.juniper.net --username <container_registry_username> --password <container_registry_password>

    Pull Contrail-Command-Deployer Container from the private secure registry.

    docker pull hub.juniper.net/contrail/contrail-command-deployer:<container_tag>

    Example, for container_tag: 5.0.1-0.214, use the following command:

    docker pull hub.juniper.net/contrail/contrail-command-deployer:5.0.1-0.214

  3. Create the input configuration command_servers.yml file.

    Use the Sample command_servers.yml File to create the command_servers.yml file.

  4. Start the Contrail_Command_Deployer container to deploy the Contrail-Command server.

    docker run -t --net host -v ABSOLUTE_PATH_TO_COMMAND_SERVERS_FILE:/command_servers.yml -d --privileged --name contrail_command_deployer hub.juniper.net/contrail/contrail-command-deployer:<container_tag>

    ABSOLUTE_PATH_TO_COMMAND_SERVERS_FILE—path to the command_servers.yml file that you created in step 3.

    Example, for container_tag: 5.0.1-0.214, use the following command:

    docker run -t --net host -v /root/command_servers.yml:/command_servers.yml -d --privileged --name contrail_command_deployer hub.juniper.net/contrail/contrail-command-deployer:5.0.1-0.214

    The contrail_command and contrail_mysq Contrail Command containers are deployed.

  5. (Optional) You can also upgrade Contrail-Command UI without deleting existing database information. To update contrail_command container and not make changes to the database container, use the following command.

    docker run -t --net host -e delete_db=no -v <ABSOLUTE_PATH_TO_COMMAND_SERVERS_FILE>:/command_servers.yml -d --privileged --name contrail_command_deployer hub.juniper.net/contrail/contrail-command-deployer:<container_tag>

    Note:

    Code changes that involve schema modifications require updating the database container as well. Step 5 is recommended only if the UI application requires an update.

  6. (Optional) Track the progress of Step 4.

    docker logs -f contrail_command_deployer

  7. Once the playbook execution completes, log in to Contrail Command using https://Contrail-Command-Server-IP-Address:9091. Use the same user name and password that was entered in 3. Default username is admin and password is contrail123.

Sample command_servers.yml File