def __init__(self, context, instance, destination, block_migration, disk_over_commit):
    self.context = context
    self.instance = instance
    self.destination = destination
    self.block_migration = block_migration
    self.disk_over_commit = disk_over_commit
    self.source = instance.host
    self.migrate_data = None
    self.compute_rpcapi = compute_rpcapi.ComputeAPI()
    self.servicegroup_api = servicegroup.API()
    self.scheduler_client = scheduler_client.SchedulerClient()
    self.image_api = image.API()
def __init__(self, context, instance, destination, block_migration, disk_over_commit):
    self.context = context
    self.instance = instance
    self.destination = destination
    self.block_migration = block_migration
    self.disk_over_commit = disk_over_commit
    self.source = instance.host
    self.migrate_data = None
    self.compute_rpcapi = compute_rpcapi.ComputeAPI()
    self.servicegroup_api = servicegroup.API()
    self.scheduler_client = scheduler_client.SchedulerClient()
    self.image_api = image.API()