Bug 1750800

Summary: Chargeback reports not working
Product: Red Hat CloudForms Management Engine Reporter: mheppler
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED NOTABUG QA Contact: Tasos Papaioannou <tpapaioa>
Severity: urgent Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: urgent    
Version: 5.10.9CC: dmetzger, gekis, gtanzill, jprause, obarenbo, simaishi, tpapaioa
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1753280 1767791 (view as bug list) Environment:
Last Closed: 2020-06-10 12:35:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1753280, 1767791    

Description mheppler 2019-09-10 13:47:04 UTC
Description of problem:

Whole problem is described in case 02467877 (https://gss.my.salesforce.com/5002K00000gl9Ik)

Customer is not able to get Chargeback reports, error found in logs:

[----] E, [2019-09-10T10:31:06.699283 #20209:42af54] ERROR -- : MIQ(ChargebackVm.vms) Unable to find tenant '70000000000001'. Calculating chargeback costs aborted.
[----] E, [2019-09-10T10:31:06.699708 #20209:42af54] ERROR -- : [MiqException::Error]: Unable to find tenant '70000000000001'  Method:[block (2 levels) in <class:LogProxy>]
[----] W, [2019-09-10T10:31:06.719612 #20209:42af54]  WARN -- : <AuditFailure> MIQ(Async.rescue in _async_generate_table) userid: [xxhladij.net] - Unable to find tenant '70000000000001'
[----] E, [2019-09-10T10:31:06.728710 #20209:42af54] ERROR -- : MIQ(MiqQueue#deliver) Message id: [98000000012640], Error: [Unable to find tenant '70000000000001']

All files are attached to case, including database dump.

Reprod is baking (waiting for DB restore now), IP is 10.44.130.172 (in BRQ lab).