Skip to content
Snippets Groups Projects
Commit 8ec88e17 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

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

parent cc439720
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment