Bug 1595696 - unable to generate chargeback based on metering for vms with traceback in logs
Summary: unable to generate chargeback based on metering for vms with traceback in logs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.9.0
Hardware: All
OS: All
high
medium
Target Milestone: GA
: 5.10.0
Assignee: Libor Pichler
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
Depends On: 1638045
Blocks: 1595269 1623563
TreeView+ depends on / blocked
 
Reported: 2018-06-27 11:47 UTC by Felix Dewaleyne
Modified: 2022-03-13 15:10 UTC (History)
8 users (show)

Fixed In Version: 5.10.0.11
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1623563 (view as bug list)
Environment:
Last Closed: 2019-02-11 18:39:30 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1583215 0 unspecified CLOSED [RFE] Ability for Chargeback Reports to charge Allocated Resources for Time used 2022-03-13 15:02:34 UTC

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


Note You need to log in before you can comment on or make changes to this bug.