Bug 1025294

Summary: [engine] Allocated size not calculated correctly for storage domains
Product: Red Hat Enterprise Virtualization Manager Reporter: Gadi Ickowicz <gickowic>
Component: ovirt-engineAssignee: Tal Nisan <tnisan>
Status: CLOSED UPSTREAM QA Contact: Gadi Ickowicz <gickowic>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acanan, acathrow, amureini, gickowic, iheim, lpeer, nlevinki, Rhev-m-bugs, scohen, sgotliv, tnisan, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: is24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 07:11:14 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: 1038284    
Attachments:
Description Flags
engine log none

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: