'Aborting a running live-migration.
:param instance: instance object that is in migration'

def live_migration_abort(self, instance):

    guest = self._host.get_guest(instance)
    dom = guest._domain
    try:
        dom.abortJob()
    except libvirt.libvirtError as e:
        LOG.error('Failed    to    cancel    migration    %s', e, instance=instance)
        raise
