Bug 1337657

Summary: Chargeback reports contain no data when rates are assigned to Tenants
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: ReportingAssignee: Tim Wade <twade>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dajohnso, gtanzill, jhardy, mfeifer, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: report:chargeback
Fixed In Version: 5.6.0.9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 16:04:31 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:

Description Nandini Chandra 2016-05-19 18:23:12 UTC
Description of problem:
----------------------



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


How reproducible:
----------------
Always


Steps to Reproduce:
------------------
1.Manage a provider.Enable C&U collection for the provider.
2.Assign a chargeback rate to a tenant.In this case, I assigned the rate to the OOTB tenant, My Company.
3.Create a chargeback report. 


Actual results:
--------------
Chargeback reports contain no data when rates are assigned to Tenants.


Expected results:
----------------
Chargeback reports contain should contain data when rates are assigned to Tenants.


Additional info:
-----------------
I have no issues generating Chargeback reports when the rate is assigned to Enterprise.

Comment 4 CFME Bot 2016-05-31 13:15:52 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3ca68f68e071a1a4b208f8a315b9064b18c7ec86

commit 3ca68f68e071a1a4b208f8a315b9064b18c7ec86
Author:     lpichler <lpichler>
AuthorDate: Fri May 27 11:05:03 2016 +0200
Commit:     lpichler <lpichler>
CommitDate: Tue May 31 12:52:56 2016 +0200

    Add owner's tenant of MetricRollup#resource for matching assigned chargeback rate
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1337657

 app/models/chargeback.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comment 5 Nandini Chandra 2016-06-09 13:34:10 UTC
Verified in  5.6.0.9

Comment 8 errata-xmlrpc 2016-06-29 16:04:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348