Bug 1597649 - VM Portal - all VMs from VM Pool + VM Pool itself are displayed for a brand new VM Pool
Summary: VM Portal - all VMs from VM Pool + VM Pool itself are displayed for a brand n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-web-ui
Version: 4.2.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.2.6
: ---
Assignee: Greg Sheremeta
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-03 11:00 UTC by Olimp Bockowski
Modified: 2023-10-06 17:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, all virtual machines in a pool were returned to the VM Portal when only the virtual machines that were checked out should have been returned. In this release, only the virtual machines that were checked out are returned to the VM Portal.
Clone Of:
Environment:
Last Closed: 2018-09-04 13:47:15 UTC
oVirt Team: UX
Target Upstream Version:
Embargoed:
isaranov: testing_plan_complete+


Attachments (Terms of Use)
poolsIcons (81.98 KB, image/png)
2018-07-03 11:01 UTC, Olimp Bockowski
no flags Details
VMsIcons (67.69 KB, image/png)
2018-07-03 11:02 UTC, Olimp Bockowski
no flags Details
webConsoleBadRequest (19.84 KB, text/plain)
2018-07-03 12:46 UTC, Olimp Bockowski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1609147 0 high CLOSED [REST API] all VMs in VM Pool are returned to a pool user regardless of actual VM ownership 2021-12-10 17:00:54 UTC
Red Hat Product Errata RHBA-2018:2641 0 None None None 2018-09-04 13:47:23 UTC
oVirt gerrit 93753 0 'None' MERGED core: filter unattached vms from pools for vm portal 2021-02-15 11:23:23 UTC
oVirt gerrit 93785 0 'None' MERGED core: filter unattached vms from pools for vm portal 2021-02-15 11:23:23 UTC

Internal Links: 1609147

Description Olimp Bockowski 2018-07-03 11:00:46 UTC
Description of problem:

There are visible icons for all VMs' from VM Pool + VM Pool itself for a brand new VM Pool, type automatic without pre-started VMs

According to our internal communication it is confirmed that in ovirt-web-ui it should work in following way:
- have a pool called myVmPool with 2 VMs none of them started and you are allowed to assign 2 VMs from this pool to yourself -> you will see only the pool (e.g. myVmPool).
- start one -> you will see one VM (myVmPool-1) and the pool (myVmPool).
- start the second one -> you will see only the two VMs (myVmPool-1, myVmPool-2)

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

4.2.3.5-0.1.el7
RHEL 7.5, 
google-chrome-stable-67.0.3396.79-1.x86_64
firefox-52.8.0-1.el7_5.x86_64

How reproducible:
50% - 1 RHV env out of 2 tested

Steps to Reproduce:

1. setup a new user with role UserRole
2. as the admin@internal create VM Pool with Number of VMs: 2, Maximum number of VMs per user: 1, default type (automatic)
3. log as the new user to User Portal and see all VMs + Pool itself

Actual results:
Not expected behaviour

Expected results:
It is consistent

Additional info:
maybe having many VMs leads to this problem? to see all VMs + Pools I have to scroll quite long and it refreshes everytime
2x screnshots

Comment 1 Olimp Bockowski 2018-07-03 11:01:39 UTC
Created attachment 1456200 [details]
poolsIcons

Comment 2 Olimp Bockowski 2018-07-03 11:02:19 UTC
Created attachment 1456201 [details]
VMsIcons

Comment 3 Olimp Bockowski 2018-07-03 12:46:46 UTC
Created attachment 1456234 [details]
webConsoleBadRequest

Comment 4 Olimp Bockowski 2018-07-03 12:47:49 UTC
looks like an icon is dummy. Clicking it gives Bad Request like:

jquery.js:9566 POST https://sbr-virt-rhv-nested/ovirt-engine/api/vms/2b8ceb43-ccae-43e2-8833-636e8e673bed/start 400 (Bad Request)

(in attachment all details)

Comment 5 Michal Skrivanek 2018-08-16 11:32:13 UTC
might improve in ovirt-web-ui-1.4

Comment 6 Michal Skrivanek 2018-08-22 12:14:07 UTC
should be fixed by bug 1609147. Can you test that?

Comment 8 Michal Skrivanek 2018-08-24 12:47:31 UTC
there were also general fixes in display of VMs along the way, so it's hard to say. Probably not worth bisecting

The refresh and reset of view was also fixed along the way. There are further improvements in 4.2.6(e.g. that bug 1609147 for the case where you see other-than-yours VMs in the pool)

Comment 11 Lucie Leistnerova 2018-08-29 09:20:22 UTC
There is only pool icon for new pool in VM portal. When user exceed number of allowed running VMs, pool icon disappears. When there is no VM free, error message is shown.
When user stops VM, icon disappears and pool icon is back.

verified in ovirt-engine-4.2.6.4-0.1.el7ev.noarch with ovirt-web-ui-1.4.2-1.el7ev.noarch

Comment 13 errata-xmlrpc 2018-09-04 13:47:15 UTC
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, 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/RHBA-2018:2641

Comment 14 Daniel Gur 2019-08-28 13:15:06 UTC
sync2jira

Comment 15 Daniel Gur 2019-08-28 13:20:09 UTC
sync2jira


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