Skip to content

Commit 7efe0cc

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Unpin td-agent and cap elasticsearch gem" into stable/xena
2 parents 47aac3c + 5c6eb17 commit 7efe0cc

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

docker/base/apt_preferences.debian

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ Package: erlang*
77
Pin: version 1:23.*
88
Pin-Priority: 1000
99

10-
# FIXME(mgoddard): Pinning to 4.0.* to avoid bug 1930867.
11-
Package: td-agent*
12-
Pin: version 4.0.*
13-
Pin-Priority: 1000
14-
1510
# NOTE(mgoddard): logstash 7.9.x is the last version that supports
1611
# Elasticsearch OSS.
1712
Package: logstash-oss

docker/base/apt_preferences.ubuntu

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ Package: erlang*
66
Pin: version 1:23.*
77
Pin-Priority: 1000
88

9-
# FIXME(mgoddard): Pinning to 4.0.* to avoid bug 1930867.
10-
Package: td-agent*
11-
Pin: version 4.0.*
12-
Pin-Priority: 1000
13-
149
# NOTE(mgoddard): logstash 7.9.x is the last version that supports
1510
# Elasticsearch OSS.
1611
Package: logstash-oss

docker/fluentd/Dockerfile.j2

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ 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.
3130
{% set fluentd_packages = fluentd_packages + [
32-
'td-agent-4.0.*'
31+
'td-agent'
3332
] %}
3433
{% else %}
3534
{% set fluentd_packages = fluentd_packages + [
@@ -62,7 +61,14 @@ LABEL fluentd_version="0.14" fluentd_binary="td-agent"
6261
{% endif %}
6362

6463
{{ macros.configure_user(name=fluentd_user, groups='mysql') }}
65-
{{ macros.install_packages(fluentd_packages | customizable("packages")) }}
64+
65+
# NOTE(frickler): Downgrading elasticsearch gems for compatibility with OSS versions of ES
66+
{{ macros.install_packages(fluentd_packages | customizable("packages")) }}{% if base_arch in ['aarch64', 'x86_64'] %} \
67+
&& td-agent-gem install elasticsearch:7.13.0 \
68+
&& td-agent-gem uninstall "elasticsearch:>7.13.0" \
69+
&& td-agent-gem uninstall "elasticsearch-api:>7.13.0" \
70+
&& td-agent-gem uninstall "elasticsearch-transport:>7.13.0"
71+
{% endif %}
6672

6773
# Distro specific files and operations
6874
# Fluentd on rpm-based non-x86_64 is installed from rpm
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Latest version of the elasticsearch gem no longer works with older
5+
(OSS) versions of Elasticsearch. This is fixed by capping the version
6+
of the elasticsearch gem installed into the fluentd container.
7+
`LP#1954759 <https://launchpad.net/bugs/1954759>`__

0 commit comments

Comments
 (0)