Upgrade from ELK6 to ELK7 FOSS release

Upgrade to the latest ELK OSS release. Due to the licensing change, this
effectively pins us to 7.10.x which is supported until 2022-05-11 [1].

This patch also takes advantage of the ARM artifacts which have
been kindly provided since the 7.8.0 release [2].

[1] https://www.elastic.co/support/eol
[2] https://www.elastic.co/blog/elasticsearch-on-arm

Change-Id: Icfa3db5788b25f70ee75411dbaf20d8d4a6a734b
This commit is contained in:
Doug Szumski 2020-06-18 16:44:55 +01:00 committed by Marcin Juszkiewicz
parent 8d70e3f0cc
commit c19a57a979
5 changed files with 30 additions and 24 deletions

View File

@ -1,6 +1,6 @@
[elasticsearch-kibana-logstash-6.x] [elasticsearch-kibana-logstash-7.x]
name=ELK repository for 6.x packages name=ELK repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/oss-6.x/yum baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
gpgcheck=1 gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0 enabled=0

View File

@ -145,7 +145,6 @@ UNBUILDABLE_IMAGES = {
}, },
'centos+aarch64': { 'centos+aarch64': {
"elasticsearch", # no binary package
"hacluster-pcs", # no binary package "hacluster-pcs", # no binary package
"influxdb", # no binary package "influxdb", # no binary package
"kibana", # no binary package "kibana", # no binary package

View File

@ -2,7 +2,7 @@
# TODO(mnasiadka): Rework the repo list once Ceph Octopus is released # TODO(mnasiadka): Rework the repo list once Ceph Octopus is released
centos: centos:
ceph: "centos-ceph-nautilus" ceph: "centos-ceph-nautilus"
elasticsearch: "elasticsearch-kibana-logstash-6.x" elasticsearch: "elasticsearch-kibana-logstash-7.x"
epel: "epel" epel: "epel"
epel-modular: "epel-modular" epel-modular: "epel-modular"
erlang: "rabbitmq_rabbitmq-erlang" erlang: "rabbitmq_rabbitmq-erlang"
@ -10,8 +10,8 @@ centos:
grafana: "grafana" grafana: "grafana"
hacluster: "ha" hacluster: "ha"
influxdb: "influxdb" influxdb: "influxdb"
logstash: "elasticsearch-kibana-logstash-6.x" kibana: "elasticsearch-kibana-logstash-7.x"
kibana: "elasticsearch-kibana-logstash-6.x" logstash: "elasticsearch-kibana-logstash-7.x"
opstools: "centos-opstools" opstools: "centos-opstools"
powertools: "powertools" powertools: "powertools"
rabbitmq: "rabbitmq_rabbitmq-server" rabbitmq: "rabbitmq_rabbitmq-server"
@ -19,14 +19,15 @@ centos:
centos-aarch64: centos-aarch64:
ceph: "centos-ceph-nautilus" ceph: "centos-ceph-nautilus"
elasticsearch: "elasticsearch-kibana-logstash-6.x" elasticsearch: "elasticsearch-kibana-logstash-7.x"
epel: "epel" epel: "epel"
epel-modular: "epel-modular" epel-modular: "epel-modular"
erlang: "centos-rabbitmq-38" erlang: "centos-rabbitmq-38"
extras: "extras" extras: "extras"
grafana: "grafana" grafana: "grafana"
hacluster: "ha" hacluster: "ha"
logstash: "elasticsearch-kibana-logstash-6.x" kibana: "elasticsearch-kibana-logstash-7.x"
logstash: "elasticsearch-kibana-logstash-7.x"
opstools: "centos-opstools" opstools: "centos-opstools"
powertools: "powertools" powertools: "powertools"
rabbitmq: "rabbitmq_rabbitmq-server" rabbitmq: "rabbitmq_rabbitmq-server"
@ -34,12 +35,12 @@ centos-aarch64:
centos-ppc64le: centos-ppc64le:
ceph: "centos-ceph-nautilus" ceph: "centos-ceph-nautilus"
elasticsearch: "elasticsearch-kibana-logstash-6.x" elasticsearch: "elasticsearch-kibana-logstash-7.x"
epel: "epel" epel: "epel"
epel-modular: "epel-modular" epel-modular: "epel-modular"
extras: "extras" extras: "extras"
hacluster: "ha" hacluster: "ha"
logstash: "elasticsearch-kibana-logstash-6.x" logstash: "elasticsearch-kibana-logstash-7.x"
opstools: "centos-opstools" opstools: "centos-opstools"
powertools: "powertools" powertools: "powertools"
rabbitmq: "rabbitmq_rabbitmq-server" rabbitmq: "rabbitmq_rabbitmq-server"
@ -51,34 +52,34 @@ rhel:
rabbitmq: "centos-rabbitmq-38" rabbitmq: "centos-rabbitmq-38"
debian: debian:
elasticsearch: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" elasticsearch: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
erlang: "deb https://dl.bintray.com/rabbitmq-erlang/debian/ buster erlang" erlang: "deb https://dl.bintray.com/rabbitmq-erlang/debian/ buster erlang"
grafana: "deb https://packages.grafana.com/oss/deb stable main" grafana: "deb https://packages.grafana.com/oss/deb stable main"
influxdb: "deb https://repos.influxdata.com/debian buster stable" influxdb: "deb https://repos.influxdata.com/debian buster stable"
libvirt: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./" libvirt: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
logstash: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
kibana: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" kibana: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ buster main" rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ buster main"
td-agent: "deb http://packages.treasuredata.com/4/debian/buster buster contrib" td-agent: "deb http://packages.treasuredata.com/4/debian/buster buster contrib"
debian-aarch64: debian-aarch64:
elasticsearch: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" elasticsearch: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
erlang: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./" erlang: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
grafana: "deb https://packages.grafana.com/oss/deb stable main" grafana: "deb https://packages.grafana.com/oss/deb stable main"
influxdb: "deb https://repos.influxdata.com/debian buster stable" influxdb: "deb https://repos.influxdata.com/debian buster stable"
logstash: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
kibana: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" kibana: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
libvirt: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./" libvirt: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ buster main" rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ buster main"
td-agent: "deb http://packages.treasuredata.com/4/debian/buster buster contrib" td-agent: "deb http://packages.treasuredata.com/4/debian/buster buster contrib"
ubuntu: ubuntu:
elasticsearch: "deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main" elasticsearch: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
erlang: "deb https://dl.bintray.com/rabbitmq-erlang/debian/ focal erlang" erlang: "deb https://dl.bintray.com/rabbitmq-erlang/debian/ focal erlang"
grafana: "deb https://packages.grafana.com/oss/deb stable main" grafana: "deb https://packages.grafana.com/oss/deb stable main"
influxdb: "deb https://repos.influxdata.com/ubuntu focal stable" influxdb: "deb https://repos.influxdata.com/ubuntu focal stable"
logstash: "deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
kibana: "deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main" kibana: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu focal main" mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu focal main"
qdrouterd: "deb http://ppa.launchpad.net/qpid/released/ubuntu/ focal main" qdrouterd: "deb http://ppa.launchpad.net/qpid/released/ubuntu/ focal main"
# NOTE(hrw): upstream uses bionic repo for focal # NOTE(hrw): upstream uses bionic repo for focal
@ -86,11 +87,11 @@ ubuntu:
td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib" td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib"
ubuntu-aarch64: ubuntu-aarch64:
elasticsearch: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" elasticsearch: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
erlang: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/ubuntu-focal ./" erlang: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/ubuntu-focal ./"
grafana: "deb https://packages.grafana.com/oss/deb stable main" grafana: "deb https://packages.grafana.com/oss/deb stable main"
influxdb: "deb https://repos.influxdata.com/ubuntu focal stable" influxdb: "deb https://repos.influxdata.com/ubuntu focal stable"
logstash: "deb [arch=amd64] https://artifacts.elastic.co/packages/oss-6.x/apt stable main" logstash: "deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main"
mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic main" mariadb: "deb http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic main"
rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ bionic main" rabbitmq: "deb https://dl.bintray.com/rabbitmq/debian/ bionic main"
td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib" td-agent: "deb http://packages.treasuredata.com/4/ubuntu/focal/ focal contrib"

View File

@ -104,8 +104,8 @@ class MethodsTest(base.TestCase):
'enable') 'enable')
expectCmd = 'RUN echo "deb https://packages.grafana.com/oss/deb ' expectCmd = 'RUN echo "deb https://packages.grafana.com/oss/deb '
expectCmd += 'stable main" >/etc/apt/sources.list.d/grafana.list && ' expectCmd += 'stable main" >/etc/apt/sources.list.d/grafana.list && '
expectCmd += 'echo "deb [arch=amd64] ' expectCmd += 'echo "deb '
expectCmd += 'https://artifacts.elastic.co/packages/oss-6.x/apt ' expectCmd += 'https://artifacts.elastic.co/packages/oss-7.x/apt '
expectCmd += 'stable main" >/etc/apt/sources.list.d/kibana.list' expectCmd += 'stable main" >/etc/apt/sources.list.d/kibana.list'
self.assertEqual(expectCmd, result) self.assertEqual(expectCmd, result)

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Upgrades Elasticsearch, Logstash and Kibana (ELK) 6 images to ELK 7. Please
see the upgrade notes in the official `documentation
<https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html>`__