Bug 1839772 - [UI] Incorrect total of VMs ,shows under single host detail view
Summary: [UI] Incorrect total of VMs ,shows under single host detail view
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ovirt-4.4.2
: 4.4.2.1
Assignee: rszwajko
QA Contact: Tzahi Ashkenazi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-25 13:53 UTC by Tzahi Ashkenazi
Modified: 2020-09-18 07:13 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.4.2.1
Clone Of:
Environment:
Last Closed: 2020-09-18 07:13:26 UTC
oVirt Team: UX
Embargoed:
pm-rhel: ovirt-4.4?
sgratch: planning_ack?
sgratch: devel_ack+
pm-rhel: testing_ack+


Attachments (Terms of Use)
total vms count (248.30 KB, image/png)
2020-05-25 13:53 UTC, Tzahi Ashkenazi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 110322 0 master MERGED webadmin: disable paging for vm sub-tab 2020-08-24 08:12:31 UTC

Description Tzahi Ashkenazi 2020-05-25 13:53:44 UTC
Created attachment 1691950 [details]
total vms count

Created attachment 1691950 [details]
total vms count

Description of problem:

while accessing Virtual machine from a single host view , the number of total VMs appears on the right side is wrong (while pressing on the arrows button left or right ) 
total VMs on the selected host is 229 , from the arrows on the right side you can browse to over 1000 VMs which is the total number of VMs per cluster and not per host 

Version-Release number of selected component (if applicable):

rhv-release-4.4.0-32-001.noarch
Red Hat Enterprise Linux release 8.2 (Ootpa)
vdsm-4.40.14-1.el8ev.x86_64


How reproducible:

from the UI go to Compute > Hosts > single host view > Virtual machines 
press the left or right arrows for browsing between the VMs then you notice that the total number is wrong ,instead of total VMs on the host , you can browse on total counting VMs on the cluster 



Steps to Reproduce:

1.Compute > Hosts > single host view > Virtual machines 
2.press the left or right arrows for browsing between the VMs then you notice that the total number is wrong 


Actual results:

Total VMs count on the cluster 


Expected results:

total VMs on single host 

Additional info:

Comment 1 Sharon Gratch 2020-06-09 14:57:52 UTC
Tzahi, This is not reproduced to me on a table size of less than 100 VMs and I don't have an installation with a larger amount of VMs related to one host, so I wonder if the problem is related to pagination or not. Can you please check if it's reproduced when the table size is less than 100 and no pagination is required? 

In addition, can we have an access to the oVirt environment for checking it?

Comment 2 Sharon Gratch 2020-06-09 15:00:52 UTC
Tzahi, This is not reproduced to me on a table size of less than 100 VMs and I don't have an installation with a larger amount of VMs related to one host, so I wonder if the problem is related to pagination or not. Can you please check if it's reproduced when the table size is less than 100 and no pagination is required? 

In addition, can we have an access to the oVirt environment for checking it?

Comment 3 Sharon Gratch 2020-06-09 15:02:37 UTC
(Sorry for the duplicated comments - a networking issue)

Comment 4 Tzahi Ashkenazi 2020-06-30 09:01:04 UTC
hi sharon 
we can do a short session together and that way i can share my screen in order to show you the exact problem on my setup red-03
please let me know when you have like 15 min for a session

Comment 5 Tzahi Ashkenazi 2020-07-07 08:07:45 UTC
i have upload a gif file for better description of the ticket : 


https://drive.google.com/file/d/1bjm6UkguA9C9JtoTz9Oclie_ENfLF-Vq/view?usp=sharing

