Bug 1155789 - neutron "update.start" notification causes ceilometer-notification-agent to raise KeyError
Summary: neutron "update.start" notification causes ceilometer-notification-agent to r...
Keywords:
Status: CLOSED DUPLICATE of bug 1155790
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Eoghan Glynn
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 19:54 UTC by Eoghan Glynn
Modified: 2015-02-10 09:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-10 09:59:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eoghan Glynn 2014-10-22 19:54:52 UTC
Description of problem:

When handling an "update.start" notification from neutron, ceilometer-notification-agent raise KeyError due to an inconsistent and unexpected payload format

(the "id" field is found in the message['payload'] as opposed to the message['payload'][resource])


Version-Release number of selected component (if applicable):

python-ceilometer-2014.1.3-1.el7ost.noarch
openstack-ceilometer-collector-2014.1.3-1.el7ost.noarch
openstack-ceilometer-central-2014.1.3-1.el7ost.noarch
openstack-ceilometer-alarm-2014.1.3-1.el7ost.noarch
openstack-ceilometer-notification-2014.1.3-1.el7ost.noarch
openstack-ceilometer-common-2014.1.3-1.el7ost.noarch
python-ceilometerclient-1.0.10-1.el7ost.noarch
openstack-ceilometer-api-2014.1.3-1.el7ost.noarch


How reproducible:

100%


Steps to Reproduce:
1. create a floatingip
2. use "nova floating-ip-associate" to associate the floatingip to a server


Actual results:

The notification should be consumable without errors.


Expected results:

Errors are seen in the notification agent log:

2014-09-19 10:24:57.924 35876 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/ceilometer/notification.py", line 164, in _process_notification_for_ext
2014-09-19 10:24:57.924 35876 TRACE stevedore.extension     p(list(ext.obj.to_samples(notification)))
2014-09-19 10:24:57.924 35876 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/ceilometer/network/notifications.py", line 96, in process_notification
2014-09-19 10:24:57.924 35876 TRACE stevedore.extension     resource_id=message['payload']['id'],
2014-09-19 10:24:57.924 35876 TRACE stevedore.extension KeyError: 'id'

Comment 2 Eoghan Glynn 2015-02-10 09:59:01 UTC

*** This bug has been marked as a duplicate of bug 1155790 ***


Note You need to log in before you can comment on or make changes to this bug.