Bug 911241

Summary: [Admin Portal] Quota can be created on a DC and assigned to an object in another DC
Product: Red Hat Enterprise Virtualization Manager Reporter: Jiri Belka <jbelka>
Component: ovirt-engine-webadmin-portalAssignee: Noam Slomianko <nslomian>
Status: CLOSED CURRENTRELEASE QA Contact: Ondra Machacek <omachace>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, dfediuck, dyasny, ecohen, eedri, gchaplik, iheim, lhornyak, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: sf9 Doc Type: Bug Fix
Doc Text:
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: 917401    
Attachments:
Description Flags
engine.log
none
quota none

Description Jiri Belka 2013-02-14 15:41:07 UTC
Created attachment 697260 [details]
engine.log

Description of problem:
Quota can be created on a DC which has quota disabled. This looks like there is not enough checking what is currently selected DC when opening 'Add' dialog on DC's details subpane -> Quota subtab.

Such created quota is of course not visible on this DC which has quota disabled, and thus it is not possible to delete it without temporarily activating quota on such DC.

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

How reproducible:
100%

Steps to Reproduce:
1. Have 2 DCs, one with quota disabled (default), other one with audit quota
2. Select the DC with audit quota (in the "tree" you are on 'System' top level)
3. in DC's subpane, select Quota subtab, then click Add and select the DC without quota enabled (in my case I discovered this because disabled DC was first in the list)
  
Actual results:
1. After adding this quota, the quota appears in the list in Quota subtab for enabled DC even it was created on other one. While changing tabs, the quota disappears from the list. While selecting the DC with disabled quota, you cannot see the quota as there's no Quota subtab.
2. While changing position in the tree to the DC with disabled quota, there's Quota main tab with the created quota


Expected results:
1. Do not offer quota creation on DCs without quota enabled. Make strict checking which DC is selected and change the list of DCs in Add quota dialog (as this action is executed from specifics DC's Quota subtab)
2. Show Quota main tab only for DCs (in tree -> a DC is selected) which have quota enabled.

Additional info:

Comment 1 Jiri Belka 2013-02-14 15:46:17 UTC
Created attachment 697262 [details]
quota

Default DC selected, 31 DC in the list. In the bottom there's "forgotten" quota created on 31 DC which has quota disabled (although I got this only once).

Comment 2 Noam Slomianko 2013-03-24 14:47:34 UTC
Cannot change the ovirt gerrit tracker number, the new addition is in:
http://gerrit.ovirt.org/#/c/13305

Comment 4 Itamar Heim 2013-06-11 09:33:18 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 09:33:47 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:49:38 UTC
3.2 has been released