Installing Aodh
Aodh provides monitoring and alarm services. Install Aodh on the controller node.
- Create a database.
- Log in to the database as the root user.
mysql -u root -p
- In the database, create an Aodh database and grant permissions.
CREATE DATABASE aodh; GRANT ALL PRIVILEGES ON aodh.* TO 'aodh'@'localhost' IDENTIFIED BY 'AODH_DBPASS'; GRANT ALL PRIVILEGES ON aodh.* TO 'aodh'@'%' IDENTIFIED BY 'AODH_DBPASS';
Replace AODH_DBPASS with the Aodh database user password. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Exit the database.
exit
- Log in to the database as the root user.
- Create Keystone resource objects.
openstack user create --domain default --password-prompt 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://controller:8042 openstack endpoint create --region RegionOne alarming internal http://controller:8042 openstack endpoint create --region RegionOne alarming admin http://controller:8042
The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Install Aodh.
yum install openstack-aodh-api openstack-aodh-evaluator openstack-aodh-notifier openstack-aodh-listener openstack-aodh-expirer python3-aodhclient
- Modify the configuration file.
- Open the file.
vi /etc/aodh/aodh.conf
- Press i to enter the insert mode and modify the following content:
[database] connection = mysql+pymysql://aodh:AODH_DBPASS@controller/aodh [DEFAULT] transport_url = rabbit://openstack:RABBIT_PASSWORD@controller auth_strategy = keystone [keystone_authtoken] www_authenticate_uri = http://controller:5000 auth_url = http://controller:5000 memcached_servers = controller:11211 auth_type = password project_domain_id = default user_domain_id = default project_name = service username = aodh password = AODH_PASSWORD [service_credentials] auth_type = password auth_url = http://controller:5000/v3 project_domain_id = default user_domain_id = default project_name = service username = aodh password = AODH_PASSWORD interface = internalURL region_name = RegionOne
Replace AODH_DBPASS with the Aodh database password, RABBIT_PASSWORD with the OpenStack RabbitMQ password, and AODH_PASSWORD with the Aodh user password. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the file.
- Initialize the database.
aodh-dbsync
- Start the Aodh service.
systemctl enable openstack-aodh-api.service openstack-aodh-evaluator.service openstack-aodh-notifier.service openstack-aodh-listener.service systemctl start openstack-aodh-api.service openstack-aodh-evaluator.service openstack-aodh-notifier.service openstack-aodh-listener.service
Parent topic: Deployment and Verification