wrong data in jsonfile generated by osrf writer

Bug #1516968 reported by Aaron DH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Fix Released
Low
zhangguoqing

Bug Description

`cloudkitty-writer generate` with osrf writer and the result has wrong data:

part of result like:

{"usage": {"compute": [{"vol": {"unit": "instance", "qty": 1.0}, "rating": {"price": 0.0}, "tenant_id": "4e3b55abd5284a2eb4f0654ccc8bb7a6", "desc": {"user_id": "4ecb9ecd6e4f4550b0db6f22eacc0851", "name": "test1105", "availability_zone": "nova", "instance_id": "be4e0562-e711-47d1-8b5a-88bb9966ebe1", "image_id": "d98feba8-ee5c-4e41-9ac2-aee618ad0a3b", "vcpus": "1", "memory": "512", "flavor": "m1.tiny", "project_id": "4e3b55abd5284a2eb4f0654ccc8bb7a6", "metadata": {}}}]}, "period": {"begin": "2015-11-05T02:00:00", "end": "2015-11-05T03:00:00"}},

{"usage": {}, "period": {"begin": "2015-11-05T02:00:00", "end": "2015-11-05T03:00:00"}}
== this record has the same begin and end time with last record ==

{"usage": {"compute": [{"vol": {"unit": "instance", "qty": 1.0}, "rating": {"price": 0.0}, "tenant_id": "4e3b55abd5284a2eb4f0654ccc8bb7a6", "desc": {"user_id": "4ecb9ecd6e4f4550b0db6f22eacc0851", "name": "test1105", "availability_zone": "nova", "instance_id": "be4e0562-e711-47d1-8b5a-88bb9966ebe1", "image_id": "d98feba8-ee5c-4e41-9ac2-aee618ad0a3b", "vcpus": "1", "memory": "512", "flavor": "m1.tiny", "project_id": "4e3b55abd5284a2eb4f0654ccc8bb7a6", "metadata": {}}}]}, "period": {"begin": "2015-11-05T03:00:00", "end": "2015-11-05T04:00:00"}}

{"usage": {}, "period": {"begin": "2015-11-05T03:00:00", "end": "2015-11-05T04:00:00"}} == this record has the same begin and end time with last record ==

this is similar to bug1511206

Tags: cloudkitty
Revision history for this message
Aaron DH (aaron.d) wrote :
description: updated
summary: - wrong data in osrf writer
+ wrong data in jsonfile generated by osrf writer
Changed in cloudkitty:
importance: Undecided → Low
Aaron DH (aaron.d)
Changed in cloudkitty:
assignee: nobody → Aaron DH (aaron.d)
Changed in cloudkitty:
assignee: Aaron DH (aaron.d) → zhangguoqing (474751729-o)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cloudkitty (master)

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

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

Reviewed: https://review.openstack.org/522416
Committed: https://git.openstack.org/cgit/openstack/cloudkitty/commit/?id=c7ba8dace959585024f1495adc9c5d003b784f5f
Submitter: Zuul
Branch: master

commit c7ba8dace959585024f1495adc9c5d003b784f5f
Author: zhangguoqing <zhang.guoqing@99cloud.net>
Date: Thu Nov 23 01:00:32 2017 +0000

    Fix wrong data in jsonfile generated by osrf writer

    The redundant commit of backend leds to the addition of wrong data that
    usage is None and period is repeated.
    {"usage": {}, "period": {"begin": "xxxx", "end": "xxxx"}
    Closes-bug: #1516968

    Change-Id: Ifee499bc645f30d0ffcc53c2e2c9d05587e76940

Changed in cloudkitty:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cloudkitty 7.0.0

This issue was fixed in the openstack/cloudkitty 7.0.0 release.

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.