wrong accumulative value of metric "network.services.lb.incoming.bytes"

Bug #1530793 reported by Xia Linjuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
Zi Lian Ji

Bug Description

When running the command below, we get the stats of lb pool, the bytes_in value is accumulative.
See [1]https://wiki.openstack.org/wiki/Neutron/LBaaS/API#List_Traffic_Statistics_of_a_pool

# neutron lb-pool-stats Pool_1
+--------------------+-------+
| Field | Value |
+--------------------+-------+
| active_connections | 0 |
| bytes_in | 161 |
| bytes_out | 197 |
| total_connections | 1 |
+--------------------+-------+

But in ceilometer, the sum value will accumulate again, it's not right because the value of bytes_in is already the accumulated value. The command below shows the value of the metric "network.services.lb.incoming.bytes"

curl -s -X GET -H "Content-Type: application/json" -H "X-Auth-Token: 1574fcbba8c14323b2aad120c9e195c7" -d '{"q": [{"field": "resource_id", "op": "eq", "value": "1b0f7100-bef5-4e15-b6b3-c1eff1f750cd"}]}' http://x.x.x.x:8777/v2/meters/network.services.lb.incoming.bytes/statistics
[{"count": 266, "duration_start": "2015-12-29T06:11:19", "min": 0.0, "duration_end": "2015-12-31T02:21:18", "max": 161.0, "sum": 13202.0, "period": 0, "period_end": "2015-12-31T02:21:18", "duration": 158999.0, "period_start": "2015-12-29T06:11:19", "avg": 49.63157894736842, "groupby": null, "unit": "B"}]

It's not consistent with the stats value.

Zi Lian Ji (jizilian)
Changed in ceilometer:
assignee: nobody → Zi Lian Ji (jizilian)
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/263329

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/263329
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=99e13d0a8397c463f7b54cb9cf9cb660a6689795
Submitter: Jenkins
Branch: master

commit 99e13d0a8397c463f7b54cb9cf9cb660a6689795
Author: jizilian <email address hidden>
Date: Mon Jan 4 10:24:40 2016 -0500

    wrong accumulative value of "network.services.lb.incoming.bytes"

    According to the wiki[1], the bytes_in in the LBaaS response should
    be a total number. Ceilometer should not accumulate the data again.

    [1]https://wiki.openstack.org/wiki/Neutron/LBaaS/API#List_Traffic_
    Statistics_of_a_pool

    Change-Id: I32ee4b180fc0461d1ce4e98202a6cc50b6bcc781
    Closes-bug:1530793

Changed in ceilometer:
status: In Progress → Fix Released
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.