Commit 8ec88e17 authored by Thibault VINCENT's avatar Thibault VINCENT

storage: crappy fix of possible issue with find_space not handling pool overhead of volumes

parent cc439720
......@@ -415,7 +415,8 @@ class LibvirtHVStorage(HVStorage):
'''
for pool in self._pools.iteritems():
try:
if new_space * GIGABYTE_DIV < pool[1].info()[3]:
# FIXME, crappy overhead delta
if new_space * GIGABYTE_DIV <= pool[1].info()[3] - MEGABYTE_DIV:
return (pool)
except libvirt.libvirtError as e:
raise StorageError("Can't get pool informations (%s)" % e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment