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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)