Bug 1053704

Summary: Faulty storage check when adding a new disk
Product: [Retired] oVirt Reporter: Allon Mureinik <amureini>
Component: ovirt-engine-coreAssignee: Vered Volansky <vered>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: high    
Version: 3.4CC: acanan, acathrow, amureini, ebenahar, eedri, gickowic, gklein, iheim, jkt, kgoldbla, knesenko, lpeer, obasan, Rhev-m-bugs, scohen, vered, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: All   
Whiteboard: storage
Fixed In Version: ovirt-3.4.0-ga Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 960934
: 1053742 (view as bug list) Environment:
Last Closed: 2014-03-31 12:30:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 960934    

Description Allon Mureinik 2014-01-15 16:38:34 UTC
+++ This bug was initially created as a clone of Bug #960934 +++

Description of problem:

For new empty disks, the required space validations should be:
      | File Domain                             | Block Domain
 -----|-----------------------------------------|-------------
 qcow | 1M (header size)                        | 1G
 -----|-----------------------------------------|-------------
 raw  | preallocated: disk capacity (getSize()) | disk capacity
      | thin (sparse): 1M                       | (there is no raw sparse on 
                                                   block domains)

Comment 1 Raz Tamir 2014-02-17 13:49:42 UTC
Allon, please provide step to reproduce

Comment 2 Allon Mureinik 2014-02-18 16:17:32 UTC
the following permutations could(1) be tested:
- file(NFS) vs. block (iSCSI)
- qcow vs. raw
- preallocated vs sparse (only for file domain)

1. Create a storage domain with 10GB free space.
2. Attempt to create a 9GB disk

expected results:
- qcow should succeed in any domain
- raw on block should fail
- raw preallocated should fail
- raw sparse should succeed

[1] Up to QA to decide which parts of this matrix you actually want to test.

Comment 3 Elad 2014-02-24 14:11:03 UTC
I've tested the following scenarios:

On block (iSCSI) domain with 5G free space:
- 6G preallocated disk - blocked
- 6G thin-provision disk - succeeded

On file (NFS) domain with 13G free space:
- 14G preallocated disk - blocked
- 14G thin-provision disk - succeeded


Allon, is it satisfying? Can I move to VERIFIED?

Comment 4 Allon Mureinik 2014-02-27 11:41:23 UTC
(In reply to Elad from comment #3)
> I've tested the following scenarios:
> 
> On block (iSCSI) domain with 5G free space:
> - 6G preallocated disk - blocked
> - 6G thin-provision disk - succeeded
> 
> On file (NFS) domain with 13G free space:
> - 14G preallocated disk - blocked
> - 14G thin-provision disk - succeeded
> 
> 
> Allon, is it satisfying? Can I move to VERIFIED?

Looks good to me.
Moving to VERIFIED based on comment 3.

Comment 5 Sandro Bonazzola 2014-03-31 12:30:37 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released

Comment 6 Allon Mureinik 2014-04-28 16:00:02 UTC
*** Bug 1091712 has been marked as a duplicate of this bug. ***