Bug 1595696

Summary: unable to generate chargeback based on metering for vms with traceback in logs
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, fdewaley, jrafanie, lpichler, nachandr, obarenbo, simaishi, smallamp
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1623563 (view as bug list) Environment:
Last Closed: 2019-02-11 18:39:30 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: 1638045    
Bug Blocks: 1595269, 1623563    

Description Felix Dewaleyne 2018-06-27 11:47:32 UTC
Description of problem:
unable to generate chargeback based on metering for vms with traceback in logs :
[----] E, [2018-06-26T14:52:00.406817 #18623:d39118] ERROR -- : [NoMethodError]: undefined method `sum' for #<Chargeback::ConsumptionWithoutRollups:0x000000001aa82068>  Method:[block in method_missing]
[----] E, [2018-06-26T14:52:00.407002 #18623:d39118] ERROR -- : /var/www/miq/vmdb/app/models/chargeable_field.rb:45:in `measure_metering'
/var/www/miq/vmdb/app/models/metering.rb:45:in `block in calculate_costs'
/opt/rh/rh-ruby23/root/usr/share/ruby/set.rb:306:in `each_key'
/opt/rh/rh-ruby23/root/usr/share/ruby/set.rb:306:in `each'
/var/www/miq/vmdb/app/models/metering.rb:19:in `calculate_costs'

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

How reproducible:
customer environment

Steps to Reproduce:
1.create a report based on metering for vms
2.queue a run
3.

Actual results:
run ends up failing with an error.

Expected results:
run ends successfully

Additional info:
customer logs attached privately

Comment 10 Sudhir Mallamprabhakara 2019-02-11 18:39:30 UTC
QE couldn't validate due to scvmm licensing issues