https://github.com/openstack/ceilometer/blob/master/ceilometer/compute/util.py#L43 raises AttributeError

Bug #1297686 reported by Michał Jastrzębski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Medium
Michał Jastrzębski

Bug Description

Every hour I get compute.instance.exists event, and in some cases message['payload']['metadata'] is list instead of dict. In this case, this line raises AttributeError. I think we should check type before trying to parse it.

Revision history for this message
Ildiko Vancsa (ildiko-vancsa) wrote :
Changed in ceilometer:
importance: Undecided → Medium
milestone: none → juno-1
status: New → Fix Committed
assignee: nobody → Michal Jastrzebski (ryzy-n)
Changed in ceilometer:
assignee: Michal Jastrzebski (ryzy-n) → Michał Jastrzębski (inc007)
Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.