Bug 1608716 - upload image - rounded up size value for the created disk
Summary: upload image - rounded up size value for the created disk
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.2.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.6
: 4.2.6
Assignee: Daniel Erez
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-26 08:11 UTC by Daniel Erez
Modified: 2018-09-03 15:10 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.2.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-03 15:10:55 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 93335 0 master MERGED webadmin: upload image - use exact image size 2018-07-31 11:46:26 UTC
oVirt gerrit 93404 0 ovirt-engine-4.2 MERGED webadmin: browserSupportsUploadAPIs - fail gracefully 2018-08-01 08:04:50 UTC
oVirt gerrit 93405 0 ovirt-engine-4.2 MERGED webadmin: upload image - disable size textbox 2018-08-01 08:05:58 UTC
oVirt gerrit 93406 0 ovirt-engine-4.2 MERGED webadmin: upload image - use exact image size 2018-08-01 08:06:02 UTC

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!


Note You need to log in before you can comment on or make changes to this bug.