VM Console Token Expired - VMware maximum number of connected consoles: 40
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.
When trying to access the VMware "Web Console", I receive the following message:
VM Vmware Options:
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 , 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.
@vikyoto which version of vmware do you use ?
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
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.