Manageiq: VMware webmks console gets stuck once tab with one of previously open consoles is closed

Created on 23 Sep 2020  路  2Comments  路  Source: ManageIQ/manageiq

  1. Open a webmks console to a virtual machine running on a VMware vCenter hypervisor
  2. A tab with remote console will be opened in your browser
  3. Close the browser tab with the remote console window
  4. Open a webmks console to a different virtual machine running on a VMware vCenter hypervisor

The browser tab with new console will be stuck at:
Screenshot from 2020-09-23 17-13-33

While the remote console server thread will be stuck at

$ strace -p 3003351
strace: Process 3003351 attached
ppoll([{fd=51, events=POLLIN}], 1, NULL, NULL, 8

$ lsof -p 3003270|grep 51u
ruby    3003270 milan   51u     IPv4            8909347       0t0      TCP thinkpad-t490:50488->vmvisor1.gsslab.brq2.redhat.com:https (ESTABLISHED)

Once you open remote console to the VM from step 1, things will become moving again.

cc @skateman

bug

All 2 comments

Looks like the same issue we encounter. I did open an issue on this https://github.com/ManageIQ/manageiq/issues/19753 but was not fixed because we could not find a root cause... (we did implement the console functionality for an older version of miq to work around this issue)

@evertmulder @mzazrivec I might have a crazy workaround that I don't understand for now:

  1. Find the surro-gate gem locally on your setup, in development gem contents surro-gate should be enough.
  2. Run bundle exec rake compile in its folder to rebuild the gem's native extension
  3. Restart the server and try to reproduce the issue

Maybe it's just me, but if I recompile the binary like this, it suddenly starts working as it should be :confused:

EDIT: you might want to remove the compiled binaries as rake warns you about them (bundle exec rake clean)

EDIT2: nevermind, ignore this, found the problem, working on it

Was this page helpful?
0 / 5 - 0 ratings