aggregator raise an exception in certain case

Bug #1325507 reported by Mehdi Abaakouk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Mehdi Abaakouk

Bug Description

Hi,

When no samples have been handled by the aggregator but flush method is called the following traceback occurs:

Traceback (most recent call last):
  File "ceilometer/pipeline.py", line 330, in flush
    list(transformer.flush(ctxt)))
  File "ceilometer/transformer/conversions.py", line 245, in flush
    self.retention_time)
  File "ceilometer/openstack/common/timeutils.py", line 81, in is_older_than
    before = before.replace(tzinfo=None)
AttributeError: 'NoneType' object has no attribute 'replace'

Cheers,
sileht

Mehdi Abaakouk (sileht)
Changed in ceilometer:
status: New → In Progress
assignee: nobody → Mehdi Abaakouk (sileht)
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/97176

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/97176
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=a4a13dfff8e7c6149d2b94a450494ae516aeadea
Submitter: Jenkins
Branch: master

commit a4a13dfff8e7c6149d2b94a450494ae516aeadea
Author: Mehdi Abaakouk <email address hidden>
Date: Mon Jun 2 11:26:49 2014 +0200

    Fix aggregator flush method

    When no samples have been handled by the aggregator but flush method is
    called, an empty array must be returned because 'initial_timestamp' have
    not been set yet.

    Also, the pipeline always catchs exception from transformer and when an
    error occurs into a transformer the unit can not catch them.
    The patch also reraises any transformer exceptions.

    Closes-bug: #1325507
    Co-Authored-By: Ala Rezmerita <email address hidden>

    Change-Id: Ib3183dfa3ee37ba586eb03a73f5de4641dd98514

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-3 → 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.