From b32cf27cc93878bcc124bcc387749829b0997a66 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 30 Sep 2021 13:42:18 +0100 Subject: logstash: pin to 7.9.* for Elasticsearch OSS compatibility The latest versions of logstash 7.x do not support using the OSS version of Elasticsearch, and fail to push logs if an OSS version is used. This prevents Monasca log API from working correctly. This change fixes the issue by pinning logstash-oss to 7.9.x, the most recent available package in the repo that still supports Elasticsearch OSS. NOTE: logstash 7.11 introduced the breaking change, however 7.10 is unavailable in the package repos. Change-Id: I4ec4eb837c98f57964488769ab82ba8213ad582c Closes-Bug: #1941754 --- docker/base/apt_preferences.debian | 6 ++++++ docker/base/apt_preferences.ubuntu | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'docker/base') diff --git a/docker/base/apt_preferences.debian b/docker/base/apt_preferences.debian index b2013f388..9c4af3561 100644 --- a/docker/base/apt_preferences.debian +++ b/docker/base/apt_preferences.debian @@ -11,3 +11,9 @@ Pin-Priority: 1000 Package: td-agent* Pin: version 4.0.* Pin-Priority: 1000 + +# NOTE(mgoddard): logstash 7.9.x is the last version that supports +# Elasticsearch OSS. +Package: logstash-oss +Pin: version 7.9.* +Pin-Priority: 1000 diff --git a/docker/base/apt_preferences.ubuntu b/docker/base/apt_preferences.ubuntu index 2928ee662..4f0707067 100644 --- a/docker/base/apt_preferences.ubuntu +++ b/docker/base/apt_preferences.ubuntu @@ -10,3 +10,9 @@ Pin-Priority: 1000 Package: td-agent* Pin: version 4.0.* Pin-Priority: 1000 + +# NOTE(mgoddard): logstash 7.9.x is the last version that supports +# Elasticsearch OSS. +Package: logstash-oss +Pin: version 7.9.* +Pin-Priority: 1000 -- cgit v1.2.3