def remove_export(self, context, volume_id):
    'Removes an export for a volume.'
    utils.require_driver_initialized(self.driver)
    volume_ref = self.db.volume_get(context, volume_id)
    try:
        self.driver.remove_export(context, volume_ref)
    except Exception:
        msg = _('Remove volume export failed.')
        LOG.exception(msg, resource=volume_ref)
        raise exception.VolumeBackendAPIException(data=msg)
    LOG.info(_LI('Remove volume export completed successfully.'), resource=volume_ref)
Removes an export for a volume.
def remove_export(self, context, volume_id):
    
    utils.require_driver_initialized(self.driver)
    volume_ref = self.db.volume_get(context, volume_id)
    try:
        self.driver.remove_export(context, volume_ref)
    except Exception:
        msg = _('Remove volume export failed.')
        LOG.exception(msg, resource=volume_ref)
        raise exception.VolumeBackendAPIException(data=msg)
    LOG.info(_LI('Remove volume export completed successfully.'), resource=volume_ref)