Bug 1637902

Summary: Unable to perform chargeback assignments for compute
Product: Red Hat CloudForms Management Engine Reporter: Neha Chugh <nchugh>
Component: ReportingAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Jad Haj Yahya <jhajyahy>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.3CC: dmetzger, jocarter, obarenbo, simaishi, yrudman
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1639300 (view as bug list) Environment:
Last Closed: 2020-11-18 14:54:36 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:    
Bug Blocks: 1639300    

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: