Skip to content

Commit 37d68ab

Browse files
committed
[stable] Use versioned Erlang 26 and 27 repo on aarch64
In stable branches we need both Erlang 26.2 (RabbitMQ 3.13) and Erlang 27 (RabbitMQ 4.1). Follows [1], adapted for stable branches where both versions are required. [1] https://review.opendev.org/c/openstack/kolla/+/959135 Change-Id: Ied94e0fac36e60cbf227eb9105f659adc1500545 Signed-off-by: Bartosz Bezak <[email protected]> (cherry picked from commit 688c3c7)
1 parent d087010 commit 37d68ab

File tree

6 files changed

+27
-8
lines changed

6 files changed

+27
-8
lines changed

doc/source/contributor/versions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ information about package sources.
4747
.. _`Team RabbitMQ 'Cloudsmith' repo (Deb)`: https://www.rabbitmq.com/install-debian.html#apt-cloudsmith
4848
.. _`Team RabbitMQ 'Modern Erlang' PPA`: https://launchpad.net/~rabbitmq/+archive/ubuntu/rabbitmq-erlang
4949
.. _`Team RabbitMQ 'Cloudsmith' repo (RPM)`: https://www.rabbitmq.com/docs/install-rpm#cloudsmith
50-
.. _`openstack-kolla COPR`: https://copr.fedorainfracloud.org/coprs/g/openstack-kolla/rabbitmq-erlang/
50+
.. _`openstack-kolla COPR`: https://copr.fedorainfracloud.org/coprs/g/openstack-kolla/rabbitmq-erlang-26/
5151

5252
.. _`Grafana install guide`: https://grafana.com/grafana/download?platform=linux&edition=oss
5353
.. _`MariaDB Community downloads`: https://mariadb.com/downloads/community/

docker/base/Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ COPY dnf.conf /etc/dnf/dnf.conf
7676

7777
{% elif base_arch == 'aarch64' %}
7878
{% set base_yum_repo_files = base_yum_repo_files + [
79-
'copr-rabbitmq-erlang.repo',
79+
'copr-rabbitmq-erlang-26.repo',
80+
'copr-rabbitmq-erlang-27.repo',
8081
] %}
8182

8283
{#

docker/base/copr-rabbitmq-erlang.repo renamed to docker/base/copr-rabbitmq-erlang-26.repo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# from https://github.com/rabbitmq/erlang-rpm/
33
# Thanks to COPR we have aarch64 packages for Rocky Linux
44

5-
[copr-rabbitmq-erlang]
6-
name=openstack-kolla COPR with Erlang build for RabbitMQ
7-
baseurl=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang/rhel-$releasever-aarch64/
5+
[copr-rabbitmq-erlang-26]
6+
name=openstack-kolla COPR with Erlang 26 build for RabbitMQ
7+
baseurl=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang-26/rhel-$releasever-aarch64/
88
gpgcheck=1
99
enabled=0
10-
gpgkey=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang/pubkey.gpg
10+
gpgkey=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang-26/pubkey.gpg
1111
repo_gpgcheck=0
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 Rocky Linux
4+
5+
[copr-rabbitmq-erlang-27]
6+
name=openstack-kolla COPR with Erlang 27 build for RabbitMQ
7+
baseurl=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang-27/rhel-$releasever-aarch64/
8+
gpgcheck=1
9+
enabled=0
10+
gpgkey=https://download.copr.fedorainfracloud.org/results/@openstack-kolla/rabbitmq-erlang-27/pubkey.gpg
11+
repo_gpgcheck=0

kolla/template/repos.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ centos-aarch64:
2121
ceph: "centos-ceph-reef"
2222
crb: "crb"
2323
epel: "epel"
24-
erlang: "copr-rabbitmq-erlang"
24+
erlang-26: "copr-rabbitmq-erlang-26"
25+
erlang-27: "copr-rabbitmq-erlang-27"
2526
extras: "extras"
2627
fluentd: "fluent-package-lts"
2728
grafana: "grafana"
@@ -167,7 +168,8 @@ rocky-aarch64:
167168
ceph: "centos-ceph-reef"
168169
crb: "crb"
169170
epel: "epel"
170-
erlang: "copr-rabbitmq-erlang"
171+
erlang-26: "copr-rabbitmq-erlang-26"
172+
erlang-27: "copr-rabbitmq-erlang-27"
171173
extras: "extras"
172174
fluentd: "fluent-package-lts"
173175
grafana: "grafana"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
Switches Erlang RPMs on aarch64 to a versioned Erlang 26 or 27 repository,
5+
due to Fedora COPR not supporting multiple package versions in one repo.

0 commit comments

Comments
 (0)