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

Bug 1608716

Summary: upload image - rounded up size value for the created disk
Product: [oVirt] ovirt-engine Reporter: Daniel Erez <derez>
Component: Frontend.WebAdminAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.5CC: bugs, ebenahar, nsoffer
Target Milestone: ovirt-4.2.6Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-03 15:10:55 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:

Description Daniel Erez 2018-07-26 08:11:17 UTC
Description of problem:
When creating a new disk, as part of image upload flow, we use a rounded up value for its size. Hence, in order to avoid a need for resize, we should use the exact required size value.

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

How reproducible:
100%

Steps to Reproduce:
Initiate an image upload.

Actual results:
Disk is created using a rounded up size.

Expected results:
Disk should be created using an exact size value:
- QCOW2: virtual size defined in the header
- RAW: file size

Additional info:
The rounded up value would still be used in the UI, as we display sizes in GiB.

Comment 1 Kevin Alon Goldblatt 2018-08-13 09:56:26 UTC
Verified with the following code:
-----------------------------------------
ovirt-engine-4.2.5.3-0.1.el7ev.noarch
b36426a9-c5c1-45b0-8b0f-36b3a8e4bfd8


Verified with the following scenario:
-----------------------------------------
1. Upload an image of size 508 MB
2. Verify size of image on storage domain >>>>> Same exact size is displayed '508 Mb'
3. Size in GUI displayed as <1 GB


Moving to VERIFIED!