Bug 1388164 - VMRC is not working, throws following error "Console access failed: wrong number of arguments (given 2, expected 0..1)"
Summary: VMRC is not working, throws following error "Console access failed: wrong num...
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: Dávid Halász
QA Contact: Kedar Kulkarni
URL:
Whiteboard: vmrc:ui:vsphere
Depends On:
Blocks: 1388674
TreeView+ depends on / blocked
 
Reported: 2016-10-24 15:45 UTC by Ramesh A
Modified: 2017-06-12 17:30 UTC (History)
6 users (show)

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


Attachments (Terms of Use)
VMRC error (385.13 KB, image/png)
2016-10-24 15:45 UTC, Ramesh A
no flags Details

Description Ramesh A 2016-10-24 15:45:52 UTC
Created attachment 1213508 [details]
VMRC error

Description of problem:
Accessing VMRC in CFME 5.7 throws following error "Console access failed: wrong number of arguments (given 2, expected 0..1)"

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

How reproducible:
100%

Steps to Reproduce:
1. Manage VSphere provider (say VSphere 55 or 6)
2. Navigate to Compute ==>  Infrastructure ==> Virtual Machine ==> Select a Virtual Machine ==> Click on the VMRC icon in the Virtual Machine details page


Actual results:
Throws following error "Console access failed: wrong number of arguments (given 2, expected 0..1)"
Refer the screenshot and evm.log file for further information

Expected results:
Should open the vmrc console

Additional info:
evm.log:
=======
[----] E, [2016-10-24T11:37:03.736918 #13141:c3b144] ERROR -- : MIQ(MiqQueue#deliver) Message id: [77564], Error: [wrong number of arguments (given 2, expected 0..1)]
[----] E, [2016-10-24T11:37:03.737373 #13141:c3b144] ERROR -- : [ArgumentError]: wrong number of arguments (given 2, expected 0..1)  Method:[rescue in deliver]
[----] E, [2016-10-24T11:37:03.737544 #13141:c3b144] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb:51:in `remote_console_vmrc_acquire_ticket'
/var/www/miq/vmdb/app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb:16:in `remote_console_acquire_ticket'
/var/www/miq/vmdb/app/models/miq_queue.rb:347:in `block in deliver'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:91:in `block in timeout'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `block in catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:33:in `catch'
/opt/rh/rh-ruby23/root/usr/share/ruby/timeout.rb:106:in `timeout'
/var/www/miq/vmdb/app/models/miq_queue.rb:343:in `deliver'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:106:in `deliver_queue_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:134:in `deliver_message'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:152:in `block in do_work'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `loop'
/var/www/miq/vmdb/app/models/miq_queue_worker_base/runner.rb:146:in `do_work'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:334:in `block in do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:331:in `do_work_loop'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:153:in `run'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:128:in `start'
/var/www/miq/vmdb/app/models/miq_worker/runner.rb:21:in `start_worker'
/var/www/miq/vmdb/app/models/miq_worker.rb:343:in `block in start'
/opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork'
/opt/rh/cfme-gemset/gems/nakayoshi_fork-0.0.3/lib/nakayoshi_fork.rb:24:in `fork'
/var/www/miq/vmdb/app/models/miq_worker.rb:341:in `start'
/var/www/miq/vmdb/app/models/miq_worker.rb:270:in `start_worker'
/var/www/miq/vmdb/app/models/miq_worker.rb:150:in `block in sync_workers'
/var/www/miq/vmdb/app/models/miq_worker.rb:150:in `times'
/var/www/miq/vmdb/app/models/miq_worker.rb:150:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:52:in `block in sync_workers'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:50:in `each'
/var/www/miq/vmdb/app/models/miq_server/worker_management/monitor.rb:50:in `sync_workers'
/var/www/miq/vmdb/app/models/miq_server.rb:158:in `start'
/var/www/miq/vmdb/app/models/miq_server.rb:248:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:65:in `start'
/var/www/miq/vmdb/lib/workers/evm_server.rb:92:in `start'
/var/www/miq/vmdb/lib/workers/bin/evm_server.rb:4:in `<main>'
[----] I, [2016-10-24T11:37:03.737771 #13141:c3b144]  INFO -- : MIQ(MiqQueue#delivered) Message id: [77564], State: [error], Delivered in [0.006204524] seconds
[----] I, [2016-10-24T11:37:03.739735 #13141:c3b144]  INFO -- : MIQ(MiqQueue#m_callback) Message id: [77564], Invoking Callback with args: ["Finished", "error", "wrong number of arguments (given 2, expected 0..1)", "nil"]
[----] I, [2016-10-24T11:37:03.740272 #13141:c3b144]  INFO -- : MIQ(MiqTask#update_status) Task: [47] [Finished] [Error] [wrong number of arguments (given 2, expected 0..1)]
[----] E, [2016-10-24T11:37:04.026687 #13231:1189128] ERROR -- : MIQ(vm_infra_controller-wait_for_task): Console access failed: wrong number of arguments (given 2, expected 0..1)

Comment 4 CFME Bot 2016-10-25 08:06:21 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/948138580700dc08cecf2d5441bfad14c7f0b5d1

commit 948138580700dc08cecf2d5441bfad14c7f0b5d1
Author:     Dávid Halász <dhalasz>
AuthorDate: Tue Oct 25 08:54:40 2016 +0200
Commit:     Dávid Halász <dhalasz>
CommitDate: Tue Oct 25 08:54:40 2016 +0200

    Added missing originating_server argument for VMRC console startup
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1388164

 app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 5 CFME Bot 2016-10-25 11:46:00 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/28772f6ba28a99499164aa569bf83ca554fb48c7

commit 28772f6ba28a99499164aa569bf83ca554fb48c7
Author:     Martin Povolny <mpovolny>
AuthorDate: Tue Oct 25 10:01:58 2016 +0200
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Oct 25 13:41:17 2016 +0200

    Merge pull request #12153 from skateman/bz-1388164
    
    Added missing originating_server argument for VMRC console startup
    (cherry picked from commit 26415582a79eaf689711fb27a49a38fe640a3340)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1388164

 app/models/manageiq/providers/vmware/infra_manager/vm/remote_console.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 Kedar Kulkarni 2017-04-27 15:22:23 UTC
Environment: 
CFME version downstream 58z 

Actions Performed: 
Accessed VM console vSphere providers 

Result: 
Connected to VMRC Console, did not see any errors or abnormal behavior


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