Bug 1471158
Summary: | HTML5 Console Does Not Display From SSUI VMWare | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | myoder | ||||||||||
Component: | UI - Service | Assignee: | Allen W <awight> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Kedar Kulkarni <kkulkarn> | ||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 5.7.0 | CC: | abellott, awight, cpelland, dajohnso, dhalasz, gtanzill, hkataria, jhardy, kkulkarn, lavenel, mpovolny, myoder, niroy, obarenbo, rspagnol, simaishi, smallamp | ||||||||||
Target Milestone: | GA | Keywords: | TestOnly | ||||||||||
Target Release: | 5.10.0 | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | ssui:html5:console | ||||||||||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | |||||||||||||
: | 1505545 1505546 1510131 (view as bug list) | Environment: | |||||||||||
Last Closed: | 2019-02-11 13:55:49 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | Bug | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | VMware | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | 1442884 | ||||||||||||
Bug Blocks: | 1505545, 1505546, 1510131 | ||||||||||||
Attachments: |
|
Description
myoder
2017-07-14 14:26:04 UTC
Created attachment 1298380 [details]
ssui
Created attachment 1298381 [details]
console error
Could you please provide the eve.log and the console.log? You can see how to get the console.log here: https://developers.google.com/web/tools/chrome-devtools/console/#working_with_the_console_history Chris H - Please backport to Euwe ASAP Backport PR for 5.7 release , https://github.com/ManageIQ/manageiq-ui-service/pull/847 Does not seems to be fixed. Still getting same error "Server disconnected (code: 1006)" with HTML5 Remote console for vSphere6.5. Console log from my browser: util.js:218 Msg: noVNC ready: native WebSockets, canvas rendering Util.Warn @ util.js:218 util.js:218 Util.Warn @ util.js:218 VM532:161 WebSocket connection to 'wss://10.8.198.2/ws/console/72902d67ef63c031293d11cfcca133e9' failed: Connection closed before receiving a handshake response WrappedWebSocket @ VM532:161 util.js:218 WebSocket on-error event Util.Warn @ util.js:218 util.js:218 WebSocket on-close event Util.Warn @ util.js:218 util.js:220 Msg: Server disconnected (code: 1006) Util.Error @ util.js:220 util.js:218 Util.Warn @ util.js:218 The message you pasted seems to imply that it is not getting a response from the server (which doesn't have anything to do with the code). Do you have an appliance we can test on? Thank you. Looking at the appliance, there is no IP address associated with that VM https://10.8.198.2/api/services/3/vms/26?expand=software&attributes=ipaddresses,lans,storage My thought is that it has something to do with the lack of IP address. Hey Chris, I created another VM which does have IP address but still error exists. please check this URL: https://10.8.198.2/api/services/4/vms/29? expand=software&attributes=ipaddresses,lans,storage Hope it makes sense. Thanks,KK. I see that it has an IP address, however I cannot connect to that machine manually (without MIQ). Both the error and the fact that I cannot connect to VNC on the machine you created points to the issue is not with MIQ. Hey Chris, Does it have something to do with https://github.com/ManageIQ/manageiq/issues/13798 ? Because neither OPS UI neither Service UI is opening VNC Console to vSphere65 VMs. Also if you check VNC console for vSphere65 on the CFME 5.8.2, it is disabled. But it is not disabled on CFME 5.7.4 Created attachment 1326657 [details]
HTML5 VNC Console not supported for vSphere65
OPS UI also throws similar error
Created attachment 1326658 [details]
VNC VM Console Console is disabled in 5.8.2
Possibly. That said, this issue would appear to be for the "Appliance" component...not the SUI Chris/Gregg T/Dave - I am modifying the priority to High as there is an associated customer case. And I am changing the status to assigned.. The BZ Title seems to be misleading here. Here's the thing: For VMware 6.5, in OPS UI, if you try to open the VM Console, you will find that "VM Console" button is disabled, and if you hover over the button you should see a message that "VMware ESXi 6.5 does not support VNC Console" For VMware 6.5, in the SSUI, if you open the VM console for a VM that is provisioned on VMware 6.5, then it is definitely going to fail, if I am correct, the reason is again "VMware ESXi 6.5 does not support VNC Console" But the real problem is, this VM console button in SSUI, should be disabled as it is in the OPS UI, or it should be able to default to "WebMKS" console which is supported in VMware 6.5. That can solve this bug. Please let me know if it makes sense. Thanks, KK. Chiming in here, SUI receives a few params from the api that read `{supports_console?:true, supports_launch_cockpit?:true }` In this line: https://github.com/manageiq/manageiq-ui-service/blob/39345ca822ec20cf57df4b607874ecac01bd118d/client/app/states/services/details/details.html#L237 the SUI then shows or hides the console button based on the above mentioned flag. The OpsUI takes in account if `vmware? && !supported_vendor_api` to either show or hide the button (here: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/helpers/application_helper/button/vm_vnc_console.rb#L10) This logic does not belong in the SUI, one would expect the API would take make these evaluations and return `supports_console?:false` when applicable. I propose this bz be reassigned 👍🏿 Hi Gregg, Can someone on your team/API take a look at this BZ? Thanks, Chris The problem still persists in SSUI for VMware 6.5. In OPS UI HTML5 VNC VM Console is disabled, I feel same should be done for SSUI, or default it to WebMKS in SSUI. CFME 5.9.0.2 last checked Just validated that the API does support supports_console? and supports_launch_cockpit? through a decorator, ie: GET /api/services?expand=resources,vms&decorators=vms.supports_console? Perhaps there should be an attribute that can be passed back to determine the types of consoles supported, to determine the type of console that is requested? Hello, I recently verified with 5.9.0.4 and I can still see the issue "Server disconnected (code: 1006)" Please take a look at fix again. This fix was just merged into master (https://github.com/ManageIQ/manageiq-ui-service/pull/1165), so it is likely not in your build yet. In 5.9.0.5, I do not see this bug getting resolved. I can still access the console and it ends up in error state. Inspecting the console button in DOM, seems like the API changes for support_vnc_console? decorator are not incorporated. This PR: https://github.com/ManageIQ/manageiq-ui-service/pull/1195/files seems to be the one that will resolve this issue, but it is not merged. We merged in the fix, it will take a day or so to make it into the builds. Removed Fixed in Version. It is not fixed. Needs a change from the API team. Waiting on that. PR for Euwe: https://github.com/ManageIQ/manageiq-ui-service/pull/1283 Cannot be merged until this is backported: https://github.com/ManageIQ/manageiq/pull/16519 posting this as the work is all merged in here (for the record): https://github.com/ManageIQ/manageiq-ui-service/pull/1280 *** Bug 1522877 has been marked as a duplicate of this bug. *** In 5.10.0.2 I noticed that VM Console was enabled in SSUI if Configuration in OPS UI has Console Access set to VNC. (For vSphere 5.5, vSphere6) Also, VM Console button for vSphere6.5 was disabled with appropriate error msg in a tooltip when you hover over. If Configuration in OPS UI is set to something other than VNC(such as WebMKS or VMRC) then VM Console button is hidden or greyed out. VM Console in Service UI for 5.10.0.2 has following issue: https://bugzilla.redhat.com/show_bug.cgi?id=1597393 |