Ceilometer service breaks when aodh not configured

Bug #1549426 reported by Nate Potter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Nate Potter

Bug Description

I recently deployed OpenStack using openstack-ansible and configured it to deploy ceilometer but not aodh alarming. The playbooks completed successfully, but when I tried to make calls to ceilometer it would return 503 Service Unavailable. Looking into the ceilometer API logs, I discovered that this was because it was looking for an alarm mongodb connection at localhost, when I had configured mongo to serve at the management IP for the ceilometer host. It correctly configured the metering_connection and the event_connection in ceilometer.conf, but had also added an extra line for alarm_connection that was configured incorrectly because I hadn't included aodh. Removing the incorrect line from the conf file fixed the problem.

The OSA playbooks should check to see if any aodh hosts are defined, and if they aren't these configurations shouldn't be included in ceilometer.conf.

Nate Potter (ntpttr)
Changed in openstack-ansible:
assignee: nobody → Nate Potter (ntpttr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/284392

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/287959

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (master)

Change abandoned by Nate Potter (<email address hidden>) on branch: master
Review: https://review.openstack.org/284392
Reason: Abandoning in favor of https://review.openstack.org/287959

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_ceilometer (master)

Reviewed: https://review.openstack.org/287959
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_ceilometer/commit/?id=d9dfc53a4a401886b5619d81a1feaf72f797072a
Submitter: Jenkins
Branch: master

commit d9dfc53a4a401886b5619d81a1feaf72f797072a
Author: Nate Potter <email address hidden>
Date: Thu Mar 3 16:22:55 2016 +0000

    Check for AODH host before adding alarm_connection

    Currently the os_ceilometer role will configure ceilometer.conf to
    include a line in the [databases] section for alarm_connection no matter
    what, and it will default to looking for the aodh user in mongodb
    serving at localhost. If the user installs ceilometer but not aodh, this
    will break the ceilometer service as the API will not start up while it
    times out looking for the unconfigured database. This patch ensures that
    there are hosts configured for AODH before adding that line to the conf
    file.

    Change-Id: If27e19e7c6bb2d20e7b0093a8d4e29c30952fb14
    Closes-bug: #1549426

Changed in openstack-ansible:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.