Move calculation of disk_available_least to resource tracker
Currently in libvirt[1] and xenapi[2] driver, the 'get_available_
method will report 'disk_available
[1]https:/
[2]https:/
However, libvirt and xenapi driver only take the instances known by hypervisor
into account but ignore the instances being migrate to/from the host.
To solve this problem, We need to move the calculation of
'ComputeNode.
the resource tracker holding the global resource lock knows the current
usage of resources since it can take both existing instances and
ongoing migrations into account.
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Move calculation of 'disk_available