contrail flows not reaching collector because of incorrect configuration

Bug #1811001 reported by Arvind
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Unassigned
OpenContrail
New
Medium
Arvind

Bug Description

The agent does not send flows to collector if both SLO and sampling have destination set as collector.
This is because of incorrect logic.
When the flow messages are being sent to syslog, no need to check for log level. [By default, the log level is SYS_NOTICE and sessions are sent at SYS_INFO. This results in messages not getting written to syslog. Changing default log level to SYS_INFO in configuration file cannot be a solution.

Tags: analytics
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/48564
Submitter: Arvind (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48562
Submitter: Arvind (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/48562
Committed: http://github.com/Juniper/contrail-controller/commit/afc3066d4e27fa2f0ed0c8a2f668f26a43b527a1
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit afc3066d4e27fa2f0ed0c8a2f668f26a43b527a1
Author: arvindvis <email address hidden>
Date: Tue Jan 8 11:58:26 2019 -0800

Disable log level checks for flows

The flow messages are sent at LOG_INFO by default.
If the configured log level is anything more flow
messages will get dropped. Default configured log
level is SYS_NOTICE. For flow messages to be written
to the syslog, the configured log level has to be
SYS_INFO; but this can cause a huge churn. By
disabling this check only for flow messages, they
will be logged as long as the destination is set as
Syslog.

Change-Id: Ice7b67feeb413620bcc765056835a4221ae91302
Partial-bug: #1811001
Partial-jira-bug: #CBS-7

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.