Comment 0 for bug 1516968

Revision history for this message
Aaron DH (aaron.d) wrote : wrong data in osrf writer

`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"}} -- wrong data

{"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"}} -- wrong data

this is similar to bug1511206