def check_can_live_migrate_destination(self, context, instance, src_compute_info, dst_compute_info, block_migration=False, disk_over_commit=False):
    'Check if it is possible to execute live migration.\n\n        This runs checks on the destination host, and then calls\n        back to the source host to check the results.\n\n        :param context: security context\n        :param instance: nova.db.sqlalchemy.models.Instance\n        :param block_migration: if true, prepare for block migration\n        :param disk_over_commit: if true, allow disk over commit\n        :returns: a dict containing:\n             :filename: name of the tmpfile under CONF.instances_path\n             :block_migration: whether this is block migration\n             :disk_over_commit: disk-over-commit factor on dest host\n             :disk_available_mb: available disk space on dest host\n        '
    disk_available_mb = None
    if block_migration:
        disk_available_gb = dst_compute_info['disk_available_least']
        disk_available_mb = ((disk_available_gb * units.Ki) - CONF.reserved_host_disk_mb)
    source_cpu_info = src_compute_info['cpu_info']
    self._compare_cpu(source_cpu_info)
    filename = self._create_shared_storage_test_file()
    return {'filename': filename, 'image_type': CONF.libvirt.images_type, 'block_migration': block_migration, 'disk_over_commit': disk_over_commit, 'disk_available_mb': disk_available_mb}
Check if it is possible to execute live migration.

This runs checks on the destination host, and then calls
back to the source host to check the results.

:param context: security context
:param instance: nova.db.sqlalchemy.models.Instance
:param block_migration: if true, prepare for block migration
:param disk_over_commit: if true, allow disk over commit
:returns: a dict containing:
     :filename: name of the tmpfile under CONF.instances_path
     :block_migration: whether this is block migration
     :disk_over_commit: disk-over-commit factor on dest host
     :disk_available_mb: available disk space on dest host
def check_can_live_migrate_destination(self, context, instance, src_compute_info, dst_compute_info, block_migration=False, disk_over_commit=False):
    'Check if it is possible to execute live migration.\n\n        This runs checks on the destination host, and then calls\n        back to the source host to check the results.\n\n        :param context: security context\n        :param instance: nova.db.sqlalchemy.models.Instance\n        :param block_migration: if true, prepare for block migration\n        :param disk_over_commit: if true, allow disk over commit\n        :returns: a dict containing:\n             :filename: name of the tmpfile under CONF.instances_path\n             :block_migration: whether this is block migration\n             :disk_over_commit: disk-over-commit factor on dest host\n             :disk_available_mb: available disk space on dest host\n        '
    disk_available_mb = None
    if block_migration:
        disk_available_gb = dst_compute_info['disk_available_least']
        disk_available_mb = ((disk_available_gb * units.Ki) - CONF.reserved_host_disk_mb)
    source_cpu_info = src_compute_info['cpu_info']
    self._compare_cpu(source_cpu_info)
    filename = self._create_shared_storage_test_file()
    return {'filename': filename, 'image_type': CONF.libvirt.images_type, 'block_migration': block_migration, 'disk_over_commit': disk_over_commit, 'disk_available_mb': disk_available_mb}