Skip to content

Commit 33f5eb2

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Dalmatian)""
2 parents f57457f + 08a9780 commit 33f5eb2

File tree

6 files changed

+32
-25
lines changed

6 files changed

+32
-25
lines changed

docker/base/Dockerfile.j2

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
128128
] %}
129129

130130
{% set base_centos_yum_repo_packages = [
131-
'centos-release-openstack-dalmatian',
131+
'centos-release-ceph-reef',
132+
'centos-release-nfv-openvswitch',
132133
'centos-release-opstools',
133134
'epel-release',
134135
] %}
@@ -147,13 +148,24 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
147148
'centos-ceph-reef',
148149
'centos-nfv-openvswitch',
149150
'centos-opstools',
150-
'centos-rabbitmq-38',
151+
'centos9-nfv-ovs',
152+
'centos9-opstools',
153+
'centos9-rabbitmq',
154+
'centos9-storage',
151155
'epel',
152156
'influxdb',
153157
'opensearch-2.x',
154158
'opensearch-dashboards-2.x',
155159
] %}
156160

161+
{% if base_arch == 'aarch64' %}
162+
163+
{# NOTE(hrw): delorean-deps.repo may force x86-64 repos #}
164+
165+
RUN sed -i -e "s/x86_64/aarch64/g" /etc/yum.repos.d/delorean-deps.repo
166+
167+
{% endif %}
168+
157169
RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("centos_yum_repo_packages"), chain=True, clean=False) }}
158170

159171
{%- for repo in base_centos_yum_repos_to_enable | customizable('centos_yum_repos_to_enable') %} && dnf config-manager --enable {{ repo }} {% endfor -%}

docker/base/ci-centos.repo

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ enabled=0
5353
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
5454
module_hotfixes=1
5555

56-
[centos-openstack-dalmatian]
57-
name=(OpenDev mirror) CentOS-$releasever - OpenStack Dalmatian
58-
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-dalmatian/
59-
gpgcheck=1
60-
enabled=1
61-
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Cloud
62-
module_hotfixes=1
63-
6456
[centos-opstools]
6557
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
6658
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

docker/base/ci-rocky.repo

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ enabled=0
1313
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
1414
module_hotfixes=1
1515

16-
[centos-openstack-dalmatian]
17-
name=(OpenDev mirror) CentOS-$releasever - OpenStack Dalmatian
18-
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-dalmatian/
19-
gpgcheck=1
20-
enabled=1
21-
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Cloud
22-
module_hotfixes=1
23-
2416
[centos-opstools]
2517
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
2618
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

kolla/common/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
}
4040
OPENSTACK_RELEASE = '2024.2'
4141

42+
# This is noarch repository so we will use it on all architectures
43+
DELOREAN_DEPS = "https://trunk.rdoproject.org/centos9-master/" \
44+
"delorean-deps.repo"
45+
4246
# TODO(mandre) check for file integrity instead of downloading from an HTTPS
4347
# source
4448
TARBALLS_BASE = "https://tarballs.opendev.org"
@@ -280,7 +284,7 @@
280284
help=('Set the package type of the distro. If not set then '
281285
'the packaging type is set to "rpm" if a RHEL based '
282286
'distro and "deb" if a Debian based distro.')),
283-
cfg.ListOpt('rpm_setup_config', default=[],
287+
cfg.ListOpt('rpm_setup_config', default=[DELOREAN_DEPS],
284288
help=('Comma separated list of .rpm or .repo file(s) '
285289
'or URL(s) to install before building containers')),
286290
cfg.StrOpt('apt_sources_list', help=('Path to custom sources.list')),

releasenotes/notes/rdo-dalmatian-bab7a517c219cb23.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/templates/template_overrides.j2

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ RUN cd /etc/yum.repos.d/ && mkdir not-for-ci/ \
5050
{% endif %} {# if centos/rocky #}
5151

5252
{% raw %}
53+
{% block base_centos_repo_overrides_post_rpm %}
54+
{% endraw %}
55+
56+
RUN sed -i \
57+
-e "s|https://trunk.rdoproject.org|{{ nodepool_rdo_proxy }}|g" \
58+
/etc/yum.repos.d/delorean*.repo
59+
60+
{% raw %}
61+
{% endblock %}
5362

5463
{% block base_centos_repo_overrides_post_yum -%}
5564
{%- endraw -%}
@@ -104,7 +113,10 @@ RUN if [ -d /etc/yum.repos.d/not-for-ci/ ]; then \
104113
rm ci-{{ base_distro }}.repo && \
105114
mv not-for-ci/*.repo . && \
106115
rm -rf not-for-ci; \
107-
fi
116+
fi; \
117+
sed -i \
118+
-e "s|{{ nodepool_rdo_proxy }}|https://trunk.rdoproject.org|g" \
119+
/etc/yum.repos.d/delorean*.repo
108120
{% elif base_distro == "debian" %}
109121
RUN sed -i -e "s|\[trusted=yes\] http://{{ nodepool_mirror_host }}|http://deb.debian.org|" \
110122
-e "s|\[trusted=yes\] http://{{ nodepool_mirror_host }}|http://security.debian.org|" \

0 commit comments

Comments
 (0)