Alarms triggered from notifications fail in mitaka

Bug #1773171 reported by Liam Young
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceilometer Charm
Triaged
Medium
Liam Young

Bug Description

Alarms that are triggered from notifications are not correctly converted into event messages that aodh can consume

Creating an alarm like:

            alarm_def = {
                'type': 'event',
                'name': alarm_name,
                'description': 'Instance powered OFF',
                'alarm_actions': ['log://'],
                'ok_actions': ['log://'],
                'insufficient_data_actions': ['log://'],
                'event_rule': {
                    'event_type': 'compute.instance.power_off.*',
                    'query': [{'field': 'traits.instance_id',
                               'op': 'eq',
                               'type': 'string',
                               'value': server.id}]}}

will never trigger because ceilometer does not correctly process the alarm

Liam Young (gnuoy)
Changed in charm-ceilometer:
assignee: nobody → Liam Young (gnuoy)
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

https://docs.openstack.org/releasenotes/ceilometer/ocata.html#prelude

"In an effort to minimise the noise, Ceilometer will no longer produce meters which have no measureable data associated with it. Image meter only captures state information which is already captured in events and other meters."

Ceilometer used to convert meters to events but does not do so as of:

https://github.com/openstack/ceilometer/commit/2d31c249f9bf28248773fe080650dbfa8be7e824#diff-ed385302763b1b83d441c58ff98aa647L16

Some meters had semantic meaning of events as far as I recall and that got fixed in some version after Mitaka.

Revision history for this message
Liam Young (gnuoy) wrote :

Three changes were needed in the end for mitaka:
1) Add an events definition file so that ceilometer can transform the notification data
[event]
definitions_cfg_file = /home/ubuntu/ceilometer-6.1.5/etc/ceilometer/event_definitions.yaml

2) Switch on store_events. The ceilometer code (in mitaka anyway) will not convert notification to events with out it https://github.com/openstack/ceilometer/blob/mitaka-eol/ceilometer/notification.py#L216

[notification]
store_events = true
3) Add meters as an event source in event_pipeline_alarm.yaml

As dmitriis points out this issue is probably specific to mitaka. I'll do some validation of later OpenStack releases now

Liam Young (gnuoy)
summary: - Alarms triggered from notifications fail
+ Alarms triggered from notifications fail in mitaka
James Page (james-page)
Changed in charm-ceilometer:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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