Issued error "Not enough space in datastore" although there actually is enough space

Hi,

we ha faced a similar problem: our images datastore shows 14Gb free space and we could not upload a 3.3Gb image. The disk had those 14G of space:

Some logs:
Image info. The image weights 3.1G (although the disk defined is 30G)

qemu-img info myImage.qcow2
image: myImage.qcow2
file format: qcow2
virtual size: 30G (32212254720 bytes)
disk size: 3.1G
cluster_size: 65536
Format specific information:
compat: 0.10

Datastore info

onedatastore show 1
DATASTORE 1 INFORMATION
ID : 1
NAME : default
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 0
TYPE : IMAGE
DS_MAD : fs
TM_MAD : ssh
BASE PATH : /var/lib/one//datastores/1
DISK_TYPE : FILE
STATE : READY

DATASTORE CAPACITY
TOTAL: : 43.6G
FREE: : 14.7G
USED: : 28.9G
LIMIT: : -

PERMISSIONS
OWNER : um-
GROUP : u–
OTHER : —

DATASTORE TEMPLATE
CLONE_TARGET=“SYSTEM”
DISK_TYPE=“FILE”
DS_MAD=“fs”
LN_TARGET=“SYSTEM”
RESTRICTED_DIRS=“/”
SAFE_DIRS=“/sunstone_uploads”
TM_MAD=“ssh”
TYPE=“IMAGE_DS”

Oned.log

Mon Jan 23 15:12:50 2017 [Z0][ReM][D]: Req:4128 UID:0 ImageAllocate invoked, "NAME=“myImage…”, 1
Mon Jan 23 15:12:50 2017 [Z0][ReM][E]: Req:4128 UID:0 ImageAllocate result
FAILURE [ImageAllocate] Not enough space in datastore

Which size is ONE checking to calculate the required space, the actual image size and not the disk space, right?