Deploying Contrail Cluster using Contrail-Command and instances.yml
Contrail Release 5.0.1 supports deploying a Contrail cluster using Contrail Command and the instances.yml file.
System Requirements
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 (Minimal ISO) as the base OS to install Contrail Command
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.
pip uninstall docker-py docker
Configuration
Perform the following steps to deploy a Contrail cluster using Contrail Command and the instances.yml file.
Sample instances.yml File
global_configuration: CONTAINER_REGISTRY: hub.juniper.net/contrail CONTAINER_REGISTRY_USERNAME: < container_registry_username > CONTAINER_REGISTRY_PASSWORD: < container_registry_password > provider_config: bms: ssh_pwd: <Pwd> ssh_user: root ntpserver: <NTP Server> domainsuffix: local instances: bms1: provider: bms ip: <BMS IP> roles: config_database: config: control: analytics_database: analytics: webui: vrouter: openstack: openstack_compute: bms2: provider: bms ip: <BMS2 IP> roles: openstack: bms3: provider: bms ip: <BMS3 IP> roles: openstack: bms4: provider: bms ip: <BMS4 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms5: provider: bms ip: <BMS5 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms6: provider: bms ip: <BMS6 IP> roles: config_database: config: control: analytics_database: analytics: webui: bms7: provider: bms ip: <BMS7 IP> roles: vrouter: PHYSICAL_INTERFACE: <Interface name> VROUTER_GATEWAY: <Gateway IP> openstack_compute: bms8: provider: bms ip: <BMS8 IP> roles: vrouter: # Add following line for TSN Compute Node TSN_EVPN_MODE: True openstack_compute: contrail_configuration: CLOUD_ORCHESTRATOR: openstack CONTRAIL_VERSION: latest or <contrail_container_tag> CONTRAIL_CONTAINER_TAG: <contrail_container_tag>-queens RABBITMQ_NODE_PORT: 5673 VROUTER_GATEWAY: <Gateway IP> ENCAP_PRIORITY: VXLAN,MPLSoUDP,MPLSoGRE AUTH_MODE: keystone KEYSTONE_AUTH_HOST: <Internal VIP> KEYSTONE_AUTH_URL_VERSION: /v3 CONTROLLER_NODES: < list of mgmt. ip of control nodes > CONTROL_NODES: <list of control-data ip of control nodes> OPENSTACK_VERSION: queens kolla_config: kolla_globals: openstack_release: queens kolla_internal_vip_address: <Internal VIP> kolla_external_vip_address: <External VIP> openstack_release: queens enable_haproxy: "no" ("no" by default, set "yes" to enable) enable_ironic: "no" ("no" by default, set "yes" to enable) enable_swift: "no" ("no" by default, set "yes" to enable) keepalived_virtual_router_id: <Value between 0-255> kolla_passwords: keystone_admin_password: <Keystone Admin Password>
The following Table 1 defines the function of each variable present in the instances.yml file.
Instances |
Description |
---|---|
|
Enter the management interface IP address of the controller node. The default value is either populated from the IP address in the instances.yml file or the IP address provided while adding the server from contrail command UI. |
|
Enter the data interface IP address of the controller node. The default value is populated from the The |
|
Enter the ctrl-data-network IP address.
|
|
Enter the management network IP address.
|
|
Enter the IP address of the host, which has The default value is populated automatically. |
|
Enter the name of orchestrator you are using. Default value: none. A |
|
Enter the Contrail version number. Default value: |
|
Enter the port number assigned to RabbitMQ node. Default value: RabbitMQ is a software that provides message queuing service, which is an efficient method of exchanging data between applications and servers. |
|
Enter the gateway IP address of the virtual router. The default gateway assigned to the virtual router is known as virtual router gateway. The default value is the default gateway IP address of management subnet in case of single interface setup. The |
|
Default value: |
|
Enter the desired keystone authentication mode. Default value: |
|
Enter the URL of the Keystone authentication server. Default value: Keystone is a Opentack identity service. All Openstack operations are authenticated via the keystone server. |
|
Enter the software version number of the Openstack platform. Default value: |
|
Enter Enter Default value: High Availability Proxy (Haproxy) provides high availability load balancing and proxy servers in cloud networking. |
|
Enter Default value: Deploy Ironic if you want to perform Life Cycle Management in Contrail Command. |
|
Enter Default value: Deploy Swift if you want to perform Image management in Contrail Command. |
|
Enter value between 0-255. Default value:
|
|
Enter keystone admin password. Default value:
|