클라우드 컴퓨팅 인프라 플랫폼의 IaaS (OpenStack은) 슈퍼 상세한 건물 (XVI) 설치 알람 모니터링 서비스

참고 : 액세스 및 블로그의 콘텐츠를 업데이트
전체 설치 과정이 너무 복잡 OpenStack은 오픈 소스이기 때문에, 명령은 너무 복잡, 너무 오래, 그래서 전체 설치 쉘 스크립트 명령이 작성.

내용의 스크립트 금액도 자기 밀었다 GitHub의의 치료 센터의 소스를.
이 Benpian 스크립트의 내용이 상주하는 GitHub의 저장소 위치
컨트롤러 노드를

스크립팅 소개

#!/bin/bash
source /etc/xiandian/openrc.sh
source /etc/keystone/admin-openrc.sh
mysql -uroot -p$DB_PASS -e "create database IF NOT EXISTS aodh ;"
mysql -uroot -p$DB_PASS -e "GRANT ALL PRIVILEGES ON aodh.* TO 'aodh'@'localhost' IDENTIFIED BY '$AODH_DBPASS' ;"
mysql -uroot -p$DB_PASS -e "GRANT ALL PRIVILEGES ON aodh.* TO 'aodh'@'%' IDENTIFIED BY '$AODH_DBPASS' ;"

openstack user create --domain $DOMAIN_NAME --password $AODH_PASS aodh
openstack role add --project service --user aodh admin
openstack service create --name aodh --description "Telemetry" alarming
openstack endpoint create --region RegionOne alarming public http://$HOST_NAME:8042
openstack endpoint create --region RegionOne alarming internal http://$HOST_NAME:8042
openstack endpoint create --region RegionOne alarming admin http://$HOST_NAME:8042

yum install -y openstack-aodh-api openstack-aodh-evaluator openstack-aodh-notifier openstack-aodh-listener openstack-aodh-expirer pytho
n-ceilometerclient

crudini --set /etc/aodh/aodh.conf database connection mysql+pymysql://aodh:$AODH_DBPASS@$HOST_NAME/aodh
crudini --set /etc/aodh/aodh.conf DEFAULT rpc_backend rabbit
crudini --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_host $HOST_NAME
crudini --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_userid $RABBIT_USER
crudini --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_password  $RABBIT_PASS

crudini --set /etc/aodh/aodh.conf DEFAULT auth_strategy keystone
crudini --set /etc/aodh/aodh.conf keystone_authtoken auth_uri  http://$HOST_NAME:5000
crudini --set /etc/aodh/aodh.conf keystone_authtoken auth_url  http://$HOST_NAME:35357
crudini --set /etc/aodh/aodh.conf keystone_authtoken memcached_servers  $HOST_NAME:11211
crudini --set /etc/aodh/aodh.conf keystone_authtoken auth_type  password
crudini --set /etc/aodh/aodh.conf keystone_authtoken project_domain_name  $DOMAIN_NAME
crudini --set /etc/aodh/aodh.conf keystone_authtoken user_domain_name $DOMAIN_NAME
crudini --set /etc/aodh/aodh.conf keystone_authtoken project_name  service
crudini --set /etc/aodh/aodh.conf keystone_authtoken username  aodh
crudini --set /etc/aodh/aodh.conf keystone_authtoken password  $AODH_PASS

crudini --set /etc/aodh/aodh.conf service_credentials auth_type  password
crudini --set /etc/aodh/aodh.conf service_credentials auth_url  http://$HOST_NAME:5000/v3
crudini --set /etc/aodh/aodh.conf service_credentials project_domain_name  $DOMAIN_NAME
crudini --set /etc/aodh/aodh.conf service_credentials user_domain_name  $DOMAIN_NAME

다음은이 부분에서 동작 명령의 세부 사항 (이미 스크립트는 기사의 모든 작업 명령을 포함하지만, 제안은 여전히 ​​후에 다시 전체 과정을 스크립트에 익숙해 실행)이다

12 개 설치 알람 모니터링 서비스

알람 서비스를 설치하는 스크립트에 의해 12.1
12.2-12.8 Alarm监控服务的操作命令已经编写成shell脚本,通过脚本进行一键安装。如下:
#Controller节点
执行脚本iaas-install-alarm.sh进行安装


12.2 데이터베이스 만들기
# mysql -u root -p
mysql> CREATE DATABASE aodh;
mysql> GRANT ALL PRIVILEGES ON aodh.* TO aodh@'localhost' IDENTIFIED BY '000000'; mysql> GRANT ALL PRIVILEGES ON aodh.* TO aodh@'%' IDENTIFIED BY  '000000';

12.3 만들기 키스톤 사용자
openstack user create --domain default --password 000000 aodh
openstack role add --project service --user aodh admin

12.4 만들기 및 API 엔드 포인트
openstack service create --name aodh --description "Telemetry" alarming
openstack endpoint create --region RegionOne alarming public http://controller:8042
openstack endpoint create --region RegionOne alarming internal http://controller:8042
openstack endpoint create --region RegionOne alarming admin http://controller:8042

12.5 설치 패키지
yum install -y openstack-aodh-api openstack-aodh-evaluator openstack-aodh-notifier openstack-aodh-listener openstack-aodh-expirer python-ceilometerclient
12.6 구성 aodh
openstack-config --set /etc/aodh/aodh.conf database connection mysql+pymysql://aodh:000000@controller/aodh
openstack-config --set /etc/aodh/aodh.conf DEFAULT rpc_backend rabbit
openstack-config --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_host controller
openstack-config --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_userid openstack
openstack-config --set /etc/aodh/aodh.conf oslo_messaging_rabbit rabbit_password  000000

openstack-config --set /etc/aodh/aodh.conf DEFAULT auth_strategy keystone
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken auth_uri  http://controller:5000
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken auth_url  http://controller:35357
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken memcached_servers  controller:11211
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken auth_type  password
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken project_domain_name  default
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken user_domain_name default
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken project_name  service
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken username  aodh
openstack-config --set /etc/aodh/aodh.conf keystone_authtoken password  000000
openstack-config --set /etc/aodh/aodh.conf service_credentials auth_type  password
openstack-config --set /etc/aodh/aodh.conf service_credentials auth_url  http://controller:5000/v3
openstack-config --set /etc/aodh/aodh.conf service_credentials project_domain_name  default
openstack-config --set /etc/aodh/aodh.conf service_credentials user_domain_name  default
openstack-config --set /etc/aodh/aodh.conf service_credentials project_name  service
openstack-config --set /etc/aodh/aodh.conf service_credentials username  aodh
openstack-config --set /etc/aodh/aodh.conf service_credentials password  000000
openstack-config --set /etc/aodh/aodh.conf service_credentials interface  internalURL
openstack-config --set /etc/aodh/aodh.conf service_credentials region_name  RegionOne
openstack-config --set /etc/aodh/api_paste.ini  filter:authtoken oslo_config_project aodh

12.7 데이터베이스 동기화
su -s /bin/sh -c "aodh-dbsync" aodh

12.8 서비스 시작
systemctl enable openstack-aodh-api.service openstack-aodh-evaluator.service openstack-aodh-notifier.service openstack-aodh-listener.service
systemctl restart openstack-aodh-api.service openstack-aodh-evaluator.service openstack-aodh-notifier.service openstack-aodh-listener.service


추천

출처blog.csdn.net/qq_28513801/article/details/90172627