Do not write UVEs in the log file

Bug #1698018 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Megh Bhatt
Trunk
Fix Committed
High
Megh Bhatt

Bug Description

Recently, default log level for the sandesh uve has been changed to SYS_NOTICE. log_level is set to SYS_NOTICE in conf file for all contrail services. This causes the log file for all services to be flooded with the sandesh UVE logs. Most of the stats are sent as UVEs and are periodic. Since the UVEs can be queried using analytics REST API or fetched from the service's introspect, uves should not be written in the log file.

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

Review in progress for https://review.opencontrail.org/34038
Submitter: Megh Bhatt (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/34049
Submitter: Megh Bhatt (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34038
Committed: http://github.com/Juniper/contrail-sandesh/commit/a7283abe94e15f0f1193b66d51ceef7eaac9fb56
Submitter: Zuul (<email address hidden>)
Branch: master

commit a7283abe94e15f0f1193b66d51ceef7eaac9fb56
Author: Megh Bhatt <email address hidden>
Date: Wed Jul 26 14:37:54 2017 -0700

Log UVEs only at SandeshLevel::INVALID

As part of constrained analytics we changed the default
SandeshLevel of UVEs to SYS_NOTICE from INVALID. Due to
this the log files of all daemons started getting flooded
with UVE logs since the default log_level is set to
SYS_NOTICE. To workaround this we will treat the UVE
log level as INVALID when determining whether to log.

Change-Id: I448402843b10a5bdde2f13a562f964abac386dcc
Closes-Bug: #1698018

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

Reviewed: https://review.opencontrail.org/34049
Committed: http://github.com/Juniper/contrail-sandesh/commit/60f1b301a006a724d72c166de51c92c8eb7863ce
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 60f1b301a006a724d72c166de51c92c8eb7863ce
Author: Megh Bhatt <email address hidden>
Date: Wed Jul 26 14:37:54 2017 -0700

Log UVEs only at SandeshLevel::INVALID

As part of constrained analytics we changed the default
SandeshLevel of UVEs to SYS_NOTICE from INVALID. Due to
this the log files of all daemons started getting flooded
with UVE logs since the default log_level is set to
SYS_NOTICE. To workaround this we will treat the UVE
log level as INVALID when determining whether to log.

Change-Id: I448402843b10a5bdde2f13a562f964abac386dcc
Closes-Bug: #1698018

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.