Performing a Health Check of Infrastructure Components
After you install or upgrade CSO, you can run the components_health.sh script to perform a health check of all infrastructure components. This script detects whether any infrastructure component has failed and displays the health status of the following infrastructure components:
Cassandra
Elasticsearch
Etcd
MariaDB
RabbitMQ
ZooKeeper
Redis
ArangoDb
SimCluster
ELK Logstash
ELK Kibana
Contrail Analytics
Keystone
Swift
Kubernetes
To check the status of infrastructure components:
- Login to the installer VM as root.
- Navigate to the CSO directory in the installer VM.
For example:
root@host:~/# cd Contrail_Service_Orchestration_4.0
root@host:~/Contrail_Service_Orchestration_4.0#
- Run the components_health.sh script.
To check the status of infrastructure components of the central environment, run the following command:
root@host:~/Contrail_Service_Orchestration_4.0#./components_health.sh central
To check health component of the regional environment, run the following command:
root@host:~/Contrail_Service_Orchestration_4.0#./components_health.sh regional
To check health component of central and regional environments, run the following command:
root@host:~/Contrail_Service_Orchestration_4.0# ./components_health.sh
After a couple of minutes, the status of each infrastructure component for central and regional environments are displayed.
For example:
************************************************************************ HEALTH CHECK FOR INFRASTRUCTURE COMPONENTS STARTED IN CENTRAL ENVIRONMENT ************************************************************************ INFO Health Check for Infrastructure Component Cassandra Started INFO The Infrastructure Component Cassandra is Healthy INFO Health Check for Infrastructure Component ElasticSearch Started INFO The Infrastructure Component ElasticSearch is Healthy INFO Health Check for Infrastructure Component Etcd Started INFO The Infrastructure Component Etcd is Healthy INFO Health Check for Infrastructure Component MariaDb Started INFO The Infrastructure Component MariaDb is Healthy INFO Health Check for Infrastructure Component RabbitMQ Started INFO The Infrastructure Component RabbitMQ is Healthy INFO Health Check for Infrastructure Component ZooKeeper Started INFO The Infrastructure Component ZooKeeper is Healthy INFO Health Check for Infrastructure Component Redis Started INFO The Infrastructure Component Redis is Healthy INFO Health Check for Infrastructure Component ArangoDb Started INFO The Infrastructure Component ArangoDb is Healthy INFO Health Check for Infrastructure Component Sim_Cluster Started INFO The Infrastructure Component Sim_Cluster is Healthy INFO Health Check for Infrastructure Component Elk_Logstash Started INFO The Infrastructure Component Elk_Logstash is Healthy INFO Health Check for Infrastructure Component Elk_Kibana Started INFO The Infrastructure Component Elk_Kibana is Healthy INFO Health Check for Infrastructure Component Keystone Started INFO The Infrastructure Component Keystone is Healthy INFO Health Check for Infrastructure Component Swift Started INFO The Infrastructure Component Swift is Healthy INFO Health Check for Infrastructure Component Kubernetes Started INFO The Infrastructure Component Kubernetes is Healthy INFO Health Check for Infrastructure Component Contrail_Analytics Started INFO The Infrastructure Component Contrail_Analytics is Healthy Overall result: The following Infrastructure Components are Healthy: ['Cassandra', 'ElasticSearch', 'Etcd', 'MariaDb', 'RabbitMQ', 'ZooKeeper', 'Redis', 'ArangoDb', 'Sim_Cluster', 'Elk_Logstash', 'Elk_Kibana', 'Keystone', 'Swift', 'Kubernetes', 'Contrail_Analytics']