Bug 1147246 - Storage domain committed size is calculated incorrectly
Summary: Storage domain committed size is calculated incorrectly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.5.0
Assignee: Tal Nisan
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-28 12:12 UTC by Tal Nisan
Modified: 2016-02-10 16:43 UTC (History)
7 users (show)

Fixed In Version: ovirt-3.5.0_rc4
Clone Of:
Environment:
Last Closed: 2014-10-17 12:27:49 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 33251 0 master MERGED core: Calculate total committed size of a storage domain correctly Never
oVirt gerrit 33433 0 ovirt-engine-3.5 MERGED core: Calculate total committed size of a storage domain correctly Never

Description Tal Nisan 2014-09-28 12:12:30 UTC
Description of problem:
A storage domain committed size currently calculates the virtual size of each image in the domain, while this works correctly when dealing only with leaf  images, the calculation is faulty when taking snapshots into consideration since a non active image size can not change thus the calculation has to take into consideration the actual size of the inactive images and the virtual size only of the active images, this with the exception of template images which are active but only their actual size should be taken into consideration since they are read only.

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


How reproducible:
100%

Steps to Reproduce:
1. Create a VM with 10GB disk thinly provisioned, the committed size is 10GB
2. Take a snapshot of the VM with the disk included
3.

Actual results:
The committed size appears as 20GB (10GB virtual size of each image)

Expected results:
The committed size should appear as 10GB on a file domain (actual size of 0 of the base image and 10GB virtual size of the leaf image) or 11GB on a block domain (actual size of 1GB of the base image and 10GB virtual size of the leaf image)

Additional info:

Comment 1 Sandro Bonazzola 2014-10-17 12:27:49 UTC
oVirt 3.5 has been released and should include the fix for this issue.


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