manageiq icon indicating copy to clipboard operation
manageiq copied to clipboard

Cannot Access VM Console for VMware provider

Open SanthoshRam-03 opened this issue 1 year ago • 22 comments

In the ManageIQ production environment, attempting to access the VM console results in an error where the WebMKS connection gets stuck at "WEBMKS Connecting.".

image

Steps to reproduce:

  1. Navigate to Compute -> Infrastructure -> Virtual Machines -> VMs & Templates.
  2. Select the desired VM.
  3. Click on the "Access" dropdown and choose "VM Console.".
  4. The WebMKS connection interface appears and remains stuck at "WEBMKS Connecting.".

image

Expected Behavior: The VM console should successfully connect to and display the VM interface.

Observed Behavior: The WebMKS interface is stuck at "WEBMKS Connecting" and does not proceed to display the VM console.

Environment Details:

ManageIQ version: Petrosian Provider: VMware VM state: Powered On

SanthoshRam-03 avatar May 31 '24 10:05 SanthoshRam-03

Hi @Fryguy, any updates regarding this issue?

SanthoshRam-03 avatar Jun 03 '24 05:06 SanthoshRam-03

@GilbertCherrie Can you take a look at this one? I know we fixed something regrading vm consoles, but I can't remember if it landed in Petrosian or not.

Fryguy avatar Jun 05 '24 13:06 Fryguy

I tried to replicate this locally but I can't get the console page to load probably due to lacking a real provider. However, given this issue: https://github.com/ManageIQ/manageiq/issues/22954 it seems the page is functional and other users are able to connect to the console.

@Fryguy The issue that was fixed was a sizing issue fixed by this pr: https://github.com/ManageIQ/manageiq-ui-classic/pull/8919 and backported to Morphy, Petrosian and Quinteros.

GilbertCherrie avatar Jun 07 '24 17:06 GilbertCherrie

Hi @GilbertCherrie @Fryguy,

As per the redhat kcs, we have extracted the webmks in the /var/www/miq/public path. after that, we trying to connect the vmware console. but it seems to be connecting

https://access.redhat.com/solutions/3376081

we followed the above doc.

SanthoshRam-03 avatar Jun 11 '24 12:06 SanthoshRam-03

Sounds good, can we close out this issue then?

GilbertCherrie avatar Jun 11 '24 13:06 GilbertCherrie

Hi @GilbertCherrie ,

Actually what santhosh trying to say is, he have configured the webmks package in manageiq like mentioned in the redhat kcs. But however, it is not working for him.

remo233 avatar Jun 13 '24 09:06 remo233

Do you have any logs with errors available that we can read through?

GilbertCherrie avatar Jun 13 '24 14:06 GilbertCherrie

Hi @GilbertCherrie Here are the VMConsole related logs for your reference.

image

SanthoshRam-03 avatar Jun 14 '24 11:06 SanthoshRam-03

@Fryguy I don't think this is a UI issue. There is probably something wrong with the configuration which is causing it to fail to connect. I can't recreate this since I don't have any real provider data to test with but looking at this issue: https://github.com/ManageIQ/manageiq/issues/22954 it looks like the Webmks console loads properly in the UI.

GilbertCherrie avatar Jul 16 '24 17:07 GilbertCherrie

I wonder of something changed with WebMks itself or perhaps VMware. cc @agrare

Fryguy avatar Jul 16 '24 17:07 Fryguy

@SanthoshRam-03 @remo233 what version of vSphere and what version of the HTML Console SDK are you using?

agrare avatar Jul 16 '24 21:07 agrare

@GilbertCherrie have you tested this lately?

Not sure if it is related but when I tried this out I get the following error in my rails server

[----] I, [2024-07-17T12:02:22.626893#107775:f348]  INFO -- : Started GET "/ws/console/61aa428ffd5b940ab2e18325d779f60e" for 127.0.0.1 at 2024-07-17 12:02:22 -0400
[----] F, [2024-07-17T12:02:22.677359#107775:f348] FATAL -- :   
ActionController::RoutingError (No route matches [GET] "/ws/console/61aa428ffd5b940ab2e18325d779f60e"):
  

agrare avatar Jul 17 '24 16:07 agrare

@agrare No I don't have any actual provider to test this with. I just saw a similar issue opened around the same time as this where they were able to access the console but it was just not scaling properly in the browser

GilbertCherrie avatar Jul 17 '24 16:07 GilbertCherrie

@GilbertCherrie well that is easy to fix :D I sent you one

agrare avatar Jul 17 '24 16:07 agrare

I just tested this on an appliance and a vSphere version 7.0.3.01700 and it works fine.

agrare avatar Jul 17 '24 17:07 agrare

Adam, glad to hear from you.

Could you please share the steps to resolve this ?

On Wed, Jul 17, 2024, 10:44 PM Adam Grare @.***> wrote:

I just tested this on an appliance and a vSphere version 7.0.3.01700 and it works fine.

— Reply to this email directly, view it on GitHub https://github.com/ManageIQ/manageiq/issues/23053#issuecomment-2233802880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZO3IVUIPACJ6WFXXAMMRWLZM2RALAVCNFSM6AAAAABISRRYOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTHAYDEOBYGA . You are receiving this because you were mentioned.Message ID: @.***>

remo233 avatar Jul 17 '24 17:07 remo233

@remo233 I didn't do anything to fix it, it was working normally. The routing error was only when running in development mode, I assume you're using an appliance or podified @remo233 ? Can you please post your vsphere and html console sdk versions?

agrare avatar Jul 17 '24 17:07 agrare

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar Nov 01 '24 01:11 miq-bot

Hi Folks, Im getting the similar problem after apply patch in my vCenter from Version: 7.0.3.02000 Build number: 24026615 to Version: 7.0.3.02000 Build number: 24322018

After apply the patch, the webConsole does not show error in log or in Browser, stay in"infinite loading" wait_for_task .

Image

ccesario avatar Jan 21 '25 12:01 ccesario

Hi Folks, Im getting the similar problem after apply patch in my vCenter from Version: 7.0.3.02000 Build number: 24026615 to Version: 7.0.3.02000 Build number: 24322018

After apply the patch, the webConsole does not show error in log or in Browser, stay in"infinite loading" wait_for_task .

Image

Hi folks, any tip about this ?

ccesario avatar Feb 18 '25 14:02 ccesario

Hey @ccesario I'd check your evm.log to see if there is any error while running the remote console task. It looks like it either never started for some reason or errored out really early and that's why wait_for_task keeps retrying

agrare avatar Feb 18 '25 16:02 agrare

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

miq-bot avatar May 30 '25 15:05 miq-bot