CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean

Antelope was released, landed in CentOS repo, time to use it.

Change-Id: I9fa8fd5dd9b75251363f1957d1e249e7cb4beb84
This commit is contained in:
Michal Nasiadka 2023-05-08 13:27:44 +02:00
parent d965b1b3da
commit 881e3925c7
5 changed files with 20 additions and 29 deletions

View File

@ -132,8 +132,7 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
] %}
{% set base_centos_yum_repo_packages = [
'centos-release-ceph-quincy',
'centos-release-nfv-openvswitch',
'centos-release-openstack-antelope',
'centos-release-opstools',
'epel-release',
] %}
@ -152,24 +151,13 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
'centos-ceph-quincy',
'centos-nfv-openvswitch',
'centos-opstools',
'centos9-nfv-ovs',
'centos9-opstools',
'centos9-rabbitmq',
'centos9-storage',
'centos-rabbitmq-38',
'epel',
'influxdb',
'opensearch-2.x',
'opensearch-dashboards-2.x',
] %}
{% if base_arch == 'aarch64' %}
{# NOTE(hrw): delorean-deps.repo may force x86-64 repos #}
RUN sed -i -e "s/x86_64/aarch64/g" /etc/yum.repos.d/delorean-deps.repo
{% endif %}
RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("centos_yum_repo_packages"), chain=True, clean=False) }}
{%- for repo in base_centos_yum_repos_to_enable | customizable('centos_yum_repos_to_enable') %} && dnf config-manager --enable {{ repo }} {% endfor -%}

View File

@ -53,6 +53,14 @@ enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1
[centos-openstack-antelope]
name=(OpenDev mirror) CentOS-$releasever - OpenStack Antelope
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-antelope/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
module_hotfixes=1
[centos-opstools]
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

View File

@ -13,6 +13,14 @@ enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1
[centos-openstack-antelope]
name=(OpenDev mirror) CentOS-$releasever - OpenStack Antelope
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-antelope/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
module_hotfixes=1
[centos-opstools]
name=(OpenDev mirror) CentOS Stream $releasever - OpsTools - collectd
baseurl=http://MIRROR/centos-stream/SIGs/$stream/opstools/$basearch/collectd-5/

View File

@ -39,8 +39,7 @@ DISTRO_PRETTY_NAME = {
OPENSTACK_RELEASE = '2023.1'
# This is noarch repository so we will use it on all architectures
DELOREAN_DEPS = "https://trunk.rdoproject.org/centos9-master/" \
"delorean-deps.repo"
DELOREAN_DEPS = ""
# TODO(mandre) check for file integrity instead of downloading from an HTTPS
# source

View File

@ -50,15 +50,6 @@ RUN cd /etc/yum.repos.d/ && mkdir not-for-ci/ \
{% endif %} {# if centos/rocky #}
{% raw %}
{% block base_centos_repo_overrides_post_rpm %}
{% endraw %}
RUN sed -i \
-e "s|https://trunk.rdoproject.org|{{ nodepool_rdo_proxy }}|g" \
/etc/yum.repos.d/delorean*.repo
{% raw %}
{% endblock %}
{% block base_centos_repo_overrides_post_yum -%}
{%- endraw -%}
@ -114,10 +105,7 @@ RUN if [ -d /etc/yum.repos.d/not-for-ci/ ]; then \
rm ci-{{ base_distro }}.repo && \
mv not-for-ci/*.repo . && \
rm -rf not-for-ci; \
fi; \
sed -i \
-e "s|{{ nodepool_rdo_proxy }}|https://trunk.rdoproject.org|g" \
/etc/yum.repos.d/delorean*.repo
fi
{% elif base_distro == "debian" %}
RUN sed -i -e "s|\[trusted=yes\] http://{{ nodepool_mirror_host }}|http://deb.debian.org|" \
-e "s|\[trusted=yes\] http://{{ nodepool_mirror_host }}|http://security.debian.org|" \