Skip to content

Commit fcff57b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Dalmatian)"
2 parents 7ee20ff + db0f87d commit fcff57b

File tree

6 files changed

+25
-32
lines changed

6 files changed

+25
-32
lines changed

docker/base/Dockerfile.j2

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

131131
{% set base_centos_yum_repo_packages = [
132-
'centos-release-ceph-reef',
133-
'centos-release-nfv-openvswitch',
132+
'centos-release-openstack-dalmatian',
134133
'centos-release-opstools',
135134
'epel-release',
136135
] %}
@@ -149,24 +148,13 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
149148
'centos-ceph-reef',
150149
'centos-nfv-openvswitch',
151150
'centos-opstools',
152-
'centos9-nfv-ovs',
153-
'centos9-opstools',
154-
'centos9-rabbitmq',
155-
'centos9-storage',
151+
'centos-rabbitmq-38',
156152
'epel',
157153
'influxdb',
158154
'opensearch-2.x',
159155
'opensearch-dashboards-2.x',
160156
] %}
161157

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

172160
{%- 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ 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+
5664
[centos-opstools]
5765
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
5866
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

docker/base/ci-rocky.repo

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ 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+
1624
[centos-opstools]
1725
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
1826
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

kolla/common/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
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-dalmatian/" \
44-
"delorean-deps.repo"
45-
4642
# TODO(mandre) check for file integrity instead of downloading from an HTTPS
4743
# source
4844
TARBALLS_BASE = "https://tarballs.opendev.org"
@@ -282,7 +278,7 @@
282278
help=('Set the package type of the distro. If not set then '
283279
'the packaging type is set to "rpm" if a RHEL based '
284280
'distro and "deb" if a Debian based distro.')),
285-
cfg.ListOpt('rpm_setup_config', default=[DELOREAN_DEPS],
281+
cfg.ListOpt('rpm_setup_config', default=[],
286282
help=('Comma separated list of .rpm or .repo file(s) '
287283
'or URL(s) to install before building containers')),
288284
cfg.StrOpt('apt_sources_list', help=('Path to custom sources.list')),
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
RHEL derivates images now use RDO Dalmatian release for OpenStack services
5+
dependencies.

tests/templates/template_overrides.j2

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ 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 %}
6253

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

0 commit comments

Comments
 (0)