Bug 1410705
Summary: | Roll over log entries are visible when journal-read-from-head is false | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Xia Zhao <xiazhao> |
Component: | Logging | Assignee: | Rich Megginson <rmeggins> |
Status: | CLOSED ERRATA | QA Contact: | Xia Zhao <xiazhao> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 3.4.0 | CC: | aos-bugs, pruan, tdawson |
Target Milestone: | --- | ||
Target Release: | 3.4.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-31 18:18:48 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
Xia Zhao
2017-01-06 06:42:36 UTC
Issue exist after removing the pos file on node, it recreates automatically after removing: # cat /var/log/journal.pos s=e9708e5b637f4472942b54b9f7f660b6;i=4c3c2;b=8ff3def7672a47a09f1455574362d261;m=29dc7cafe;t=54565779e6744;x=40f8c1889c5f625e # rm -rf journal.pos # cat /var/log/journal.pos s=e9708e5b637f4472942b54b9f7f660b6;i=5e3fd;b=8ff3def7672a47a09f1455574362d261;m=305262080;t=54565defcbcc6;x=f093d8100b19e179 There is definitely a bug here. Investigating. Commit pushed to master at https://github.com/openshift/origin-aggregated-logging https://github.com/openshift/origin-aggregated-logging/commit/3f16fe806cf9c282d1916ce947fd5b5ab28a9e3c Bug 1410705 - Roll over log entries are visible when journal-read-from-head is false https://bugzilla.redhat.com/show_bug.cgi?id=1410705 The fluent-plugin-systemd plugin is parsing "false" as a string value, which always evaluates to boolean true. The fix is to not set read_from_head when it is not true, this will use the default false internal value. See also https://github.com/reevoo/fluent-plugin-systemd/issues/19 Also note that due to https://github.com/reevoo/fluent-plugin-systemd/issues/20 and https://github.com/ledbettj/systemd-journal/issues/64 there may be a few old entries read, even if read_from_head is false. Waiting for next release of 3.4 to release this fix - adding tdawson To ssh://rmeggins.redhat.com/rpms/logging-fluentd-docker f8149e4..3a4733b rhaos-3.4-rhel-7 -> rhaos-3.4-rhel-7 Just needs a rebuild of logging-fluentd-docker This should be in openshift3/logging-fluentd:3.4.1-2 or newer verified with [root@host-8-175-197 ~]# oc version oc v3.4.1.2 kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://host-8-175-197.host.centralci.eng.rdu2.redhat.com:8443 openshift v3.4.1.2 kubernetes v1.4.0+776c994 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/RHBA-2017:0219 |