Bug 1822372 - Adding quota to group doesn't propagate to users
Summary: Adding quota to group doesn't propagate to users
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-web-ui
Version: 4.3.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.4.3
: 4.4.3
Assignee: Hilda Stastna
QA Contact: Ivana Saranova
URL:
Whiteboard:
Depends On: 1881958
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-08 20:36 UTC by Robert McSwain
Modified: 2020-11-24 13:09 UTC (History)
9 users (show)

Fixed In Version: rhv-4.4.3-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-24 13:09:21 UTC
oVirt Team: UX
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5179 0 None None None 2020-11-24 13:09:46 UTC
oVirt gerrit 110964 0 master MERGED core: recursive search for quota 2021-02-01 17:36:06 UTC

Description Robert McSwain 2020-04-08 20:36:54 UTC
Description of problem:

I create a quota and enforce it on my DC.  I add the user group under "Consumers". 
I can see the quota listed under my group.
I cannot see the quota listed under a user in that group.
When I try to create a VM as that user, it says it does not have access to that quota.

CREATE_VM failed [Cannot add VM. The user is not a consumer of the Quota assigned to the resource.]

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

Actual results:
Only the group seems to take the quota but not the users

Expected results:
Group quotas are applied recursively to the users in that group

Comment 3 Andrej Krejcir 2020-04-24 11:34:44 UTC
In the VM portal, there is no way to set which quota a VM should consume. The quota is copied from the VM template and the Blank template uses the Default quota.

Comment 6 Robert McSwain 2020-04-24 21:47:37 UTC
Hello,

I followed up with the customer and he confirmed the following:

~~~
I added "TestGroup" as a consumer of the default quota.  It did let "testuser" create a VM when the quota is enforced.

I still do not understand why when I assign "testuser" itself as a consumer of "TestQuota" that it behaves as expected and enforces that quota.  Shouldn't it be broken in both cases if the VM creation is expecting to use the default quota?  Does this mean we have to add each user individually to the quota for this to function?

I'm not sure if multiple problems are at play here.  
~~~

Comment 7 Robert McSwain 2020-05-13 21:25:31 UTC
Any new updates or suggestions for the customer to try at this point?

Comment 10 Andrej Krejcir 2020-06-01 10:13:09 UTC
It looks like a bug in a special case: 
When a user creates a VM from the 'Blank' template using the API (or VM portal), one of the user's quotas is assigned to the VM.

The bug is that only quotas with the user assigned as consumer are considered, groups are ignored.


Creating a VM from 'Blank' template is a special case. When creating a VM from any other template, the VM will have the same quota assigned as the template has.

Another problem with this special case is if the user is a consumer of multiple quotas, then there is no way to specify which quota will be assigned to the VM.

Comment 40 errata-xmlrpc 2020-11-24 13:09:21 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 (Low: 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:5179


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