Bug 1547251

Summary: When opening a web console to a VM via WebMKS the connection hangs on some VMs
Product: Red Hat CloudForms Management Engine Reporter: Ryan Spagnola <rspagnol>
Component: UI - OPSAssignee: Brian McLaughlin <bmclaugh>
Status: CLOSED CANTFIX QA Contact: Kedar Kulkarni <kkulkarn>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: agrare, bascar, bmclaugh, cmatthew, cpelland, dmetzger, gblomqui, hkataria, jocarter, jprause, lavenel, mfeifer, mpovolny, ngupta, obarenbo, rspagnol, smallamp
Target Milestone: GAKeywords: Reopened
Target Release: 5.8.5Flags: kkulkarn: automate_bug-
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-19 21:51:06 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: 1572700, 1592506    

Description Ryan Spagnola 2018-02-20 20:52:17 UTC
Description of problem:
When opening a web console to a VM via WebMKS the connection hangs on some VMs.  This occurs on some VMs and not others on the same hypervisor.

- We have compared VMware hardware versions and settings and cannot find a common denominator.  - We have removed a VM from CFME and allowed it to be rediscovered with no change.
- We have verified the consoles work with both VMware vCenter and ManageIQ for the same VMs.

The connection from CFME loads the new browser tab and list WebMKS and Connecting in the lower left corner but fail to ever make the connection.

Version-Release number of selected component (if applicable):
5.8.2.3
vSphere 6.5 with multiple versions of ESXi including 6 and 6.5

How reproducible:
Varies 

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
* tested with Firefox on a RHEL workstation and Chrome/Safari from Mac OSX
* customer has already installed the hotfix from https://bugzilla.redhat.com/show_bug.cgi?id=1523404
and has informed that the symptoms are different now.

Comment 3 Kedar Kulkarni 2018-02-22 18:00:36 UTC
By using the solution from following article:
https://communities.vmware.com/thread/546184

I was able to get the WebMKS Console for the VMs which had issues (keep saying connecting indefinitely) were resolved. 

To access the vmx file, you can ssh to ESXi host and do: 
vi /vmfs/volumes/datastore/virtual_machine_directory/virtual_machine_name.vmx

and change the 
RemoteDisplay.vnc.enabled = "true" 

to 

RemoteDisplay.vnc.enabled = "false" 

and save the file. Note that VM needs to be powered off before you can edit the file. Thereafter WebMKS and HTML5 console should work.

Comment 8 Marianne Feifer 2018-04-17 20:58:27 UTC
Hey, Brian. This is a blocker for this release.  Build next week.  What's up?

Comment 9 Marianne Feifer 2018-04-17 20:58:44 UTC
Hey, Brian. This is a blocker for this release.  Build next week.  What's up?

Comment 10 Brian McLaughlin 2018-04-18 12:30:24 UTC
Well, I've successfully reconfigured a VM for WebMKS when attempting a WebMKS console connection to it.  Unfortunately, thus far those changes only take effect after restarting the VM.  Research is continuing.

Comment 11 Brian McLaughlin 2018-04-26 15:34:33 UTC
Comment 3 above describes the current steps to configure individual VMs for WebMKS console access.  That along with our current documentation on configuring our appliances for WebMKS consoles [1] should resolve the connection issues noted in the BZ description.

I'm currently researching/working on a way to automate that configuration when connecting to a WebMKS console (seems like an RFE), but am not confident it is possible without requiring the VM to be rebooted.

[1] https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html/managing_infrastructure_and_inventory/sect_virtual_machines#configuring-the-webmks-support