'Removes an export for a snapshot.'

def remove_export_snapshot(self, ctxt, snapshot_id):

    utils.require_driver_initialized(self.driver)
    snapshot = objects.Snapshot.get_by_id(ctxt, snapshot_id)
    try:
        self.driver.remove_export_snapshot(ctxt, snapshot)
    except Exception:
        msg = _('Remove    snapshot    export    failed.')
        LOG.exception(msg, resource=snapshot)
        raise exception.VolumeBackendAPIException(data=msg)
    LOG.info('Remove    snapshot    export    completed    successfully.', resource=snapshot)
