DescriptionNandini Chandra
2016-09-26 22:06:05 UTC
Description of problem:
-----------------------
Inaccurate storage used costs are being reported in Chargeback reports.
Here's a table of the rates for Used CPU USD/Hour/GB:
Range(start-finish)|Rate(fixed, variable)
--------------------------------
0.0 - Infinity |0, 2.0
The 'Used Disk Storage' for one of my infra VMs(rhev) is 360 GB in a day.
It is actually 15 GB/hour for every hour on that day.
Going by this table,the rate is 2.0 USD/Hour/GB.The reported cost in the Chargeback report is $ $773,094,113,280.00.
Based on my calculation, the cost should be $720.
Storage used cost = Used disk storage in GB/hour * storage rate per GB per hour
= 15 GB * $2.00 (/GB/hour) (for the 1st hour)+
15 GB * $2.00 (/GB/hour) (for the 2nd hour)+
....
....
15 GB * $2.00 (/GB/hour) (for the 24th hour)
= 720 $
Version-Release number of selected component (if applicable):
-----------------------------------
5.6.2.0
How reproducible:
-----------------
Always
Steps to Reproduce:
-------------------
1.Enable C&U collection for a provider.
2.Assign the Storage rate from the issue description to Enterprise
3.Generate a Chargeback report for VMs based on this rate.
Actual results:
---------------
Incorrect storage used cost in Chargeback reports
Expected results:
------------------
Correct storage used cost in Chargeback reports
Additional info: