Bug 1361222

Summary: Chargeback per time is limited to hourly
Product: Red Hat CloudForms Management Engine Reporter: Sergio Ocón-Cárdenas <soconcar>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: cpelland, gtanzill, jhardy, kmorey, lpichler, nachandr, ngupta, nstephan, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: chargeback
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1410535 (view as bug list) Environment:
Last Closed: 2017-06-12 16:48:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1410535    
Attachments:
Description Flags
ui screenshot none

Description Sergio Ocón-Cárdenas 2016-07-28 14:18:51 UTC
Description of problem:
When calculating the rates using tiers, selection of tier to be used for rating is not working properly.
As C&U data is generated hourly, when finding the tier to use it applies that to the hourly C&U data, and not to the proper amount (i.e. daily or monthly amount), thus returning a different tier than expected. 

Version-Release number of selected component (if applicable):
4.1

How reproducible:
Always

Steps to Reproduce:
-------------------
1.Define a custom tiered rate for a metric; for eg: CPU used
2.Create a chargeback report based on the tiered rate.

Actual results:
The per time is only allowed to be hourly

Expected results:
Per time should be a selection of options (hourly, daily, weekly, monthly), and rate should be applied properly

Additional info:
Original bug has additional information about the error

Comment 3 Kevin Morey 2016-08-15 15:10:40 UTC
Created attachment 1190928 [details]
ui screenshot

Comment 10 Nandini Chandra 2017-02-27 20:59:40 UTC
Verified in 5.8.0.2