Bug 1020201

Summary: Quota isn't enforced in run VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Gilad Chaplik <gchaplik>
Component: ovirt-engineAssignee: Gilad Chaplik <gchaplik>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, dfediuck, iheim, lpeer, mavital, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: is23 Doc Type: Bug Fix
Doc Text:
When creating a VM/Disk, and assigning a quota to that entity, the user performing the action ought to be a consumer of that quota (or sys/DC-admin). When a user runs a VM he will consume from the quota assigned to the entity, even if he isn't a consumer of that quota.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1032811    

Description Gilad Chaplik 2013-10-17 09:29:04 UTC
reported in oVirt's users list: http://www.mail-archive.com/users@ovirt.org/msg10659.html

Description of problem:
A user who isn't the quota consumer of a certain quota is able to run a VM which is attach to that quota.

How reproducible:
100%

Wasn't so reproducible since vm's quota drop down was populated by quotas which the user is a consumer of, but in create VM from template, the UI sets the quota with the template quota regardless of permissions.


Steps to Reproduce:
1. create Quota A (and assign it to User A), B (for admin).
2. admin creates a Template and assign it to quota B.
3. User A create a VM from Template and can select quota B.
4. User A runs VM.

Actual results:
The VM runs.

Expected results:
The VM should fail, because the User isn't a quota consumer of the VM's quota

Comment 1 Artyom 2013-11-18 15:03:34 UTC
Verified on is23

Comment 2 Itamar Heim 2014-01-21 22:31:51 UTC
Closing - RHEV 3.3 Released

Comment 3 Itamar Heim 2014-01-21 22:31:53 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:34:29 UTC
Closing - RHEV 3.3 Released