Bug 1491405
Summary: | Fluentd logs filled with long lines of backslashes and undefined method utc errors after updating docker and using json-file as log driver | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Walid A. <wabouham> |
Component: | Logging | Assignee: | Rich Megginson <rmeggins> |
Status: | CLOSED ERRATA | QA Contact: | Walid A. <wabouham> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.1 | CC: | aos-bugs, mifiedle, rmeggins, wabouham |
Target Milestone: | --- | ||
Target Release: | 3.7.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: The json-file parser was assuming the "time" field was a Time object instead of a String object, which does not have a "utc" method.
Consequence: The logs fill with the error.
Fix: Check the type of object for the "time" field, and convert the String to a Time object if necessary.
Result: json-file read time values are parsed correctly, no errors.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-11-28 22:10:58 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: |
Description
Walid A.
2017-09-13 17:16:34 UTC
Fixed for 3.6.2: koji_builds: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=596941 repositories: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:rhaos-3.6-rhel-7-docker-candidate-10286-20170914205115 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:latest brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.6.173.0.33 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.6.173.0.33-2 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.6 Verified on AES EC2 OCP cluster: # openshift version openshift v3.6.173.0.30 kubernetes v1.6.1+5115d708d7 etcd 3.2.1 openshift_logging_image_version=v3.6.173.0.32 logging-fluentd image v3.6.173.0.33-2 Ran logging test at 750 messages per seconds from a single pod and verified messages were indexed successfully in Elasticsearch. No errors in fluentd or elasticsearch pods logs. No rejected bulk queue errors during test # oc exec $POD -n logging -- curl --connect-timeout 2 -s -k --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key https://logging-es:9200/_cat/indices?v health status index pri rep docs.count docs.deleted store.size pri.store.size green open .searchguard.logging-es-data-master-ok4s3o6y 1 0 5 0 30.4kb 30.4kb green open project.logging.0d3b9ba5-9a7a-11e7-b958-020518006434.2017.09.16 1 0 949 0 420.4kb 420.4kb green open project.lograte-750mpsec-0.33590427-9a89-11e7-b1fa-020518006434.2017.09.16 1 0 337125 0 137.9mb 137.9mb green open project.lograte-100mpsec-0.eb21deed-9a87-11e7-b1fa-020518006434.2017.09.16 1 0 28000 0 11.5mb 11.5mb green open .kibana 1 0 1 0 3.1kb 3.1kb green open .operations.2017.09.16 1 0 4 0 17.6kb 17.6kb # oc exec -n logging $POD -- curl -s -k --cert /etc/elasticsearch/secret/admin-cert --key /etc/elasticsearch/secret/admin-key https://localhost:9200/_cat/thread_pool?v\&h=host,bulk.completed,bulk.rejected,bulk.queue,bulk.active,bulk.queueSize host bulk.completed bulk.rejected bulk.queue bulk.active bulk.queueSize 172.20.0.7 917 0 0 0 200 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-2017:3188 |