To ensure that OpenContrail is up and running, verify the status of all the OpenContrail-related services. If any service fails, restart it as described in Restart the OpenContrail services.
For OpenContrail 4.x
Log in to the Salt Master node.
Apply one of the following states depending on the Build ID of your MCP cluster:
For MCP Build ID 2018.11.0 or later:
salt -C 'ntw* or nal*' state.sls opencontrail.upgrade.verify
If the state is applied successfully, it means that all OpenContrail services are up and running.
For MCP Build ID 2018.8.0 or 2018.8.0-milestone1:
salt -C 'ntw* or nal*' cmd.run 'doctrail all contrail-status'
In the output, all services must be either in active
or backup
(for example, for contrail-schema
, contrail-svc-monitor
,
contrail-device-manager
services) state.
For OpenContrail 3.2
Eventually, all services should be active
except for
contrail-device-manager
, contrail-schema
, and
contrail-svc-monitor
. These services are in the active
state at
only one OpenContrail controller ntw
node in the cluster
switching dynamically between the nodes in case of a failure.
On two other OpenContrail controller nodes, these services are
in the backup
state.
To verify the OpenContrail services status, apply the following state for the
OpenContrail ntw
and nal
nodes from the Salt Master node:
salt -C 'ntw* or nal*' cmd.run 'contrail-status'
Example of system response:
== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active
== Contrail Analytics ==
supervisor-analytics: active
contrail-analytics-api active
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active
== Contrail Config ==
supervisor-config: active
contrail-api:0 active
contrail-config-nodemgr active
contrail-device-manager initializing
contrail-discovery:0 active
contrail-schema initializing
contrail-svc-monitor initializing
ifmap active
== Contrail Web UI ==
supervisor-webui: active
contrail-webui active
contrail-webui-middleware active
== Contrail Database ==
supervisor-database: active
contrail-database active
contrail-database-nodemgr active
== Contrail Support Services ==
supervisor-support-service: active
rabbitmq-server active