Bug 1723351

Summary: Webmks and VNC consoles do NOT work
Product: Red Hat CloudForms Management Engine Reporter: Antonin Pagac <apagac>
Component: UI - OPSAssignee: Dávid Halász <dhalasz>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: bmidwood, dmetzger, hkataria, izapolsk, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: Regression
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-13 14:57:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1668437    

Description Antonin Pagac 2019-06-24 10:55:34 UTC
Description of problem:
Webmks and VNC consoles do NOT work. Browser doesn't matter.

Webmks error:
"
WebSocket connection to 'wss://<IP>/ws/console/6502a18…' failed: Error during WebSocket handshake: Unexpected response code: 500
WMKS.WebSocket @ wmks.min.js:1
"

VNC error:
"
WebSocket connection to 'wss://<IP>/ws/console/9eaa1ae…' failed: Error during WebSocket handshake: Unexpected response code: 500
open @ vnc-d6cfe1f50ccd20ca…d89c584b4e9f.js:167

Msg: Server disconnected (code: 1006)
Util.Error @ vnc-d6cfe1f50ccd20ca…d89c584b4e9f.js:102

VNC undefined
onUpdateState @ vnc-d6cfe1f50ccd20ca…d89c584b4e9f.js:369
"

VMRC console works fine.

Version-Release number of selected component (if applicable):
5.11.0.10

How reproducible:
Always

Steps to Reproduce:
1. Have relevant provider added
   - for VNC: vsphere 6.0 or rhv
   - for webmks: a vsphere provider
2. Create VM on the provider
3. Via OPS UI, try to Access -> VM Console from vm details page

Actual results:
Console does not work; errors in browser console

Expected results:
Console opens and connects

Additional info:
Works fine in 5.10

Comment 3 Dávid Halász 2019-07-01 07:03:55 UTC
https://github.com/ManageIQ/manageiq/pull/18919

Comment 4 CFME Bot 2019-07-02 20:26:19 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/9d336254a7c44aa957e41137c22f6dd28a37b28b
commit 9d336254a7c44aa957e41137c22f6dd28a37b28b
Author:     Dávid Halász <dhalasz>
AuthorDate: Thu Jun 27 03:45:40 2019 -0400
Commit:     Dávid Halász <dhalasz>
CommitDate: Thu Jun 27 03:45:40 2019 -0400

    Explicitly require the websocket driver in the remote console server

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1723351

 lib/remote_console/rack_server.rb | 1 +
 1 file changed, 1 insertion(+)

Comment 5 Antonin Pagac 2019-07-10 09:07:28 UTC
Verified with 5.11.0.13.