Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Aodh

Aodh provides monitoring and alarm services. Install Aodh on the controller node.

  1. Create a database.
    1. Log in to the database as the root user.
      mysql -u root -p
    2. 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 &=-_.+!*()

    3. Exit the database.
      exit
  2. 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 &=-_.+!*()

  3. Install Aodh.
    yum install openstack-aodh-api openstack-aodh-evaluator openstack-aodh-notifier openstack-aodh-listener openstack-aodh-expirer python3-aodhclient
  4. Modify the configuration file.
    1. Open the file.
      vi  /etc/aodh/aodh.conf
    2. 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 &=-_.+!*()

    1. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  5. Initialize the database.
    aodh-dbsync
  6. 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