安装或升级 CSO 后,您可以运行 components_health.sh 脚本对所有基础架构组件执行运行状况检查。此脚本检测是否有任何基础结构组件发生故障,并显示以下基础结构组件的运行状况:
SaltStack
卡珊德拉
玛丽亚DB
迅速
Redis
阿兰戈德布
重点
Elasticsearch
麋鹿 Elasticsearch
伊辛加
兔子魔力象限
etcd的
rsyslog
Kubernetes
麋鹿日志
麋鹿木巴纳
动物园管理员
Contrail 分析
VRR
微服务
- 以 root 身份登录到startupserver_1 VM。
- 导航到 startupserver_1 VM 中的 CSO 目录。
例如:
root@host:~/# cd Contrail_Service_Orchestration_6.1.0
root@host:~/Contrail_Service_Orchestration_6.1.0#
- components_health.sh运行脚本。
要检查其中一个基础结构组件的状态,请运行以下命令:
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.1.0# ./components_health.sh --component=<component_name>
For Example:
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.1.0# ./components_health.sh --component=elasticsearch
执行以下命令,检查所有基础架构组件的运行状况。
root@startupserver_1:/opt/Contrail_Service_Orchestration_6.1.0# ./components_health.sh
几分钟后,将显示每个基础架构组件的状态。
例如:
INFO Updating the mine and syncing the grains
INFO ************************************************************************
INFO HEALTH CHECK FOR INFRASTRUCTURE COMPONENTS STARTED IN CENTRAL ENVIRONMENT
INFO ************************************************************************
INFO Health Check for Infrastructure Component Saltstack Started
INFO The Infrastructure Component Saltstack 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 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 Elk_Kibana Started
INFO The Infrastructure Component Elk_Kibana is Healthy
INFO Health Check for Infrastructure Component Rsyslog Started
INFO The Infrastructure Component Rsyslog is Healthy
INFO Health Check for Infrastructure Component Kubernetes Started
INFO The Infrastructure Component Kubernetes is Healthy
INFO Health Check for Infrastructure Component Vrr Started
INFO The Infrastructure Component Vrr is Healthy
INFO Health Check for Infrastructure Component Zookeeper Started
INFO The Infrastructure Component Zookeeper is Healthy
INFO Health Check for Infrastructure Component Arangodb Started
INFO The Infrastructure Component Arangodb is Healthy
INFO Health Check for Infrastructure Component Icinga Started
INFO The Infrastructure Component Icinga is Healthy
INFO Health Check for Infrastructure Component Redis Started
INFO The Infrastructure Component Redis is Healthy
INFO Health Check for Infrastructure Component Rabbitmq Started
INFO The Infrastructure Component Rabbitmq 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 Rsyslog Started
INFO The Infrastructure Component Rsyslog is Healthy
INFO Health Check for Infrastructure Component Kubernetes Started
INFO The Infrastructure Component Kubernetes is Healthy
INFO Health Check for Infrastructure Component Vrr Started
INFO The Infrastructure Component Vrr is Healthy
INFO Health Check for Infrastructure Component Zookeeper Started
INFO The Infrastructure Component Zookeeper is Healthy
INFO Health Check for Infrastructure Component Arangodb Started
INFO The Infrastructure Component Arangodb is Healthy
INFO Health Check for Infrastructure Component Icinga Started
WARNING Icinga is not running in 1 node
INFO The Infrastructure Component Icinga is Healthy
INFO Health Check for Infrastructure Component Redis Started
INFO The Infrastructure Component Redis is Healthy
INFO Health Check for Infrastructure Component Rabbitmq Started
INFO The Infrastructure Component Rabbitmq 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 Elasticsearch Started
INFO The Infrastructure Component Elasticsearch is Healthy
INFO Health Check for Infrastructure Component Elk_Elasticsearch Started
INFO The Infrastructure Component Elk_Elasticsearch is Healthy
INFO Health Check for Infrastructure Component Cassandra Started
INFO The Infrastructure Component Cassandra is Healthy
INFO Health Check for Infrastructure Component Contrail_Analytics Started
INFO The Infrastructure Component Contrail_Analytics is Healthy
INFO Health Check for Infrastructure Component Microservices Started
INFO The Infrastructure Component Microservices is Healthy
INFO Overall result:
INFO The following Infrastructure Components are Healthy:
INFO ['Saltstack', 'Etcd', 'Mariadb', 'Keystone', 'Swift', 'Elk_Kibana', 'Rsyslog', 'Kubernetes', 'Vrr', 'Zookeeper', 'Arangodb', 'Icinga', 'Redis', 'Rabbitmq', 'Elk_Logstash', 'Elasticsearch', 'Elk_Ela
sticsearch', 'Cassandra', 'Contrail_Analytics', 'Microservices']