Comment 6 Sharon Gratch 2020-07-08 15:12:00 UTC
(In reply to Tzahi Ashkenazi from comment #5)
> i have upload a gif file for better description of the ticket : 
> 
> 
> https://drive.google.com/file/d/1bjm6UkguA9C9JtoTz9Oclie_ENfLF-Vq/
> view?usp=sharing

Tzahi, thanks for the video. 
It seems to me that pagination is not working at all. The VMs range numbers on table's upper right side are increased, but the VMs themselves within the table stay the same.

Is it reproduce for you on all table tabs? ("Running on current host"/"Pinned to current host"/"Both")?
Does it reproduce on all hosts even when the table size includes less than 100 assigned VMs? Or in that case pagination is disabled and all looks ok?

Comment 7 Tzahi Ashkenazi 2020-07-13 08:24:52 UTC
Hi sharon 

its also reproduce from  : Compute > Virtual Machines  & from host view > Virtual Machines
i didn't  check if its reproduce on > Pinned to current host 

i have check with host with 75 VMs and its doesn't reproduce , my guess only above 100 VMs

Comment 8 Sharon Gratch 2020-07-14 11:21:08 UTC
(In reply to Tzahi Ashkenazi from comment #7)
> Hi sharon 
> 
> its also reproduce from  : Compute > Virtual Machines  & from host view >
> Virtual Machines
> i didn't  check if its reproduce on > Pinned to current host 
> 
> i have check with host with 75 VMs and its doesn't reproduce , my guess only
> above 100 VMs

Thanks Tzahi.

The issue is reproduced to me on dialog Compute -> Hosts > Virtual Machines sub-tab, exactly as you described: 
When there are more than 100 VMs attached to a host, the page numbers range is displayed correctly for the first page and the next page arrow button is enabled as required. But paging is not working correctly since when start clicking on next pages arrow button then only the page numbers range are increased in multiples of 100, but the pages VMs content is not changed/loaded. So you can click on the next page button forever and nothing is really changed except the increasing of the page numbers range.
Need to check if this issue is related to this fix: https://gerrit.ovirt.org/108346

The issue isn't reproduced to me on dialog Compute > Virtual Machines main table as you mentioned. 


In addition, I see there is another a bit different pagination issue in dialog Compute -> Clusters -> Virtual Machines sub tab: 
In case of more than 99 VMs assigned to a cluster, the next page arrow is enabled although all VMs are displayed within the first page and therefore the next pages stay empty. This is reproduced to me on 4.3.10 as well so it's not a regression and we can handle that on a separate bug if the fix is not related.

Comment 9 Sharon Gratch 2020-07-14 11:23:21 UTC
(In reply to Sharon Gratch from comment #8)
> (In reply to Tzahi Ashkenazi from comment #7)
> > Hi sharon 
> > 
> > its also reproduce from  : Compute > Virtual Machines  & from host view >
> > Virtual Machines
> 
> The issue isn't reproduced to me on dialog Compute > Virtual Machines main
> table as you mentioned. 

@Tzahi, can you please attach a video or describe the exact scenario so that we'll be able to reproduce that on the VMs main table (Compute > Virtual Machines)?

Comment 10 Tzahi Ashkenazi 2020-07-15 07:39:47 UTC
hi Sharon 
regarding > Compute > Virtual Machines main 

this behavior doesn't reproduce on my environment again.
im not sure but maybe its related to the fact that  now i have only single host with 117 VMs out of 4 hosts with around 1000VMs. as when i saw that problem.

but the main bug still happen on :  host view  > virtual machines 

https://drive.google.com/file/d/1bjm6UkguA9C9JtoTz9Oclie_ENfLF-Vq/view?usp=sharing

Comment 11 Sharon Gratch 2020-07-28 18:20:46 UTC
> 
> The issue is reproduced to me on dialog Compute -> Hosts > Virtual Machines
> sub-tab, exactly as you described.
> 
> In addition, I see there is another a bit different pagination issue in
> dialog Compute -> Clusters -> Virtual Machines sub tab.
> 
For fixing this, paging was disabled on both places:
1. Hosts -> <host> -> Virtual Machines
2. Cluster -> <cluster> -> Virtual Machines

> 
> The issue isn't reproduced to me on dialog Compute > Virtual Machines main
> table as you mentioned. 

This issue was not reproduced to both reporter or us so bo fix is required for now (comment 10).

Comment 12 Tzahi Ashkenazi 2020-08-24 08:38:59 UTC
Verifay on  on Red-01 

version 4.4.2 :
       rhv-release-4.4.2-3-001.noarch
       vdsm-4.40.25-1.el8ev.x86_64

from any host : 
       Compute > Hosts > single host view > Virtual machines  
fix now you can only sort by this view between the exact  total of VMS per host for example:150 VMs

Comment 13 Sandro Bonazzola 2020-09-18 07:13:26 UTC
This bugzilla is included in oVirt 4.4.2 release, published on September 17th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.