Bug 1596178 - inconsistent display between automatic and manual Pool Type
Summary: inconsistent display between automatic and manual Pool Type
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
medium
medium
Target Milestone: ovirt-4.4.0
: ---
Assignee: biakymet
QA Contact: Ivana Saranova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-28 11:44 UTC by Olimp Bockowski
Modified: 2023-10-06 17:50 UTC (History)
9 users (show)

Fixed In Version: ovirt-web-ui-1.6.1-1
Doc Type: Bug Fix
Doc Text:
Previously, the VM Portal was inconsistent in how it displayed pool cards. After a user took all of the virtual machines from them, the VM Portal removed automatic pool cards but continued displaying manual pool cards. The current release fixes this issue: VM Portal always displays a pool card, and the card has a new label that shows how many virtual machines the user can take from the pool.
Clone Of:
Environment:
Last Closed: 2020-08-04 13:16:11 UTC
oVirt Team: UX
Target Upstream Version:
Embargoed:
isaranov: testing_plan_complete+


Attachments (Terms of Use)
inconsistentDisplay (819.46 KB, video/mp4)
2018-06-28 11:44 UTC, Olimp Bockowski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:16:36 UTC

Description Olimp Bockowski 2018-06-28 11:44:55 UTC
Created attachment 1455250 [details]
inconsistentDisplay

Description of problem:

If someone reaches the maximum number of VMs he/she can take from the pool, he/she should not see the pools, only the VMs.
That's the case for automatic VM Pool Type, in a case of manual type, it doesn't work as expected. 


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

How reproducible:

it looks like 100%

Steps to Reproduce:
 
With a manual type of pool, a pool is created (named for example Pool-Win7-manual-??) composed of the VMs and a maximum attribution of 2 VM per user. When VMs are running, there are no issues. However, once the VM Pool-Win7-manual-01 is stopped, there is the following situation :
- Pool-Win7-manual-01 stopped but still visible, because it's still attributed to the user (principle of a manual pool) 
- Pool-Win7-manual-02 is running, therefore visible 
- Pool-Win7-manual-?? which reappears (and which remains visible if we refresh the page), while we already reached the maximum number of VM that the user can take 

Actual results:
Not consistent behaviour

Expected results:
It behaves consistently.

Additional info:
recorded video in an attachment

Comment 1 Michal Skrivanek 2018-06-29 14:11:12 UTC
opened https://github.com/oVirt/ovirt-web-ui/issues/655 upstream

Comment 2 Greg Sheremeta 2018-08-01 01:22:03 UTC
target? (wondering for web-ui)

Comment 3 Greg Sheremeta 2018-08-24 21:00:19 UTC
Actually, this behavior may change in redesign -- we may want to always show a pool card for both manual and automatic. Currently under discussion. I'll update this BZ when we have a decision.

Comment 8 Daniel Gur 2019-08-28 13:11:25 UTC
sync2jira

Comment 9 Daniel Gur 2019-08-28 13:15:37 UTC
sync2jira

Comment 10 Ivana Saranova 2020-01-27 16:02:27 UTC
Steps:
With a manual type of pool, a pool is created (named for example Pool-Win7-manual-??) composed of the VMs and a maximum attribution of 2 VM per user. When VMs are running, there are no issues. However, once the VM Pool-Win7-manual-01 is stopped, there is the following situation :
- Pool-Win7-manual-01 stopped but still visible, because it's still attributed to the user (principle of a manual pool) 
- Pool-Win7-manual-02 is running, therefore visible 
- Pool-Win7-manual-?? which reappears (and which remains visible if we refresh the page), while we already reached the maximum number of VM that the user can take 

Then tested the same steps with automatic pools with the difference of expecting the allocated VMs disappearing after shutting them down and VM pool appearing, because VMs got deallocated.

Results:
Manual type pool works as intended. VMs do not disappear after shutdown and VM pool does not appear after reaching maximum of user allocated VMs or maximum VMs in the VM pool.

Automatic type pool almost works as intended. After shutting down one of the allocated VMs, the VM stays in the dashboard with status Off and the VM pool appears. VM does not disappear after the webui refreshing, only after force refresh with F5. If you click on the run button on the VM pool, it just starts the off VM, so I guess the functionality is not broken and it's only a problem with updating the dashboard. 

Bohdan, I'm not sure, if this is relevant for this bug or if I should open a new one and verify this one, because the manual pools work.

Tested in:
ovirt-engine-4.4.0-0.17.master.el7.noarch
ovirt-web-ui-1.6.0-2.el7ev.noarch

Comment 12 Lucie Leistnerova 2020-02-05 13:22:20 UTC
The changes (redesign pools) seems not to be in the build for QE. Please move to ON_QA when we will get the proper build.
Also please fill in 'Fixed in version' that will help with verification.

Comment 18 Ivana Saranova 2020-04-21 00:08:53 UTC
Steps:
With a manual type of pool, a pool is created (named for example Pool-Win7-manual-??) composed of the VMs and a maximum attribution of 2 VM per user. When VMs are running, there are no issues. However, once the VM Pool-Win7-manual-01 is stopped, there is the following situation :
- Pool-Win7-manual-01 stopped but still visible, because it's still attributed to the user (principle of a manual pool) 
- Pool-Win7-manual-02 is running, therefore visible 
- Pool-Win7-manual-?? which reappears (and which remains visible if we refresh the page), while we already reached the maximum number of VM that the user can take 

Then tested the same steps with automatic pools with the difference of expecting the allocated VMs disappearing after shutting them down and VM pool appearing, because VMs got deallocated.

Results:
Manual type pool works as intended. VMs do not disappear after shutdown and VM pool does not appear after reaching maximum of user allocated VMs or maximum VMs in the VM pool.

Automatic type pool works as intended as well. Shutting down allocated VM causes it to disappear and in case the maximum limit of allocated VMs per user is not maxed anymore the VM pool appears again. VM pool also disappears in case the maximum number of VMs in the pool itself is exceeded.

Verified in:
ovirt-engine-4.4.0-0.33.master.el8ev.noarch
ovirt-web-ui-1.6.2-0.20200415.gitbc758a4.el8ev.noarch

Comment 27 errata-xmlrpc 2020-08-04 13:16:11 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 (Important: RHV Manager (ovirt-engine) 4.4 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:3247


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