Bug 1330438 - HTML5: Accessing RHOS Instances throws "FATAL -- : Error caught: [NameError] undefined local variable or method `proxy_miq_server' for #<ManageIQ::Providers::Openstack::CloudManager::Vm:0x0000001d965ab0>" error message in production.log file
Summary: HTML5: Accessing RHOS Instances throws "FATAL -- : Error caught: [NameError] ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Beta 2
: 5.6.0
Assignee: Dávid Halász
QA Contact: Ramesh A
URL:
Whiteboard: html5:openstack
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-26 09:01 UTC by Ramesh A
Modified: 2016-07-13 09:09 UTC (History)
6 users (show)

Fixed In Version: 5.6.0.5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:54:42 UTC
Category: Bug
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


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 Ramesh A 2016-04-26 09:01:38 UTC
Description of problem:
Accessing RHOS Instances throws "FATAL -- : Error caught: [NameError] undefined local variable or method `proxy_miq_server' for #<ManageIQ::Providers::Openstack::CloudManager::Vm:0x0000001d965ab0>" error message in production.log file

Version-Release number of selected component (if applicable):
5.6.0.4-beta2.3.20160421172650_719e256

How reproducible:
100%

Steps to Reproduce:
1. Configure appliance for html5 console
2. Manage RHOS provider (I added RHOS 7 GA)
3. Navigate to Compute ==> Clouds ==> Instances ==> Select any Instance ==> Click on the html5 icon

Actual results:
1. Does not show console in the WebUI
2. Throws "FATAL -- : Error caught: [NameError] undefined local variable or method `proxy_miq_server' for # <ManageIQ::Providers::Openstack::CloudManager::Vm:0x0000001d965ab0>" error message in production.log file.  Refer the production.log file for more details

Expected results:
Should not throw any error message in production.log file and display the console in the WebUI

Additional info:
prodution.log:
=============
[----] I, [2016-04-26T03:40:21.393898 #28331:81cf2c]  INFO -- : Started POST "/vm_cloud/html5_console/1854" for 127.0.0.1 at 2016-04-26 03:40:21 -0400
[----] I, [2016-04-26T03:40:21.395720 #28331:81cf2c]  INFO -- : Processing by VmCloudController#html5_console as JS
[----] I, [2016-04-26T03:40:21.395810 #28331:81cf2c]  INFO -- :   Parameters: {"id"=>"1854"}
[----] F, [2016-04-26T03:40:21.606549 #28331:81cf2c] FATAL -- : Error caught: [NameError] undefined local variable or method `proxy_miq_server' for #<ManageIQ::Providers::Openstack::CloudManager::Vm:0x0000001d965ab0>
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activemodel/lib/active_model/attribute_methods.rb:433:in `method_missing'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/vm/remote_console.rb:29:in `remote_console_acquire_ticket_queue'
/var/www/miq/vmdb/app/controllers/vm_common.rb:1354:in `console_before_task'
/var/www/miq/vmdb/app/controllers/vm_common.rb:99:in `html5_console'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/abstract_controller/base.rb:181:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/rescue.rb:31:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionview/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/routing/route_set.rb:739: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/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/railties/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/railties/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/bundler/gems/rails-f0a2edc7fc08/actionpack/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-f0a2edc7fc08/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/bundler/gems/rails-f0a2edc7fc08/actionpack/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/bundler/gems/rails-f0a2edc7fc08/railties/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'
[----] I, [2016-04-26T03:40:21.609149 #28331:81cf2c]  INFO -- :   Rendered layouts/_exception_contents.html.haml (0.3ms)

Comment 6 CFME Bot 2016-04-28 07:25:38 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0941dace7c5bfd5bd64772dd4a02865806bdeb0e

commit 0941dace7c5bfd5bd64772dd4a02865806bdeb0e
Author:     Dávid Halász <dhalasz>
AuthorDate: Tue Apr 26 11:15:46 2016 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Wed Apr 27 14:01:30 2016 +0200

    OpenStack consoles ported to the new console/proxy implementation
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1330438

 app/controllers/vm_common.rb                       |  8 +++---
 .../openstack/cloud_manager/vm/remote_console.rb   |  4 +--
 spec/controllers/vm_common_spec.rb                 | 30 ++++++++++++++++++++++
 3 files changed, 37 insertions(+), 5 deletions(-)

Comment 8 Ramesh A 2016-06-01 11:25:06 UTC
Good to go. Verified and working fine in 5.6.0.8-rc1.20160524155303_f2a5a50

Comment 10 errata-xmlrpc 2016-06-29 15:54:42 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.