cfm-vagrant

Contrail Fabric Manager Vagrant POC and Demo

View the Project on GitHub

alt text Installation of Contrail Command

The 1st step after bringing up the topology is the Installation of Contrail Command, and for that Contrail Command will be installed on s-srv1. Please follow the following steps for installation and accessing the GUI after the installation.

Note: Contrail Command can be installed on your PC/Laptop or any other machine as well, but in our setup, we have allocated s-srv1 for Contrail Command alocated s-srv1 for Contrail Command

Contrail Command 5.0.1 GA Procedure

For Contrail Command GA please follow below steps:

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
vi /etc/docker/daemon.json

# Add following line to the file
{"insecure-registries": ["ci-repo.englab.juniper.net:5010"]}

# Svae changes & restart docker
systemctl restart docker

cd /opt
wget https://raw.githubusercontent.com/qarham/cfm-vagrant/master/docs/scripts/command_servers.yml

# Now please make changes in config file
vi command_servers.yml
# Use following command for internal registry
docker pull ci-repo.englab.juniper.net:5010/contrail-command-deployer:5.0-214

docker run -t --net host -v /opt/command_servers.yml:/command_servers.yml -d --privileged --name contrail_command_deployer ci-repo.englab.juniper.net:5010/contrail-command-deployer:5.0-214
# For external use following steps
docker login hub.juniper.net/contrail
# Provide username/password
# Once login pull Contrail Command image using
docker pull hub.juniper.net/contrail/contrail-command-deployer:5.0.1-0.214

# AFter that please use following command to bring contrail command up.  
docker run -t --net host -v /opt/command_servers.yml:/command_servers.yml -d --privileged --name contrail_command_deployer hub.juniper.net/contrail/contrail-command-deployer:5.0.1-0.214

Note Reference Contrail Comman Servers File

Now to check the progress of installation use “docker log” command

docker logs -f contrail_command_deployer

Here is recorded screen session for Contrail Command Installation

asciicast

Contrail Command GUI Access via FoxyProxy

Please use following links for FoxyProxy Setup and configuration.

# 1st step is open SSH session to the host node 
ssh root@10.87.65.30 -D 1080

Contrail Command GUI

How to add pre-provisioned Contrail Cluster in Contrail Command?

In case OpenStack/Contrail Cluster is up and running and you would like adding existing cluster into Contrail Command, please copy “instances.yml” file under “/opt” and also download “command_servers.yml” file, update “command_servers.yml” as per your host config and run following command.

docker run -t --net host -e orchestrator=openstack -e action=import_cluster -v /opt/command_servers.yml:/command_servers.yml -v /opt/instances.yml:/instances.yml -d --privileged --name contrail_command_deployer hub.juniper.net/contrail/contrail-command-deployer:5.0.1-0.214

References