diff options
author | Mehdi Abaakouk <sileht@redhat.com> | 2016-07-21 14:33:10 +0200 |
---|---|---|
committer | Mehdi Abaakouk <sileht@redhat.com> | 2016-08-02 09:32:47 +0200 |
commit | 09afee9a8fd665097f912defc844bb80e54fc23d (patch) | |
tree | 4ccfbc00d201354e887f24ea7695c0bc115505cd | |
parent | 5de88a1d58496ec7c933229d0f9dcd8e308c2693 (diff) | |
download | ceilometer-5.0.5.tar.gz |
consumes error notif. when event are disabledliberty-eol5.0.5stable/liberty
When we fixes #1364708, this was worked only when store_event=True.
This change fixes the issue when store_event=False.
Change-Id: I6748397718be03e3f93ae2ccaa99642decdd9745
Related-bug: #1364708
(cherry picked from commit a3eb0fafadcdcbb8f48f3db13ffc103717bae99b)
-rw-r--r-- | ceilometer/agent/plugin_base.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ceilometer/agent/plugin_base.py b/ceilometer/agent/plugin_base.py index a5e95459..c72ac975 100644 --- a/ceilometer/agent/plugin_base.py +++ b/ceilometer/agent/plugin_base.py @@ -77,6 +77,20 @@ class NotificationBase(PluginBase): :param message: Message to process. """ + @staticmethod + def _consume_and_drop(self, ctxt, publisher_id, event_type, payload, + metadata): + """RPC endpoint for useless notification level""" + # NOTE(sileht): nothing special todo here, but because we listen + # for the generic notification exchange we have to consume all its + # queues + + audit = _consume_and_drop + debug = _consume_and_drop + warn = _consume_and_drop + error = _consume_and_drop + critical = _consume_and_drop + def info(self, ctxt, publisher_id, event_type, payload, metadata): """RPC endpoint for notification messages at info level |