Statistics broken

Bug #1289325 reported by Nejc Saje
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Critical
gordon chung

Bug Description

When querying for meter statistics, the output is the same regardless of the meter supplied.

Example:
vagrant@precise64:/opt/stack/ceilometer$ ceilometer statistics -m instance
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| 0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 | 4351 | 0.0 | 55290000000.0 | 2.25772287345e+12 | 518897465.744 | 8381.0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
vagrant@precise64:/opt/stack/ceilometer$ ceilometer statistics -m cpu_util
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+
| 0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 | 4351 | 0.0 | 55290000000.0 | 2.25772287345e+12 | 518897465.744 | 8381.0 | 2014-03-07T09:56:01 | 2014-03-07T12:15:42 |
+--------+---------------------+---------------------+-------+-----+---------------+-------------------+---------------+----------+---------------------+---------------------+

Eoghan Glynn (eglynn)
Changed in ceilometer:
importance: Undecided → Critical
milestone: none → icehouse-rc1
assignee: nobody → Nejc Saje (nejc-saje)
status: New → Confirmed
Changed in ceilometer:
status: Confirmed → In Progress
Changed in ceilometer:
assignee: Nejc Saje (nejc-saje) → gordon chung (chungg)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

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

commit b530bc4fb2c12bc94b34950e450c0d63fb77402f
Author: Nejc Saje <email address hidden>
Date: Fri Mar 7 13:47:43 2014 +0000

    Fix broken statistics in sqlalchemy

    When querying the samples for statistics calculations,
    the filtering is done without joining the Sample table.
    This patch fixes this.

    Closes-Bug: #1289325
    Change-Id: I45edc974a6c054d27ac33d5287f760bcff08cf91

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