'Completes the migration process.
Sets up the newly transferred disk and turns on the instance at its
new host machine.'

@wrap_exception()
@reverts_task_state
@wrap_instance_event(prefix='compute')
@errors_out_migration
@wrap_instance_fault
def finish_resize(self, context, disk_info, image, instance, reservations, migration):

    with self._error_out_instance_on_exception(context, instance):
        image_meta = objects.ImageMeta.from_dict(image)
        self._finish_resize(context, instance, migration, disk_info, image_meta)
