Description of problem: After changes introduced in commit a518a17a0865554adfd42b3bf625194c6f15c461, chargeback reports log a different number of records found. For example, a chargeback report for the past day logs 114 records found: [----] I, [2018-07-20T10:58:27.130534 #12091:489108] INFO -- : MIQ(Chargeback::ConsumptionHistory.for_report) Found 114 records for time range [Thu, 19 Jul 2018 00:00:00 UTC +00:00, Thu, 19 Jul 2018 23:59:59 UTC +00:00] This gives the number of VM's with hourly rollups in that time range. Prior to this commit, the total number of rollups is logged instead: [----] I, [2018-07-20T13:32:05.828170 #2317:cbd108] INFO -- : MIQ(Chargeback::ConsumptionHistory.for_report) Found 1620 records for time range [Thu, 19 Jul 2018 00:00:00 UTC +00:00, Thu, 19 Jul 2018 23:59:59 UTC +00:00] Version-Release number of selected component (if applicable): 5.9.3 How reproducible: 100% Steps to Reproduce: 1.) Run chargeback for the past day. 2.) View evm.log. Actual results: Number of VM's is now logged as number of records found for time range. Expected results: Number of rollups is logged as number of records found for time range (or both # of rollups and # of VM's). Additional info:
Libor, can you take a look when you get a chance? Thanks!
Verified on 5.10.0.15.