cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

VM Console Token Expired - VMware maximum number of connected consoles: 40

Open vikyoto opened this issue 1 year ago • 2 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
VMWARE
CLOUDSTACK VERSION
4.18
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

"View console" does not work after reaching the maximum number of connections. image1

When trying to access the VMware "Web Console", I receive the following message: imagem_2024-08-19_101813848

VM Vmware Options: image

STEPS TO REPRODUCE
Open and close the VM console 40 times and the error will appear. The error will be resolved if you migrate the host VM.

EXPECTED RESULTS
When closing the console tab, the session must be interrupted to avoid the accumulation of these connections.
ACTUAL RESULTS

vikyoto avatar Aug 19 '24 13:08 vikyoto

@vikyoto , I am not sure this can be implemented as you describe. how do you think ACS would know that a client closes their console? Opening is an action in ACS, but closing isn't. An alternative is to create an explicit close console API, but I am not sure what parameters to give it.

DaanHoogland avatar Aug 19 '24 13:08 DaanHoogland

@vikyoto which version of vmware do you use ?

weizhouapache avatar Aug 20 '24 13:08 weizhouapache

Hello guys, sorry for the delay. I ended up solving it just by changing the value of the following global variables:

"Console session cleanup interval" "Console session cleanup retention hours"

Therefore, there is no accumulation of sessions

vikyoto avatar Sep 11 '24 13:09 vikyoto

Hello guys, sorry for the delay. I ended up solving it just by changing the value of the following global variables:

"Console session cleanup interval" "Console session cleanup retention hours"

Therefore, there is no accumulation of sessions

thanks for update @vikyoto

Although I have no idea how the global settings fix the issue, as they are just used to remove some records from the database.

weizhouapache avatar Sep 12 '24 11:09 weizhouapache