Get_meters doesn't distinguish meters with diferent source

Bug #1301371 reported by Nadya Privalova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Medium
Unassigned

Bug Description

Working on test tests.storage.test_storage_scenarios.MeterTest.test_get_meters.
When it run the following samples are written to database: http://pastebin.com/FL97i7h7 (there are 11 samples and they are separated by resource_id)
All backends make 9 meters from these samples: http://pastebin.com/ihkagQsn . But it should be: http://pastebin.com/Vfg7xaMA.
The two last samples are not distinguished now because they differs only by source.

Changed in ceilometer:
importance: Undecided → Medium
Ilya Tyaptin (ityaptin)
Changed in ceilometer:
assignee: nobody → Ilya Tyaptin (ityaptin)
Revision history for this message
Ilya Tyaptin (ityaptin) wrote :

Hi, folks! This bug happens because we rewrite source when are modifying resource entry. For resolving this issue I offer to use sources list in resource entry, but I am not assured what it is useful .

Ilya Tyaptin (ityaptin)
Changed in ceilometer:
status: New → In Progress
Revision history for this message
gordon chung (chungg) wrote :

why would a resource have different source value?

Changed in ceilometer:
assignee: Ilya Tyaptin (ityaptin) → nobody
status: In Progress → Incomplete
Revision history for this message
gordon chung (chungg) wrote :

please reopen if still valid

Changed in ceilometer:
status: Incomplete → Invalid
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.