This section provides instructions on how to manually deploy OpenContrail 4.1 on your OpenStack-based MCP cluster.
To deploy OpenContrail 4.1 on an OpenStack-based MCP cluster:
Log in to the Salt Master node.
Run the following basic states to prepare the OpenContrail nodes:
salt -C 'ntw* or nal*' saltutil.refresh_pillar
salt -C 'I@opencontrail:database' saltutil.sync_all
salt -C 'I@opencontrail:database' state.sls salt.minion,linux,ntp,openssh
Deploy and configure Keepalived and HAProxy:
salt -C 'I@opencontrail:database' state.sls keepalived,haproxy
Deploy and configure Docker:
salt -C 'I@opencontrail:database' state.sls docker.host
Create configuration files for OpenContrail:
salt -C 'I@opencontrail:database' state.sls opencontrail exclude=opencontrail.client
Start the OpenContrail Docker containers:
salt -C 'I@opencontrail:database' state.sls docker.client
Verify the status of the OpenContrail service:
salt -C 'I@opencontrail:database' cmd.run 'doctrail all contrail-status'
In the output, the services status should be active or backup
.
Note
It may take some time for all services to finish initializing.
Configure the OpenContrail resources:
salt -C 'I@opencontrail:client and not I@opencontrail:compute' state.sls opencontrail.client
Apply the following states to deploy the OpenContrail vRouters:
salt -C 'cmp*' saltutil.refresh_pillar
salt -C 'I@opencontrail:compute' saltutil.sync_all
salt -C 'I@opencontrail:compute' state.highstate exclude=opencontrail.client
salt -C 'I@opencontrail:compute' cmd.run 'reboot'
salt -C 'I@opencontrail:compute' state.sls opencontrail.client
After you deploy an OpenContrail-based MCP cluster: