Bug 1416626 - [Regression]Error generating Chargeback reports
Summary: [Regression]Error generating Chargeback reports
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Šimon Lukašík
QA Contact: Nandini Chandra
URL:
Whiteboard: chargeback
Depends On:
Blocks: 1419186
TreeView+ depends on / blocked
 
Reported: 2017-01-26 05:35 UTC by Nandini Chandra
Modified: 2017-06-12 16:41 UTC (History)
5 users (show)

Fixed In Version: 5.8.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1419186 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:41:22 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1416001 0 unspecified CLOSED [FloatDomainError]: Infinity Method in Chargebacks for SCVMM 2022-07-09 08:13:04 UTC

Internal Links: 1416001

Description Nandini Chandra 2017-01-26 05:35:01 UTC
Description of problem:
-----------------------
I'm unable to generate Chargeback reports when particular fields are included 
in the report.I'm still trying to figure out what fields cause this error.

I have tested this with vSphere.This issue doesn't occur in 5.7 GA.

Here's a snippet from evm.log:

[----] W, [2017-01-25T17:38:41.506587 #11923:5fb130]  WARN -- : <AuditFailure> MIQ(Async.rescue in _async_generate_table) userid: [admin] - Infinity

[----] E, [2017-01-25T17:38:41.529399 #11923:5fb130] ERROR -- : MIQ(MiqQueue#deliver) Message id: [6427], Error: [Infinity]

[----] E, [2017-01-25T17:38:41.529778 #11923:5fb130] ERROR -- : [FloatDomainError]: Infinity  Method:[rescue in deliver]

[----] E, [2017-01-25T17:38:41.529988 #11923:5fb130] ERROR -- : /opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/number_helper/number_to_human_size_converter.rb:53:in `to_i'
/opt/rh/cfme-gemset/gems/activesupport-
5.0.0.1/lib/active_support/number_helper/number_to_human_size_converter.rb:53:in
`smaller_than_base?'

/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/number_helper/number_to_human_size_converter.rb:21:in `convert'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/number_helper/number_converter.rb:132:in `execute'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/number_helper/number_converter.rb:118:in `convert'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/number_helper.rb:261:in `number_to_human_size'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/helpers/number_helper.rb:403:in `public_send'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/helpers/number_helper.rb:403:in `block in delegate_number_helper_method'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/helpers/number_helper.rb:427:in `wrap_with_output_safety_handling'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/helpers/number_helper.rb:402:in `delegate_number_helper_method'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/helpers/number_helper.rb:287:in `number_to_human_size'
/var/www/miq/vmdb/app/helpers/number_helper.rb:5:in `block in number_to_human_size'
/var/www/miq/vmdb/app/helpers/number_helper.rb:76:in `handling_negatives'
/var/www/miq/vmdb/app/helpers/number_helper.rb:4:in `number_to_human_size'
/var/www/miq/vmdb/app/models/miq_report/formatting.rb:155:in `format_bytes_to_human_size'
/var/www/miq/vmdb/app/models/miq_report/formatting.rb:164:in `format_mbytes_to_human_size'
/var/www/miq/vmdb/app/models/miq_report/formatting.rb:123:in `apply_format_function'
/var/www/miq/vmdb/app/models/miq_report/formatting.rb:108:in `format'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:85:in `block (2 levels) in build_html_rows'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:65:in `each'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:65:in `each_with_index'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:65:in `block in build_html_rows'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:42:in `each'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:42:in `each_with_index'
/var/www/miq/vmdb/app/models/miq_report/generator/html.rb:42:in `build_html_rows'
/var/www/miq/vmdb/app/models/miq_report/generator.rb:328:in `build_create_results'
/var/www/miq/vmdb/app/models/miq_report/generator/async.rb:105:in `_async_generate_table'
/var/www/miq/vmdb/app/models/miq_queue.rb:347:in `block in deliver'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:91:in `block in timeout'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `block in catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:106:in `timeout'
/var/www/miq/vmdb/app/models/miq_queue.rb:343:in `deliver'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:106:in `deliver_queue_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:134:in `deliver_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:152:in `block in do_work'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `loop'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `do_work'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:334:in `block in do_work_loop'



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


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


Steps to Reproduce:
-------------------
1.Manage a provider.Enable C&U for the provider.
2.Assign Compute rates and generate a Chargeback report.


Actual results:
---------------
Error generating Chargeback reports.


Expected results:
-----------------
No errors while generating Chargeback reports.


Additional info:
----------------

Comment 2 Nandini Chandra 2017-01-26 16:11:54 UTC
Simon,

Let me know if you

Comment 3 Šimon Lukašík 2017-01-26 19:08:47 UTC
> Simon,
> 
> Let me know if you
> 
> See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1416001 

Yes, I do. :)

Comment 4 Nandini Chandra 2017-01-26 22:48:43 UTC
Simon,

Comment # 2 should actually read:

Let me know if you need access to my appliance on which this issue has been reproduced.

Sorry about that.

Comment 5 Šimon Lukašík 2017-01-30 12:14:09 UTC
:)

Hello Nandini, I am sorry, I cannot reproduce this issue on my fresh 5.7.1. Could you please pass me the access to your appliance (if the problem still persists)?

Thanks!!

Comment 7 Šimon Lukašík 2017-02-01 10:46:51 UTC
Thanks Nandini,

Unfortunately, the problem is no longer reproducible in you environment as well. 

The problem seems to be reproducible only right after you add provider with C&U to manageiq. After few hours the problem goes away.

I think I have been able to fix it anyway: https://github.com/ManageIQ/manageiq/pull/13723

Comment 9 Nandini Chandra 2017-03-22 21:26:08 UTC
Verified in 5.8.0.7


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