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

Bug 1214844

Summary: Neutron notification handler throws a None Type Error when the payload is empty
Product: Red Hat OpenStack Reporter: Pradeep Kilambi <pkilambi>
Component: openstack-ceilometerAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.0 (Juno)CC: jruzicka, jschluet, yeylon
Target Milestone: gaKeywords: TestOnly, Triaged
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ceilometer-5.0.1-1.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:01:10 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 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