Bug 1741591

Summary: remote-syslog error when the record has level=unknown
Product: OpenShift Container Platform Reporter: Rich Megginson <rmeggins>
Component: LoggingAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: Anping Li <anli>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: anli, aos-bugs, jcantril, rmeggins
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Logging changed container logs to use log level "unknown" because there is no way to accurately determine container log levels for all types of container logs. See https://bugzilla.redhat.com/show_bug.cgi?id=1726639 Consequence: The remote syslog plugin broke because it does not know how to handle level "unknown" Fix: Change the plugin to use the configured default log level (e.g. "info") when it sees level "unknown". Result: Remote syslog plugin will continue to work and use the default log level instead of "unknown".
Story Points: ---
Clone Of: 1741590 Environment:
Last Closed: 2020-11-03 18:47:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1741585    
Bug Blocks:    

Description Rich Megginson 2019-08-15 13:51:01 UTC
+++ This bug was initially created as a clone of Bug #1741590 +++

+++ This bug was initially created as a clone of Bug #1741585 +++

Description of problem:
We recently switched most container logs to use log level=unknown.  This causes problems for the remote-syslog plugin as `unknown` isn't in the list of levels/severities: 
https://github.com/eric/syslog_protocol/blob/master/lib/syslog_protocol/common.rb#L58

```
2019-08-15 01:00:20 +0000 [warn]: emit transaction failed: error_class=ArgumentError error="'unknown' is not a designated severity" location="/opt/app-root/src/gems/syslog_protocol-0.9.2/lib/syslog_protocol/packet.rb:72:in `severity='" tag="output_ops_tag"
2019-08-15 01:00:20 +0000 [warn]: /opt/app-root/src/gems/syslog_protocol-0.9.2/lib/syslog_protocol/packet.rb:72:in `severity='
```

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jeff Cantrill 2020-02-14 21:57:27 UTC
Closing fixed in current release. Please reopen as required.