Skip to content

Commit

Permalink
Revert "CentOS/Rocky: use CentOS Cloud SIG repo instead of Delorean (…
Browse files Browse the repository at this point in the history
…Dalmatian)"

This reverts commit db0f87d.

Reason for revert: Epoxy cycle is on

Change-Id: Ie2a747223b33039684650bede8863af0c8906d2f
  • Loading branch information
mnasiadka committed Nov 29, 2024
1 parent db0f87d commit 08a9780
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 25 deletions.
16 changes: 14 additions & 2 deletions docker/base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
] %}

{% set base_centos_yum_repo_packages = [
'centos-release-openstack-dalmatian',
'centos-release-ceph-reef',
'centos-release-nfv-openvswitch',
'centos-release-opstools',
'epel-release',
] %}
Expand All @@ -148,13 +149,24 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
'centos-ceph-reef',
'centos-nfv-openvswitch',
'centos-opstools',
'centos-rabbitmq-38',
'centos9-nfv-ovs',
'centos9-opstools',
'centos9-rabbitmq',
'centos9-storage',
'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 -%}
Expand Down
8 changes: 0 additions & 8 deletions docker/base/ci-centos.repo
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1

[centos-openstack-dalmatian]
name=(OpenDev mirror) CentOS-$releasever - OpenStack Dalmatian
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-dalmatian/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/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/
Expand Down
8 changes: 0 additions & 8 deletions docker/base/ci-rocky.repo
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV
module_hotfixes=1

[centos-openstack-dalmatian]
name=(OpenDev mirror) CentOS-$releasever - OpenStack Dalmatian
baseurl=http://MIRROR/centos-stream/SIGs/$stream/cloud/$basearch/openstack-dalmatian/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/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/
Expand Down
6 changes: 5 additions & 1 deletion kolla/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
}
OPENSTACK_RELEASE = 'master'

# This is noarch repository so we will use it on all architectures
DELOREAN_DEPS = "https://trunk.rdoproject.org/centos9-master/" \
"delorean-deps.repo"

# TODO(mandre) check for file integrity instead of downloading from an HTTPS
# source
TARBALLS_BASE = "https://tarballs.opendev.org"
Expand Down Expand Up @@ -278,7 +282,7 @@
help=('Set the package type of the distro. If not set then '
'the packaging type is set to "rpm" if a RHEL based '
'distro and "deb" if a Debian based distro.')),
cfg.ListOpt('rpm_setup_config', default=[],
cfg.ListOpt('rpm_setup_config', default=[DELOREAN_DEPS],
help=('Comma separated list of .rpm or .repo file(s) '
'or URL(s) to install before building containers')),
cfg.StrOpt('apt_sources_list', help=('Path to custom sources.list')),
Expand Down
5 changes: 0 additions & 5 deletions releasenotes/notes/rdo-dalmatian-bab7a517c219cb23.yaml

This file was deleted.

14 changes: 13 additions & 1 deletion tests/templates/template_overrides.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ 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 -%}
Expand Down Expand Up @@ -104,7 +113,10 @@ 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
fi; \
sed -i \
-e "s|{{ nodepool_rdo_proxy }}|https://trunk.rdoproject.org|g" \
/etc/yum.repos.d/delorean*.repo
{% 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|" \
Expand Down

0 comments on commit 08a9780

Please sign in to comment.