Installing Contrail Service Orchestration
Copying the Installer Package to the startupserver_1 VM
After you have provisioned the VMs, perform the following steps:
- Copy the installer package file from the central CSO server
to the startupserver_1 VM.
scp cso<version>.tar.gz root@<startupserver_1 IP>:/root/
- Log in to the startupserver_1 VM as root.
Run
get_vm_details.sh
script to find the IP address of the startupserver_1 VM. Use SSH to access the VM. - Expand the installer package.
For example, if the name of the installer package is
cso<version>.tar.gz
:root@host:~/# tar –xvzf cso<version>.tar.gz
The contents of the installer package are placed in a directory with the same name as the installer package. In this example, the name of the directory is
cso<version>
. For KVM hypervisor:
Run the
deploy.sh
command.For ESXi hypervisor:
Run
deploy.sh
script and use an interactive script to create configuration files for the environment topology.Example output for HA deployment on ESXi hypervisor—
root@host:~/Contrail_Service_Orchestration_5.1.1./ deploy.sh
Do you need a Standalone/HA deployment (1/2) [2] Please select hypervisor (kvm/esxi) [esxi] ---> Please select esxi for this option. Enter the number of cluster groups [3]: ---> Please give the number of ESXi hosts as value Do all your VMs have same password for root [y]: Enter the password common for all the VMs: Confirm Password: Provide the list/comma separated VM IPs for cluster group 1 ---> Please provide the ips for all VMs spawned in host1(excluding VRR). Sample inputs: List of IPs: 192.168.10.5-192.168.10.10 Comma separated IPs: 192.168.10.5,192.168.10.8,192.168.10.12 List of IPs and Comma separated IPs: 192.168.10.5-192.168.10.10,192.168.10.12 Provide the list/comma separated VM IPs for cluster group 2 ---> Please provide the ips for all VMs spawned in host2(excluding VRR). Provide the list/comma separated VM IPs for cluster group 3 ---> Please provide the ips for all VMs spawned in host3(excluding VRR). Is CSO behind NAT (y/n) [y] --> Give y for this option. Provide routable IP for VRR1 ---> This should be the VRR reachable IP configured in vSRX Provide private IP for VRR1 ---> This should be the VRR VM ip Provide list/comma separated list of 10 IPs to be used for load balancers ---> Please provide the free ips to be used. You can assign free ips which are not used by the CSO VMs. Summary of IP Addresss used for VMs: k8-infra1: 192.168.10.2 monitoring1: 192.168.10.4 k8-microservices1: 192.168.10.3 contrail_analytics1: 192.168.10.6 startupserver_1: 192.168.10.5 Do you want to proceed(y/n) []: ---> Please give 'y' for this option if all the ips assignments are correct.
- Run the following
command to deploy microservices.
./python.sh micro_services/deploy_micro_services.py
- Run the following
command to load the data.
./python.sh micro_services/load_services_data.py
You can run ./get_vm_details.sh
script to find the IP addresses
for each component.