Bug 1214844 - Neutron notification handler throws a None Type Error when the payload is empty
Summary: Neutron notification handler throws a None Type Error when the payload is empty
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-23 16:16 UTC by Pradeep Kilambi
Modified: 2016-04-07 21:01 UTC (History)
3 users (show)

Fixed In Version: openstack-ceilometer-5.0.1-1.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 21:01:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 1447686 0 None None None Never
Red Hat Product Errata RHEA-2016:0603 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 Enhancement Advisory 2016-04-08 00:53:53 UTC

Description Pradeep Kilambi 2015-04-23 16:16:07 UTC
Description of problem:
When the payload doesnt have enough data, process_notification in neutron/notifications.py throws a None TypeError.

2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher File "/usr/lib/python2.7/site-packages/ceilometer/plugin.py", line 107, in info
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher self.to_samples_and_publish(context.get_admin_context(), notification)
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher File "/usr/lib/python2.7/site-packages/ceilometer/plugin.py", line 124, in to_samples_and_publish
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher p(list(self.process_notification(notification)))
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher File "/usr/lib/python2.7/site-packages/ceilometer/network/notifications.py", line 92, in process_notification
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher for resource in resources:
2015-04-22 18:44:41.349 88824 TRACE oslo.messaging.notify.dispatcher TypeError: 'NoneType' object is not iterable

Upstream bug: https://bugs.launchpad.net/ceilometer/+bug/1447686

Upstream commit to be backported: https://review.openstack.org/176885

Comment 7 Yurii Prokulevych 2016-01-22 10:02:03 UTC
'health_monitors' were created/deleted  from UI/CLI. 
No tracebacks in ceilometer/{agent-notification,collector}.log

Ceilometer's version: 5.0.1-1.el7ost

Comment 9 errata-xmlrpc 2016-04-07 21:01:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html


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