Bug 1388440 - "[NoMethodError] undefined method `include?' for nil:NilClass" error found in production.log file when clicking on any virtual machine from Services==> Workloads
Summary: "[NoMethodError] undefined method `include?' for nil:NilClass" error found in...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Roman Blanco
QA Contact: Shveta
URL:
Whiteboard: ui:vm:filter:service
Depends On:
Blocks: 1395309
TreeView+ depends on / blocked
 
Reported: 2016-10-25 11:03 UTC by Ramesh A
Modified: 2017-06-12 17:17 UTC (History)
8 users (show)

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


Attachments (Terms of Use)

Description Ramesh A 2016-10-25 11:03:16 UTC
Description of problem:
"NoMethodError] undefined method `include?' for nil:NilClass" error found in production.log file when clicking on any virtual machine under any of the Global Filters

Version-Release number of selected component (if applicable):
5.7.0.6-alpha3.20161019140041_ea8e259 

How reproducible:
100%

Steps to Reproduce:
1. Manage a Infra/cloud provider
2. Navigate to Services ==> Workloads
3. Choose any of the Global Filters under VMs & Instances ==> All VMs & Instances ==> Global Filters (say, "Status / Running" or "Status / Orphaned" or any other option) in the tree view
4. Click on any of the virtual machine/instance which is displayed based out of the filter

Actual results:
Nothing happens in the UI and throws error message in production.log file.  Refer the production.log file for more details

Expected results:
Should navigate to virtual machine details page and should not throw any error message in production.log file

Additional info:
production.log:
===============

[----] I, [2016-10-25T06:42:47.443356 #13231:118436c]  INFO -- : Started POST "/vm_infra/x_show/311" for 127.0.0.1 at 2016-10-25 06:42:47 -0400
[----] I, [2016-10-25T06:42:47.446475 #13231:118436c]  INFO -- : Processing by VmInfraController#x_show as JS
[----] I, [2016-10-25T06:42:47.446585 #13231:118436c]  INFO -- :   Parameters: {"id"=>"311"}
[----] F, [2016-10-25T06:42:47.698933 #13231:118436c] FATAL -- : Error caught: [NoMethodError] undefined method `include?' for nil:NilClass
/var/www/miq/vmdb/app/controllers/vm_common.rb:1161:in `open_parent_nodes'
/var/www/miq/vmdb/app/controllers/vm_common.rb:1349:in `replace_right_cell'
/var/www/miq/vmdb/app/controllers/vm_common.rb:1077:in `tree_select'
/var/www/miq/vmdb/app/controllers/vm_common.rb:165:in `block (2 levels) in x_show'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/mime_responds.rb:201:in `respond_to'
/var/www/miq/vmdb/app/controllers/vm_common.rb:158:in `x_show'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/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.1/lib/rack/etag.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:26:in `call'
/opt/rh/cfme-gemset/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/lib/rails/engine.rb:522:in `call'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread'
[----] I, [2016-10-25T06:42:47.700301 #13231:118436c]  INFO -- :   Rendered layouts/_exception_contents.html.haml (0.2ms)
[----] I, [2016-10-25T06:42:47.700920 #13231:118436c]  INFO -- : Completed 200 OK in 254ms (Views: 1.5ms | ActiveRecord: 0.0ms)
[----] I, [2016-10-25T06:42:51.713009 #13250:117fdf8]  INFO -- : Started GET "/api" for 127.0.0.1 at 2016-10-25 06:42:51 -0400
[----] I, [2016-10-25T06:42:51.715398 #13250:117fdf8]  INFO -- : Processing by Api::ApiController#index as JSON
[----] I, [2016-10-25T06:42:51.742286 #13250:117fdf8]  INFO -- : Completed 200 OK in 27ms (Views: 0.4ms | ActiveRecord: 0.0ms)

Comment 2 Ramesh A 2016-10-25 11:25:09 UTC
Upon further investigation, It is found reproducible click on any of the virtual machines in Services ==> workloads.

Comment 3 Harpreet Kataria 2016-10-26 03:16:26 UTC
Zita,

Can you take a look, it looks like it is throwing an error when clicking on VMs in workloads explorer list view. Let me know if you need help looking into this.

Thanks,
~Harpreet

Comment 4 Zita Nemeckova 2016-10-31 08:49:59 UTC
Hi,

I failed to reproduced this bug on master and 5.7.0.6 branch. Can you provide an appliance where it can be reproduced?

Thanks,
Zita

Comment 5 Shveta 2016-10-31 12:31:24 UTC
Unable to reproduce this on latest 5.7.0.7-beta1.20161025153249_9376fbd

Comment 6 Ramesh A 2016-11-11 12:38:07 UTC
REopening this issue as it is reproducible in the latest build

Versions:
5.7.0.10-beta3.20161109111947_9a61b18 
5.7.0.9-beta2.1.20161101182054_eb0afaa


Now clicking on any of the virtual machine throws the same error
1. Manage a Infra provider
2. Navigate to Services ==> Workloads
3. Click on any of the virtual machine

Comment 7 Roman Blanco 2016-11-15 13:56:54 UTC
https://github.com/ManageIQ/manageiq/pull/12638

Comment 8 CFME Bot 2016-11-15 15:41:16 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/3f3eb62baaa18ee48c8abb35baf687e54bd79230

commit 3f3eb62baaa18ee48c8abb35baf687e54bd79230
Author:     Martin Hradil <himdel>
AuthorDate: Tue Nov 15 17:30:35 2016 +0200
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 15 10:37:03 2016 -0500

    Merge pull request #12638 from romanblanco/bz1388440
    
    Return url according to controller for Vm or Templates
    (cherry picked from commit b2a5f6e0252e619ed105594e16ee0dae59db5439)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1388440

 app/helpers/application_helper.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comment 10 Shveta 2017-03-13 04:35:14 UTC
Fixed . verified in 5.8.0.4.20170307183144_745a3d9


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