Bug 1282932 - Association named 'storages' was not found on MiqRegion; [miq_capacity/optimize_tree_select] while viewing utilization charts for region
Summary: Association named 'storages' was not found on MiqRegion; [miq_capacity/optimi...
Keywords:
Status: CLOSED DUPLICATE of bug 1275364
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.5.0
Assignee: Milan Zázrivec
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-17 20:11 UTC by Nandini Chandra
Modified: 2015-11-19 16:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 16:25:49 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nandini Chandra 2015-11-17 20:11:04 UTC
Description of problem:
-------------------------
The UI blows up with this error while viewing utilization charts for region.

Error text:

Association named 'storages' was not found on MiqRegion; perhaps you misspelled it? [miq_capacity/optimize_tree_select] 

Snippet from production.log:
[----] F, [2015-11-17T15:05:33.277437 #7489:b35998] FATAL -- : Error caught: [ActiveRecord::AssociationNotFoundError] Association named 'storages' was not found on MiqRegion; perhaps you misspelled it?
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activerecord/lib/active_record/associations.rb:161:in `association'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activerecord/lib/active_record/associations/builder/collection_association.rb:66:in `storage_ids'
/var/www/miq/vmdb/app/models/vim_performance_analysis.rb:510:in `find_child_perf_for_time_period'
/var/www/miq/vmdb/app/models/vim_performance_analysis.rb:546:in `child_tags_over_time_period'
/var/www/miq/vmdb/app/controllers/miq_capacity_controller.rb:473:in `util_replace_right_cell'
/var/www/miq/vmdb/app/controllers/miq_capacity_controller.rb:352:in `optimize_tree_select'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/abstract_controller/base.rb:198:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:117:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:117:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/abstract_controller/base.rb:137:in `process'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionview/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal.rb:196:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-8f6ee25ebb3b/actionpack/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'



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


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


Steps to Reproduce:
------------------
1.Navigate to Optimize->Utilization
2.From the Utilization accordion,click Region after viewing utilization charts for any provider/cluster/host.


Actual results:
--------------
UI error


Expected results:
----------------
No errors


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

Comment 3 Milan Zázrivec 2015-11-18 11:54:38 UTC
Is there perhaps an appliance available that shows this behavior? (I cannot
reproduce this problem locally).

Thanks.

Comment 5 Milan Zázrivec 2015-11-19 16:25:49 UTC
A problem with similar symptoms has been resolved in bug #1275364

What's described in this report is an actual UI reproducer for
the problem from bug #1275364.

*** This bug has been marked as a duplicate of bug 1275364 ***


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