Miguel Alejandro Cantu Sudarshan Acharya
This blueprint was created to add the Celiometer project to OSAD. It will lay out a possible solution that will hopefully in turn create discussion around how to properly implement ceilometer as an OPTIONAL component of OSAD.
Currently, OSAD does not implement Ceilometer for various reasons. One being the unstable nature of the project in production environments - causing ever growing database tables resulting in extremely slow API quries. However, some may still want to deploy Ceilometer and may prefer to deal with the problem internally.
Furthermore, these issues should not discount the credibility of Ceilometer as an OpenStack project, and as such, it should be implemented into OSAD.
An additional role, os_ceilometer, would need to be added to handle the installation/configuration of the ceilometer services. Also, additional configuration directives would need to be added to other projects (such as cinder, nova, glance, etc..) so that they will generate notifications.
For the database, the /etc/openstack_deploy/conf.d/ceilometer.yml should give the user an option as to which database they want to connect to. This BP does not implement the deployment of an additional database for Ceilometer, but can be discussed as a potential addition.
Furthermore, new host groups will be added to the env.d/ceilometer.yml file so that the user may specify which infra nodes to install the central agents on , and which compute nodes to install the compute agent on. The proposed changes to the this file will look something like:
component_skel: ceilometer_agent_compute: belongs_to: - ceilometer_all ceilometer_agent_central: belongs_to: - ceilometer_all ceilometer_agent_notification: belongs_to: - ceilometer_all ceilometer_collector: belongs_to: - ceilometer_all ceilometer_alarm_evaluator: belongs_to: - ceilometer_all ceilometer_alarm_notifier: belongs_to: - ceilometer_all ceilometer_api: belongs_to: - ceilometer_all container_skel: ceilometer_api_container: belongs_to: - metering-infra_containers contains: - ceilometer_agent_central - ceilometer_agent_notification - ceilometer_collector - ceilometer_alarm_evaluator - ceilometer_alarm_notifier - ceilometer_api properties: service_name: ceilometer container_release: trusty metering-compute_container: belongs_to: - metering-compute_containers contains: - ceilometer_agent_compute properties: service_name: ceilometer container_release: trusty is_metal: true physical_skel: metering-compute_containers: belongs_to: - all_containers metering-compute_hosts: belongs_to: - hosts metering-infra_containers: belongs_to: - all_containers metering-infra_hosts: belongs_to: - hosts
Don’t do it.
The ceilometer component should be OPTIONAL. And thus have no effect on other playbooks when chosen not to be run. However, when chosen to be run, other configurations across different projects can be changed to allow notifications.
Credentials for the Ceilometer database may need to be specified by the user, as this BP does not implement the deployment of the Ceilometer database at this moment.
When ceilometer is enabled, the horizon dashboard can potentially slow down due to large API responses from ceilometer. This is related to the problem stated in the Problem Description. We must let the user know about this known problem, and advise the ceilometer database be properly supervised. When ceilometer is disabled, it should have no performance impact.
The user will now have the option to enable ceilometer on their private cloud.
Additional configs must be specified in /etc/openstack_deploy/conf.d/ceilometer.yml only if the deployer wants ceilometer to be enabled.
The deployer needs to be aware of the database that is going to be used for ceilometer.
A new role will be created to handle the installation/configuration of ceilometer. This role will be run explicitly by the deployer.
Miguel Alejandro Cantu Sudarshan Acharya
The following files need to be modified:
The following files need to added:
The gate scripts will need to be modified with the ceilometer configurations turned on. A variable of the like of “DEPLOY_CEILOMETER” will be added with the appropriate conditionals in place to deploy ceilometer with a mongodb server for testing.
The playbooks will point to a mongodb server deployed on the AIO. A gate script will be created to deploy a simple mongodb server on the AIO using an ansible galaxy role.
Thorough documentation will need to be created explaining how to enable ceilometer.