Ceilometer event-list "faultstring": "Events not implemented."}

asked 2015-01-06 08:40:10 -0600

sinder255248 gravatar image


I'm trying to implement CADF notifications within Ceilometer (for auditing API actions) by following this article:

http://docs.openstack.org/developer/pycadf/middleware.html (http://docs.openstack.org/developer/p...)

I think I've completed the setup correctly. Ceilometer is working as I can bring back sample metrics for the hosts and instances but if I try to list event notifications (ceilometer event-list) I get a HTTPInternalServerError message. I've run a --debug and here's the output:

DEBUG (http:121) HTTP/1.0 500 Internal Server Error date: Tue, 06 Jan 2015 14:32:57 GMT content-length: 103 content-type: application/json server: WSGIServer/0.1 Python/2.6.6

{"error_message": {"debuginfo": null, "faultcode": "Server", "faultstring": "Events not implemented."}}

WARNING (http:173) Request returned failure status.

I've tried enabling the storage of events in the database (default despatcher - mongodb) as stated in:

https://ask.openstack.org/en/question/45337/ceilometer-returns-an-empty-event-list/ (https://ask.openstack.org/en/question...)

I still get the same error. In addition to the above, does anyone have a good article on listening to messages on the rabbitmq bus?

I'd appreciate any help you can offer.



edit retag flag offensive close merge delete


did you checked the ceilometer-api and ceilometer-central-agent log as well? Paste them to paste.openstack.org please. Besides also paste your event.yaml in /etc/ceilometer.

9lives gravatar image9lives ( 2015-01-06 09:21:30 -0600 )edit

api.log: http://paste.openstack.org/show/155738/ central.log: http://paste.openstack.org/show/155739/ event.yaml: I don't have an event.yaml under /etc/ceilometer

I'm using Icehouse Redhat OSP 5.0

sinder255248 gravatar imagesinder255248 ( 2015-01-06 09:42:45 -0600 )edit

I've since taken the event_definitions.yaml from github. I still get the same issue.

sinder255248 gravatar imagesinder255248 ( 2015-01-06 10:17:34 -0600 )edit

I've also got this issue, Icehouse release. Everything looks like Events are enabled, but i Just get back the "not implemented" error.

Any help/suggestions? Adding the get_events as listed in the "answer" yields no change in behavior (storage/base.py still throws the exception)

sjoeboo gravatar imagesjoeboo ( 2015-02-05 11:21:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-06 11:04:10 -0600

9lives gravatar image

updated 2015-01-06 11:05:50 -0600

Just compared the pymongo_base.py in ceilometer/storage btween icehouse(https://github.com/openstack/ceilometer/blob/stable/icehouse/ceilometer/storage/pymongo_base.py) and juno release(https://github.com/openstack/ceilometer/blob/stable/juno/ceilometer/storage/pymongo_base.py), there is no such method called get_events defined in icehouse version while juno version has the following definition.

def get_events(self, event_filter):
        """Return an iter of models.Event objects.

        :param event_filter: storage.EventFilter object, consists of filters
                             for events that are stored in database.
        q = pymongo_utils.make_events_query_from_filter(event_filter)
        for event in self.db.event.find(q):
            traits = []
            for trait in event['traits']:
            yield models.Event(message_id=event['_id'],

This should explain the why the NotImplementedError('Events not implemented.') raised

The fix might be add the get_events method in your icehouse version or just upgrade to the latest juno release.

Hope that helps!


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-06 08:40:10 -0600

Seen: 423 times

Last updated: Jan 06 '15