Bug 1025294 - [engine] Allocated size not calculated correctly for storage domains
Summary: [engine] Allocated size not calculated correctly for storage domains
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Tal Nisan
QA Contact: Gadi Ickowicz
URL:
Whiteboard: storage
Depends On:
Blocks: 3.3snap3
TreeView+ depends on / blocked
 
Reported: 2013-10-31 12:13 UTC by Gadi Ickowicz
Modified: 2016-02-10 20:22 UTC (History)
12 users (show)

Fixed In Version: is24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-21 07:11:14 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine log (161.59 KB, application/gzip)
2013-10-31 12:13 UTC, Gadi Ickowicz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 20930 0 None None None Never
oVirt gerrit 21325 0 None None None Never

Description Gadi Ickowicz 2013-10-31 12:13:07 UTC
Created attachment 817858 [details]
engine log

Description of problem:
The details for a storage domain include total size, free size, used size, and allocated size. The allocated size is supposed to be a sum of the virtual sizes of all the disks on the storage domain (both preallocated and thin-provision). Currently the allocated size shows the sum of the sizes of the thin provision disks' virtual sizes that have not yet been used. For example:

Creating a 150 GB thin-provision disk on iscsi SD will actually use 1GB, and the allocated size will increase by 149GB, and the used size will increase by 1GB.

Preallocated disks are not calculated at all in this column

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.28.beta1.el6ev.noarch
vdsm-4.13.0-0.5.beta1.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create iscsi DC with 1 storage domain and 1 host
2. Create a thin-provision disk of 150GB
3. Create a preallocated disk of 7GB

Actual results:
Storage details of the domain show allocated size: 149GB 

Expected results:
Allocated size should be 157GB (total size disks allocated)

Additional info:


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