Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1155789

Summary: neutron "update.start" notification causes ceilometer-notification-agent to raise KeyError
Product: Red Hat OpenStack Reporter: Eoghan Glynn <eglynn>
Component: openstack-ceilometerAssignee: Eoghan Glynn <eglynn>
Status: CLOSED DUPLICATE QA Contact: Amit Ugol <augol>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: jruzicka, pbrady, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-10 09:59:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***