Skip to content

Commit d52bb8e

Browse files
dougszumskiyoctozepto
authored andcommitted
Pin td-agent to 4.0.* to fix missing logs
The recent inclusion of Fluentd 1.12.x in Centos/Ubuntu packages causes a significant number of logs to fail to appear in the Elasticsearch or Monasca output plugins. The logs appear to sit in a local buffer, and are only flushed when Fluentd is restarted. The same issue persists in the most recent release (1.13.0), so for now we pin the td-agent package to 4.0.* which should restrict Fluentd to the 1.11.x release where we don't see this issue. Backport to Victoria. Change-Id: Iefcdd3100b7e3c5320bc5f1286a18251bdeab885 Closes-Bug: #1930867 (cherry picked from commit 6d0882e)
1 parent ddea2f4 commit d52bb8e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

docker/base/apt_preferences.ubuntu

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ Pin-Priority: 1000
55
Package: erlang*
66
Pin: version 1:23.*
77
Pin-Priority: 1000
8+
9+
# FIXME(mgoddard): Pinning to 4.0.* to avoid bug 1930867.
10+
Package: td-agent*
11+
Pin: version 4.0.*
12+
Pin-Priority: 1000

docker/fluentd/Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ LABEL fluentd_version="0.14" fluentd_binary="td-agent"
2727
] %}
2828

2929
{% if base_arch in ['aarch64', 'x86_64'] %}
30+
# FIXME(mgoddard): Pinning to 4.0.* to avoid bug 1930867.
3031
{% set fluentd_packages = fluentd_packages + [
31-
'td-agent'
32+
'td-agent-4.0.*'
3233
] %}
3334
{% else %}
3435
{% set fluentd_packages = fluentd_packages + [
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue with logs going missing in the Fluentd pipeline
5+
by pinning td-agent to 4.0.*.
6+
`LP#1930867 <https://launchpad.net/bugs/1930867>`__

0 commit comments

Comments
 (0)