Description of problem: In a big 500+ VMs environment when attempt to use virt-vmconsle to connect to a VM's virtual serial console (using --vm-name) it either succeeds after a long time or it times out. The bottleneck seems to be from this stored procedure: getallfromvmsforuserandactiongroup() Version-Release number of selected component (if applicable): rhvm-4.3.7.2-0.1.el7.noarch ovirt-vmconsole-1.0.7-3.el7ev.noarch Steps to Reproduce: 1. Create a big RHV environment with 500+ VMs 2. Connect to a VM's virtual serial console. Actual results: Either times out or connects after 30mins. Expected results: Should connect fast.
I cannot work on this bug in the near/mid term
Spoke with Arik we'll provide him some time on this size environment for 4.4.2 when possible.
version: 1.0.7
Please supply validation steps and required env details if / where relevant.
The validation steps are as Federico wrote above: 1. Run 500+ VMs 2. Connect to a VM's virtual serial console. The load on the database should reduce (compared to the 4.4.1/4.3)
Tested and verify on Red-01 on Cluster > L0_Group_1 with 750 VMs verify the BZ is reproducible on version : rhv-release-4.4.1-12-001.noarch vdsm-4.40.22-1.el8ev.x86_64 The API call that was used during the vmconsole command ( slow traces ) : /ovirt-engine/services/vmconsole-proxy the API call took : 37,957.0 ms tested again on the same environment with version : rhv-release-4.4.2-3-001.noarch vdsm-4.40.25-1.el8ev.x86_64 The API call that was used during the vmconsole command : /ovirt-engine/services/vmconsole-proxy the API call took : 1,605.7 ms from the end-user the connect using vm-console takes around 3-5 sec on version > 4.4.2-3
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Virtualization security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:3807