Skip to content

Commit f3edd4d

Browse files
hrwMarcin Juszkiewicz
authored andcommitted
rabbitmq: update to RabbitMQ 3.9 on Erlang 25
Xena provides RabbitMQ 3.8 series with Erlang 23. Both are not supported anymore. This patch brings RabbitMQ up to 3.9 series with Erlang 25. RabbitMQ 3.9 and Erlang 25 are final update in stable/xena branch. According to upstream [1] 3.8 -> 3.9 migration is fine while 3.8 -> 3.10 should be done through 3.9 so we can not move to 3.10 version here. 1. https://www.rabbitmq.com/upgrade.html#rabbitmq-version-upgradability Due to fact that 3.8 does not support Erlang 25 we do all updates at once. Therefore this commit is composed of 3 backports from stable/yoga branch: ------------------------------------------------------------------------ rabbitmq: use Erlang from PPA on Debian/Ubuntu PPA from Team RabbitMQ [1] provides newer Erlang for Debian/Ubuntu. This way we have latest Erlang on both distributions and both architectures. 1. https://launchpad.net/~rabbitmq/+archive/ubuntu/rabbitmq-erlang (manual cherry-pick from master commit b40506f) Id: I6b1407cc94ffa1893dac204cf4836a7d0ae0d575 ------------------------------------------------------------------------ rabbitmq: bump Erlang version to 25.x We decided to ship one Erlang version for all distributions and architectures. RabbitMQ 3.9.22+ requires Erlang 24.2+ and 24.3.4.2+ is recommended due to CVE-2022-37026. Id: I1eb1e1bd2bf74dbef214d458cbde13aa8c2a286f ------------------------------------------------------------------------ rabbitmq/aarch64: use COPR for Erlang RabbitMQ team maintains RPM package in Github repo [1]. Hrw then use it to build package using COPR service [2]. This way we have latest Erlang on both distributions and both architectures. 1. https://github.com/rabbitmq/erlang-rpm/ 2. https://copr.fedorainfracloud.org/coprs/hrw/erlang-for-rabbitmq/ (manual cherry-pick from master commit e104ef7) Id: I6a6a9c3d5ffff884fc61baeafcc46ad82afc3db3 ------------------------------------------------------------------------ Change-Id: I3e2b37f106ccc096a7aede7b07197219373610e9
1 parent 75a21a4 commit f3edd4d

File tree

9 files changed

+40
-30
lines changed

9 files changed

+40
-30
lines changed

docker/base/Dockerfile.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ COPY dnf.conf /etc/dnf/dnf.conf
9797
{% elif base_arch == 'aarch64' %}
9898
{% set base_yum_repo_files = [
9999
'elasticsearch.repo',
100-
'erlang-solutions.repo',
100+
'hrw-copr-erlang-for-rabbitmq.repo',
101101
'grafana.repo',
102102
'mariadb-aarch64.repo',
103103
'proxysql.repo',
@@ -322,9 +322,9 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
322322
] %}
323323

324324
{% set base_apt_keys = [
325-
{'name': 'erlang', 'keyid': 'E495BB49CC4BBE5B'},
326-
{'name': 'rabbitmq', 'keyid': '9F4587F226208342'},
327-
{'name': 'haproxy', 'keyid': 'CFFB779AADC995E4F350A060505D97A41C61B9CD'},
325+
{'name': 'erlang-ppa', 'keyid': 'F77F1EDA57EBB1CC'},
326+
{'name': 'rabbitmq', 'keyid': '9F4587F226208342'},
327+
{'name': 'haproxy', 'keyid': 'CFFB779AADC995E4F350A060505D97A41C61B9CD'},
328328
] %}
329329

