Bug 1637902 - Unable to perform chargeback assignments for compute
Summary: Unable to perform chargeback assignments for compute
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.9.3
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.10.0
Assignee: Libor Pichler
QA Contact: Jad Haj Yahya
URL:
Whiteboard:
Depends On:
Blocks: 1639300
TreeView+ depends on / blocked
 
Reported: 2018-10-10 10:07 UTC by Neha Chugh
Modified: 2022-03-13 15:43 UTC (History)
5 users (show)

Fixed In Version: 5.10.0.12
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1639300 (view as bug list)
Environment:
Last Closed: 2020-11-18 14:54:36 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Neha Chugh 2018-10-10 10:07:24 UTC
Description of problem:
Unable to perform chargeback assignments for compute

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

How reproducible:
at customer's environment

Steps to Reproduce:
1. Navigate to Cloud Intel -> Chargeback -> Assignments -> Compute
2. Try to assign to any category then it failed to assign and below exception observed:
[----] I, [2018-10-05T09:43:02.614054 #2204:c68310]  INFO -- :   Parameters: {"id"=>"xx-Compute"}
[----] F, [2018-10-05T09:43:03.237975 #2204:c68310] FATAL -- : Error caught: [NoMethodError] undefined method `[]' for nil:NilClass
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-ffe20d38326d/app/controllers/chargeback_controller.rb:717:in `block in cb_assign_set_form_vars'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-ffe20d38326d/app/controllers/chargeback_controller.rb:713:in `each'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-ffe20d38326d/app/controllers/chargeback_controller.rb:713:in `cb_assign_set_form_vars'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-ffe20d38326d/app/controllers/chargeback_controller.rb:402:in `get_node_info'
/opt/rh/cfme-gemset/bundler/gems/cfme-ui-classic-ffe20d38326d/app/controllers/chargeback_controller.rb:41:in `tree_select'
/opt/rh/cfme-gemset/gems/actionpack-5.0.6/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
                                                                                                                  

Actual results:

It is throwing exception, it is expecting two parameters i.e. source and rate type but in compute it is providing only rate type but no source information due to which it is throwing above exception.

Expected results:

It should set chargeback rate based on compute rate type.

Additional info:


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