Preparing For Installation
The Contrail Command server is not part of the Contrail cluster. It is used to provision and manage the cluster, IP fabric, and the overlay.
In this example, the Contrail Command server is set up as a VM with 4 CPUs, 32GB RAM, 100GB hard disk, and two NICs. The IP addresses and gateways are assigned to the NICs during installation of the OS.
After OS installation is complete, follow these steps to install and configure the Contrail Command server.
- Log in to the Contrail Command Server as root to stop
and disable the firewall with the following commands:
systemctl stop firewalld systemctl disable firewalld
- Run these commands to download and install the prerequisite
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-18.03.1.ce systemctl start docker systemctl enable docker
- Login to the registry at hub.juniper.net using your username
docker login hub.juniper.net --username <username> --password <password>
- Download the Contrail Command Deployer container. In this
example, you specify the tag value 2008.121 to specify
Contrail Networking Release 2008.
docker pull hub.juniper.net/contrail/contrail-command-deployer:2008.121
- Create a file named
command_servers.ymlon the Contrail Command server with the following configuration information:
--- command_servers: server1: ip: 10.100.70.216 #IP address of the Contrail Command server connection: ssh ssh_user: root ssh_pass: password #user defined root password sudo_pass: password #user defined sudo password ntpserver: x.x.x.x #NTP server IP registry_insecure: false container_registry: hub.juniper.net/contrail container_tag: 2008.121 container_registry_username: xxxxxxxxxx #your registry username container_registry_password: xxxxxxxxxx #your registry password config_dir: /etc/contrail contrail_config: database: type: postgres dialect: postgres password: <password> keystone: assignment: data: users: admin: password: <password> #user defined password for cluster login insecure: true client: password: <password>
ip—Specify the IP address of the Contrail Command server.
ssh_pass—Specify the SSH password for the root user on the Contrail Command server. For example, c0ntrail123
sudo_pass—Specify the sudo password on the Command server. For example, c0ntrail123.
ntpserver—Enter the IP address or host name of the NTP server. The same NTP server IP address should be used by all servers in the cluster.
container_tag—Specify the container tag to identify the build you want to pull. The container tag should match the tag value used when you downloaded the Contrail deployer in step 4.
container_registry—Specify the desired container registry along with a valid username and password. The value used in this example identifies the registry used for official Contrail Networking releases.
keystone users/password—Specify the username and password to login into the Command Server GUI. Normally, the same password is used for the postgres database and for the client.