'Remove a volume connection, but leave attachment.'

def _connection_terminate(self, context, volume, attachment, force=False):

    utils.require_driver_initialized(self.driver)
    connector = self.db.attachment_specs_get(context, attachment.id)
    try:
        shared_connections = self.driver.terminate_connection(volume, connector, force=force)
        if (not isinstance(shared_connections, bool)):
            shared_connections = False
    except Exception as err:
        err_msg = (_('Terminate    volume    connection    failed:    %(err)s') % {'err': six.text_type(err)})
        LOG.exception(err_msg, resource=volume)
        raise exception.VolumeBackendAPIException(data=err_msg)
    LOG.info('Terminate    volume    connection    completed    successfully.', resource=volume)
    return shared_connections
