Description of problem: ----------------------- The UI blows up with this error while setting ownership for VMs and instances after getting to the VM/Instance list page from the provider summary page.I can still *set* ownership by getting to the 'All VMs & Templates' page through Compute->Infra-> Virtual Machines. It fails with this error in the UI: Error text: undefined method `all' for nil:NilClass [ems_infra/button] Here's a snippet from production.log: [----] I, [2017-09-18T18:23:53.789558 #2279:14cb048] INFO -- : Started POST "/ems_infra/button/2?pressed=vm_ownership" for 127.0.0.1 at 2017-09-18 18:23:53 -0400 [----] I, [2017-09-18T18:23:53.791476 #2279:14cb048] INFO -- : Processing by EmsInfraController#button as JS [----] I, [2017-09-18T18:23:53.791555 #2279:14cb048] INFO -- : Parameters: {"miq_grid_checks"=>"211,210,220,219,218,222,221,540,529,479,559,510", "pressed"=>"vm_ownership", "id"=>"2"} [----] F, [2017-09-18T18:23:53.805872 #2279:14cb048] FATAL -- : Error caught: [NoMethodError] undefined method `all' for nil:NilClass /var/www/miq/vmdb/lib/rbac/filterer.rb:558:in `apply_scope' /var/www/miq/vmdb/lib/rbac/filterer.rb:205:in `search' /var/www/miq/vmdb/lib/rbac/filterer.rb:113:in `search' /var/www/miq/vmdb/lib/rbac.rb:3:in `search' /var/www/miq/vmdb/app/controllers/application_controller.rb:2339:in `assert_rbac' /var/www/miq/vmdb/app/controllers/mixins/checked_id_mixin.rb:35:in `find_checked_ids_with_rbac' /var/www/miq/vmdb/app/controllers/application_controller/ci_processing.rb:29:in `set_ownership' /var/www/miq/vmdb/app/controllers/application_controller/ci_processing.rb:2864:in `process_vm_buttons' /var/www/miq/vmdb/app/controllers/ems_common.rb:470:in `button' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/base.rb:188:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/rendering.rb:30:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:126:in `call' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:455:in `call' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:101:in `__run_callbacks__' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/callbacks.rb:90:in `run_callbacks' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/callbacks.rb:19:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/rescue.rb:20:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/notifications.rb:164:in `block in instrument' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /opt/rh/cfme-gemset/gems/activesupport-5.0.3/lib/active_support/notifications.rb:164:in `instrument' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' /opt/rh/cfme-gemset/gems/activerecord-5.0.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/abstract_controller/base.rb:126:in `process' /opt/rh/cfme-gemset/gems/actionview-5.0.3/lib/action_view/rendering.rb:30:in `process' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal.rb:190:in `dispatch' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_controller/metal.rb:262:in `dispatch' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/routing/route_set.rb:32:in `serve' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/journey/router.rb:39:in `block in serve' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/journey/router.rb:26:in `each' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/journey/router.rb:26:in `serve' /opt/rh/cfme-gemset/gems/actionpack-5.0.3/lib/action_dispatch/routing/route_set.rb:725:in `call' /opt/rh/cfme-gemset/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/etag.rb:25:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.3/lib/rack/conditional_get.rb:38:in `call' Version-Release number of selected component (if applicable): ------------------------------------------------------------- 5.7.4 How reproducible: ---------------- Always Steps to Reproduce: ------------------- 1.Navigate to the Compute->Infra->Providers page.Click any provider. 2.From the provider summary page, click 'Virtual Machines' in the Relationships section. 3.Select single or multiple VMs. Click 'Configuration', click 'Set ownership'. Actual results: --------------- UI error Expected results: ----------------- No errors Additional info: ----------------
I ran into this issue while verifying https://bugzilla.redhat.com/show_bug.cgi?id=1484387 This issue doesn't occur in 5.8.2.0
Tested 5.7.3.2 and this issue doesn't occur in 5.7.3.2.So, this is a regression.
Fixed in https://github.com/ManageIQ/manageiq/pull/16406
Verified in 5.7.4.1