period in the bd is a float but v2 api expects an int

Bug #1132628 reported by Angus Salkeld
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Angus Salkeld

Bug Description

  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 68, in callfunction
    result = f(self, *args, **kwargs)

  File "/home/asalkeld/stack/ceilometer/ceilometer/api/controllers/v2.py", line 405, in statistics
    for c in computed]

  File "/home/asalkeld/stack/ceilometer/ceilometer/api/controllers/v2.py", line 306, in __init__
    super(Statistics, self).__init__(**kwds)

  File "/usr/local/lib/python2.7/dist-packages/wsme/types.py", line 552, in __init__
    setattr(self, key, value)

  File "/usr/local/lib/python2.7/dist-packages/wsme/types.py", line 326, in __set__
    raise ValueError("%s: %s" % (self.name, e))

ValueError: period: Wrong type. Expected '<type 'int'>', got '<type 'float'>'

192.168.1.70 - - [25/Feb/2013 16:07:47] "GET /v2/meters/speed/statistics HTTP/1.1" 500 157

Angus Salkeld (asalkeld)
Changed in ceilometer:
assignee: nobody → Angus Salkeld (asalkeld)
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/22817

Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/22817
Committed: http://github.com/openstack/ceilometer/commit/0cdd947579c2b0f6849806d12641e0c0db338151
Submitter: Jenkins
Branch: master

commit 0cdd947579c2b0f6849806d12641e0c0db338151
Author: Angus Salkeld <email address hidden>
Date: Mon Feb 25 21:49:08 2013 +1100

    Make sure that the period is returned as an int as the api expects an int.

    bug #1132628

    Change-Id: Iccb71232e1fbb53318af231a4966c0d19a83fca5
    Signed-off-by: Angus Salkeld <email address hidden>

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