Bug 1632361
Summary: | [3.10] Fluentd cannot handle S2I Logs | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Rich Megginson <rmeggins> | |
Component: | Logging | Assignee: | Rich Megginson <rmeggins> | |
Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.10.0 | CC: | anli, aos-bugs, nalentor, qitang, rmeggins, stwalter | |
Target Milestone: | --- | |||
Target Release: | 3.10.z | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | logging-fluentd-container-v3.10.51-1 | Doc Type: | Bug Fix | |
Doc Text: |
Cause: When using docker with the journald log driver, all container logs, including system and plain docker container logs, are logged to the journal, and read by fluentd.
Consequence: fluentd does not know how to handle these non-kubernetes container logs and throws exceptions.
Fix: Treat non-kubernetes container logs as logs from other system services e.g. send them to the .operations.* index.
Result: Logs from non-kubernetes containers are indexed correctly and do not cause any errors.
|
Story Points: | --- | |
Clone Of: | 1632130 | |||
: | 1632364 (view as bug list) | Environment: | ||
Last Closed: | 2018-11-11 16:39:26 UTC | Type: | Bug | |
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: | 1632130 | |||
Bug Blocks: | 1632364 |
Description
Rich Megginson
2018-09-24 16:05:13 UTC
PR merged upstream - waiting for next automated sync/build Setting to MODIFIED as per https://mojo.redhat.com/docs/DOC-1178565 "How do I get my Bugzilla Bug to VERIFIED?" Verified with logging-fluentd-v3.10.56-1 Steps to verify: 1. set journald as docker log-driver, then deploy logging 2. create some s2i pods under 'openshift' namespace to make the container_name have the string '_openshift_' 71000ebe481d docker-registry.default.svc:5000/openshift/eap-app@sha256:bf5bd314b964c64cd28fb423a1e142d460468d10104c859e37bd691659ae0b7c "/usr/local/s2i/run" 5 minutes ago Up 4 minutes k8s_eap-app_eap-app-1-rcwgq_openshift_1a830019-d106-11e8-956b-42010af0000a_0 4fce4bce5e8d registry.reg-aws.openshift.com:443/openshift3/ose-pod:v3.10.56 "/usr/bin/pod" 5 minutes ago Up 5 minutes k8s_POD_eap-app-1-rcwgq_openshift_1a830019-d106-11e8-956b-42010af0000a_0 3. view logs in kibana, there are "kubernetes.namespace_name: openshift", "kubernetes.pod_name: eap-app-1-build" and "kubernetes.container_name: sti-build" in the log document. No log lost. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2709 |