Bug #25280
openVirtual Machines tab: wrong page count
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1628230
Description of problem:
In Infrastructure -> <RHEV_CR> -> Virtual Machines, when there are more than 2 pages of VMs, the number of pages is wrong: On the n-th page, it always shows n+1 total pages. So when you switch to the tab, it says "1 of 2", when you go to page 2, it says "2 of 3" etc.
Version-Release number of selected component (if applicable):
Happens on Sat 6.4 snap 21 and Sat 6.3.1 => Not a regression
How reproducible:
Deterministic
Steps to Reproduce:
1. Have a RHEV CR with enough VMs so they are listed on more than 2 pages
2. Go to the CR -> Virtual Machines tab, notice the total number of pages ("1 of 2")
3. Go to page 2, notice the total number of pages ("2 of 3")
Actual results:
Total number of pages changed, that doesn't make sense
Expected results:
The actual total number of pages should be showed on all pages
Additional info:
Tested with both APIv3 and APIv4