xapi-project/xen-api — pull request #1772 by akshayramani (2014-05-28 12:45:49+00:00)
Title: SCTX-1817: During vdi-pool-migrate , check if the host has sufficient

memory to account for 2x the VM memory.
Currentl XAPI does not account for the VM memory while performing a VDI.pool_migrate. However we need to account for the VM memory as at one point during the VDI.pool_migrate a domain will exist twice thus needing 2x VM memory to be free on the host. This is not obvious will performing the VDI.pool_migrate.

This fix ensures that a VDI.pool_migrate will not begin unless there is sufficient memory on the host.
Signed-off-by: Akshay