Bug 1334238 - Error in Migrating Instance - undefined method `find_by_filtered_id' for #<VmCloudController:>
Summary: Error in Migrating Instance - undefined method `find_by_filtered_id' for #<Vm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.6.0
Assignee: Sam Lucidi
QA Contact: Niyaz Akhtar Ansari
URL:
Whiteboard: cloud:migrate
Depends On: 1334275
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-09 09:06 UTC by Niyaz Akhtar Ansari
Modified: 2016-06-29 16:00 UTC (History)
8 users (show)

Fixed In Version: 5.6.0.7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 16:00:30 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (59.38 KB, image/png)
2016-05-09 09:06 UTC, Niyaz Akhtar Ansari
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Niyaz Akhtar Ansari 2016-05-09 09:06:12 UTC
Created attachment 1155220 [details]
screenshot

Description of problem:
When Clicked on Submit/Cancel Button while migrating instance it throws an error in log.

Version-Release number of selected component (if applicable):
Version 5.6.0.5-beta2.4.20160503153816_1fb554f


How reproducible:
100%

Steps to Reproduce:
1.Navigate to Compute->Clouds->Instances 
2.Choose any Instance  
3.Click on Migrate Selected Instances From Lifecycle tab
4.Click on Submit/Cancel button. 

Actual results:
unable to Migrate Instance.It throws an error in log.

Expected results:
Migrate of instance should work.

Additional info:


Production log:

[----] I, [2016-05-09T04:43:07.861414 #3193:6ec1c0]  INFO -- : Started POST "/vm_cloud/live_migrate_vm/1237?button=submit" for 127.0.0.1 at 2016-05-09 04:43:07 -0400
[----] I, [2016-05-09T04:43:07.863986 #3193:6ec1c0]  INFO -- : Processing by VmCloudController#live_migrate_vm as JS
[----] I, [2016-05-09T04:43:07.864134 #3193:6ec1c0]  INFO -- :   Parameters: {"cluster_id"=>"?", "destination_host_id"=>"?", "button"=>"submit", "id"=>"1237"}
[----] F, [2016-05-09T04:43:09.117516 #3193:6ec1c0] FATAL -- : Error caught: [NoMethodError] undefined method `find_by_filtered_id' for #<VmCloudController:0x000000230bafe0>
/var/www/miq/vmdb/app/controllers/vm_cloud_controller.rb:146:in `live_migrate_vm'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/base.rb:181:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/rescue.rb:31:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.beta4/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/routing/route_set.rb:725:in `call'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63: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.0.alpha/lib/rack/etag.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/conditional_get.rb:38:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/head.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:220:in `context'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:214:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/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.beta4/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/method_override.rb:22:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/runtime.rb:22:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-83a8682c1d10/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.beta4/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.0.alpha/lib/rack/sendfile.rb:111:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.beta4/lib/rails/engine.rb:522:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `call'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread'
/opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
[----] I, [2016-05-09T04:43:09.891190 #3193:6ec1c0]  INFO -- :   Rendered layouts/_exception_contents.html.haml (0.3ms)
[----] I, [2016-05-09T04:43:09.892302 #3193:6ec1c0]  INFO -- : Completed 200 OK in 2028ms (Views: 3.5ms | ActiveRecord: 0.0ms)

Comment 2 Harpreet Kataria 2016-05-10 16:39:46 UTC
Sam,

Is this bug fixed by commit: 856f7913f7b59d47961395a48e805bef70dfd064. Please verify and send it to Post if it has been addressed by above commit.

Thanks,
~Harpreet

Comment 3 Sam Lucidi 2016-05-10 17:47:15 UTC
This specific bug is fixed by 856f7913f7b59d47961395a48e805bef70dfd064.

Comment 6 Sam Lucidi 2016-05-12 18:13:10 UTC
This problem should be resolved now that the branch containing commit 41e6610e48fd08446d87b0fe290ffb80e6d377ac has been merged.

https://github.com/ManageIQ/manageiq/pull/8521

Comment 8 Niyaz Akhtar Ansari 2016-05-20 09:53:21 UTC
Unable to migrate Instance.


Bug is reproducible in Build:5.6.0.7-beta2.6.20160516171555_b1be31f 

Steps to Reproduce:
1.Navigate to Compute->Clouds->Providers 
2.Click on rhos provider  
3.Click on Instances(from providers Summary page)
4.Choose any Instance and Click on Migrate Selected Instances From Lifecycle tab

 
Migration from doesn't display when Clicked on Migrate Selected Instances From Lifecycle tab.

Comment 9 Sam Lucidi 2016-05-20 15:00:44 UTC
I've been unable to reproduce this myself. Could you provide me screenshot of any JS console or Rails log exceptions or any other information you feel is relevant?

Comment 10 Niyaz Akhtar Ansari 2016-05-23 10:18:16 UTC
Sam, 

Can you please  have a look ?

https://bugzilla.redhat.com/show_bug.cgi?id=1334275#c1


I will verify when the above bug will fix.

Comment 11 Niyaz Akhtar Ansari 2016-05-27 06:41:00 UTC
Migrate of instance bug has been fixed and its working successfully.

Verified in 5.6.0.8-rc1.20160524155303_f2a5a50

Comment 13 errata-xmlrpc 2016-06-29 16:00:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348


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