Skip to content

Commit 9ebd51f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (Bobcat)""
2 parents 5b49f4b + 559955d commit 9ebd51f

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
@@ -130,7 +130,8 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
130130
] %}
131131

132132
{% set base_centos_yum_repo_packages = [
133-
'centos-release-openstack-bobcat',
133+
'centos-release-ceph-quincy',
134+
'centos-release-nfv-openvswitch',
134135
'centos-release-opstools',
135136
'epel-release',
136137
] %}
@@ -149,13 +150,24 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
149150
'centos-ceph-reef',
150151
'centos-nfv-openvswitch',
151152
'centos-opstools',
152-
'centos-rabbitmq-38',
153+
'centos9-nfv-ovs',
154+
'centos9-opstools',
155+
'centos9-rabbitmq',
156+
'centos9-storage',
153157
'epel',
154158
'influxdb',
155159
'opensearch-2.x',
156160
'opensearch-dashboards-2.x',
157161
] %}
158162

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

161173
{%- 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-bobcat]
57-
name=(OpenDev mirror) CentOS-$releasever - OpenStack Bobcat
58-
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-bobcat/
59-
gpgcheck=1
60-
enabled=1
61-
gpgkey=file:///etc/pki/rpm-gpg/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-bobcat]
17-
name=(OpenDev mirror) CentOS-$releasever - OpenStack Bobcat
18-
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-bobcat/
19-
gpgcheck=1
20-
enabled=1
21-
gpgkey=file:///etc/pki/rpm-gpg/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
@@ -38,6 +38,10 @@
3838
}
3939
OPENSTACK_RELEASE = 'master'
4040

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

releasenotes/notes/rdo-bobcat-dcd82366ea4aea04.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)