256
255
mem_avail = mem_total - mem_used
257
256
mem_inst = instance_ref['memory_mb']
258
257
if mem_avail <= mem_inst:
261
261
raise exception.MigrationError(reason=reason % locals())
263
263
def mounted_on_same_shared_storage(self, context, instance_ref, dest):