-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unify the HTML5 canvas-based remote consoles under a single endpoint #5761
Conversation
85a2f9b
to
2fd441b
Compare
@miq-bot add_reviewer @martinpovolny |
6767fe4
to
48e12d3
Compare
@miq-bot add_label pending core |
this is cheap to fix |
Looks good. |
Checked commits skateman/manageiq-ui-classic@e43e9c9~...de80659 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 app/helpers/application_helper/toolbar/cloud/instance_operations_button_group_mixin.rb
app/helpers/application_helper/toolbar/x_vm_center.rb
|
The remote console support is a little messed up, we have separate buttons for:
The visibility and enablement of these buttons is even more complicated, especially for VMs running on VMware. The availability depends on versions and also on an individual setting on each VM which can now be determined by the backend only.
As there's no practical difference between VNC, SPICE and WebMKS consoles (except of the availability of assets), I am joining the three console types into a single HTML5 meta type while following the same analogy on the backend. The user asks for a HTML5-based console and the backend determines which console is the best suitable and provides it. The intention behind this is to have better console support both here and in the SUI.
If the WebMKS support is turned on for a VMware VM, it doesn't mean that the remote console will actually work. If the WebMKS assets aren't available on the appliance, the console won't work. Due to the costly operation of determining what console type is supported, we can't know the console protocol type before requesting it. Therefore, the only way to warn the user is AFTER the console window is opened. I created a hack inspired by this idea that displays a warning message in the console if the assets aren't available.
https://bugzilla.redhat.com/show_bug.cgi?id=1532720