330330
{# NOTE(hrw): type field defaults to 'asc' which is used for single keys #}

docker/base/apt_preferences.debian

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
Package: rabbitmq-server
2-
Pin: version 3.8.*
2+
Pin: version 3.9.*
33
Pin-Priority: 1000
44

5-
# RabbitMQ wants 23+ and we want to stay on 23 if possible
65
Package: erlang*
7-
Pin: version 1:23.*
6+
Pin: version 1:25.*
87
Pin-Priority: 1000
98

109
# NOTE(mgoddard): logstash 7.9.x is the last version that supports

docker/base/apt_preferences.ubuntu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Package: rabbitmq-server
2-
Pin: version 3.8.*
2+
Pin: version 3.9.*
33
Pin-Priority: 1000
44

55
Package: erlang*
6-
Pin: version 1:23.*
6+
Pin: version 1:25.*
77
Pin-Priority: 1000
88

99
# NOTE(mgoddard): logstash 7.9.x is the last version that supports

docker/base/erlang-solutions.repo

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NOTE(hrw): this repository contains rebuild of Erlang package from RabbitMQ team
2+
# from https://github.com/rabbitmq/erlang-rpm/
3+
# Thanks to COPR we have aarch64 packages for CentOS Stream 8/9
4+
5+
[copr-hrw-erlang-for-rabbitmq]
6+
name=Hrw's COPR with Erlang build for RabbitMQ
7+
baseurl=https://download.copr.fedorainfracloud.org/results/hrw/erlang-for-rabbitmq/centos-stream-$releasever-$basearch/
8+
gpgcheck=1
9+
enabled=0
10+
gpgkey=https://download.copr.fedorainfracloud.org/results/hrw/erlang-for-rabbitmq/pubkey.gpg
11+
repo_gpgcheck=0

docker/kolla-toolbox/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2424

2525
{% set kolla_toolbox_packages = [
2626
'crudini',
27-
'erlang-23.*',
27+
'erlang-25.*',
2828
'gcc',
2929
'gdisk',
3030
'git',
@@ -39,7 +39,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
3939
'openssl-devel',
4040
'openvswitch',
4141
'python3-devel',
42-
'rabbitmq-server-3.8.*'
42+
'rabbitmq-server-3.9.*'
4343
] %}
4444

4545
{% elif base_package_type == 'deb' %}

docker/rabbitmq/Dockerfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2020
{% if base_package_type == 'rpm' %}
2121

2222
{% set rabbitmq_packages = [
23-
'erlang-23.*',
23+
'erlang-25.*',
2424
'hostname',
25-
'rabbitmq-server-3.8.*'
25+
'rabbitmq-server-3.9.*'
2626
] %}
2727

2828
{% elif base_package_type == 'deb' %}

kolla/template/repos.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ centos-aarch64:
2626
elasticsearch: "elasticsearch-kibana-logstash-7.x"
2727
epel: "epel"
2828
epel-modular: "epel-modular"
29-
erlang: "erlang-solutions"
29+
erlang: "copr-hrw-erlang-for-rabbitmq"
3030
extras: "extras"
3131
grafana: "grafana"
3232
hacluster: "ha"
@@ -49,10 +49,10 @@ debian:
4949
component: "main"
5050
gpg_key: "elasticsearch.asc"
5151
erlang:
52-
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian"
53-
suite: "bullseye"
52+
url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
53+
suite: "focal"
5454
component: "main"
55-
gpg_key: "erlang.gpg"
55+
gpg_key: "erlang-ppa.gpg"
5656
grafana:
5757
url: "https://packages.grafana.com/oss/deb"
5858
suite: "stable"
@@ -101,10 +101,10 @@ debian-aarch64:
101101
component: "main"
102102
gpg_key: "elasticsearch.asc"
103103
erlang:
104-
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian"
105-
suite: "bullseye"
104+
url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
105+
suite: "focal"
106106
component: "main"
107-
gpg_key: "erlang.gpg"
107+
gpg_key: "erlang-ppa.gpg"
108108
grafana:
109109
url: "https://packages.grafana.com/oss/deb"
110110
suite: "stable"
@@ -153,10 +153,10 @@ ubuntu:
153153
component: "main"
154154
gpg_key: "elasticsearch.asc"
155155
erlang:
156-
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu"
156+
url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
157157
suite: "focal"
158158
component: "main"
159-
gpg_key: "erlang.gpg"
159+
gpg_key: "erlang-ppa.gpg"
160160
grafana:
161161
url: "https://packages.grafana.com/oss/deb"
162162
suite: "stable"
@@ -210,10 +210,10 @@ ubuntu-aarch64:
210210
component: "main"
211211
gpg_key: "elasticsearch.asc"
212212
erlang:
213-
url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu"
213+
url: "https://ppa.launchpadcontent.net/rabbitmq/rabbitmq-erlang/ubuntu"
214214
suite: "focal"
215215
component: "main"
216-
gpg_key: "erlang.gpg"
216+
gpg_key: "erlang-ppa.gpg"
217217
grafana:
218218
url: "https://packages.grafana.com/oss/deb"
219219
suite: "stable"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
RabbitMQ version has been updated to 3.9 and ERLang has been updated to 25.
5+
Previously used versions (3.8 and 23) have been marked as end-of-life and
6+
are not supported anymore as of August 2022.

0 commit comments

Comments
 (0)