Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1245931

Summary: Arbitrary default quota on new disk and existing disks
Product: Red Hat Enterprise Virtualization Manager Reporter: Dudi Maroshi <dmaroshi>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: amureini, dfediuck, ecohen, gklein, lpeer, lsurette, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-11 11:39:53 UTC 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:

Description Dudi Maroshi 2015-07-23 07:05:34 UTC
Description of problem:
When quota is enabled in data center.
We need to assign a default quota to all existing disks.
We need to assign a default quota to all new disks.
Currently the default is an arbitrary quota selection.


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

Steps to Reproduce:
1. Disable quota on data center
2. Create vm1 with disk vm1_disk1
3  Create vm2 with disk vm2_disk1
4. Enable quota on data center
5. Create quota named A-q
6. Create quota named b-q
7. Create quota named --q
8. Open disk vm2_disk1 for edit
9. Notice the selected quota for vm2_disk1
10. Create disk vm1_disk2 on vm1
11. Notice the default selected quota on vm1_disk2
12. Create quota named Z--
13. Create disk vm1_disk3 on vm1
14. Notice the default selected quota on vm1_disk3


Actual results:
Default quota for new disk is not consistent.

Expected results:
For new disks with quota.
  Empty mandatory quota field, or defined default.
For existing disks (prior to quota enablement)
  Assign a defined default quota to all existing disks.
  This is dangerous, if enabling/disabling quota few times. What will happen to existing disks' quota. Need a defined policy.

Comment 1 Doron Fediuck 2015-07-28 10:48:28 UTC
The concept of default quota was considered in the past and ruled out.
We should be capable of dealing with missing assignments in a gracious way
without the need to assign something where it is not needed.