Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .zuul.d/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
- kolla-build-debian
- kolla-build-debian-podman
- kolla-ansible-debian
- kolla-ansible-debian-upgrade:
voting: false
- kolla-ansible-debian-upgrade
check-arm64:
jobs:
- kolla-build-debian-aarch64
Expand All @@ -16,7 +15,7 @@
- kolla-build-debian
- kolla-build-debian-podman
- kolla-ansible-debian
# - kolla-ansible-debian-upgrade
- kolla-ansible-debian-upgrade
periodic:
jobs:
- kolla-publish-debian-quay
Expand Down
15 changes: 4 additions & 11 deletions doc/source/admin/image-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -683,23 +683,16 @@ Red Hat

Kolla allows the operator to build containers using custom repos.
The repos are accepted as a list of comma separated values and can be in the
form of ``.repo``, ``.rpm``, or a url. See examples below.

To use current RDO packages (aka Delorean or DLRN), update ``rpm_setup_config``
in ``kolla-build.conf``:

.. path /etc/kolla/kolla-build.conf
.. code-block:: ini

rpm_setup_config = https://trunk.rdoproject.org/centos8/current/delorean.repo,https://trunk.rdoproject.org/centos8/delorean-deps.repo
form of ``.repo``, ``.rpm``, or a url.

If specifying a ``.repo`` file, each ``.repo`` file will need to exist in the
same directory as the base Dockerfile (``kolla/docker/base``):
same directory as the base Dockerfile (``kolla/docker/base``) or you need to
specify a url:

.. path kolla/docker/base
.. code-block:: ini

rpm_setup_config = epel.repo,delorean.repo,delorean-deps.repo
rpm_setup_config = epel.repo,https://remote-server.com/your-repo.repo

Debian / Ubuntu
^^^^^^^^^^^^^^^
Expand Down
17 changes: 0 additions & 17 deletions doc/source/contributor/release-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@ R-8: Switch images to current release
.. note:: Debian does not provide repositories for the in-development release
until much later in the cycle.

* [kolla] Switch CentOS images to use the current in-development release
master RDO Delorean repository

* example: https://review.opendev.org/c/openstack/kolla/+/804269

* [kolla] Switch Ubuntu images to use the current in-development release
Ubuntu Cloud Archive (UCA) repository

Expand Down Expand Up @@ -237,11 +232,6 @@ Prior to creating an RC1 release candidate:

* example: TODO

* [kolla] Switch CentOS images to use the current in-development release
stable RDO Delorean repository

* example: https://review.opendev.org/c/openstack/kolla/+/787339

R-0: Kolla & Kolla Ansible RC1 & stable branch creation
-------------------------------------------------------

Expand Down Expand Up @@ -407,13 +397,6 @@ Several tasks are required to finalise the stable branch for release.

* example: https://review.opendev.org/c/openstack/kolla-ansible/+/788292

* [kolla] Switch CentOS images to use the CentOS Cloud SIG repository for the
new release

.. note:: This needs to be done on the stable branch.

* example: https://review.opendev.org/c/openstack/kolla/+/788490

* [kolla] Switch Debian images to use the Debian OpenStack repository
for the new release

Expand Down
19 changes: 5 additions & 14 deletions docker/base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ ENV PS1="$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(ho
# enables to provide repo overrides at a later date in a simple fashion if we
# desire such functionality. I think we will :)

ENV KOLLA_RPM_OVS_VERSION=3.5 \
KOLLA_RPM_OVN_VERSION=25.03

RUN cat /tmp/kolla_bashrc >> /etc/bashrc \
&& sed -i 's|^\(override_install_langs=.*\)|# \1|' /etc/dnf/dnf.conf

Expand Down Expand Up @@ -142,29 +145,15 @@ RUN rm -f /etc/rpm/macros.image-language-conf \
{% set base_centos_yum_repos_to_enable = [
] %}

# FIXME(hrw): entries not starting with 'centos-' (and 'centos-nfv-ovs') are
# from delorean or rdo-release-* package
# https://review.rdoproject.org/r/c/rdo-infra/ansible-role-dlrn/+/33241
{% set base_centos_yum_repos_to_disable = [
'centos-ceph-squid',
'centos-nfv-openvswitch',
'centos10-nfv-ovs',
'centos10-rabbitmq',
'centos10-storage',
'epel',
'influxdb',
'opensearch-3.x',
'opensearch-dashboards-3.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 Expand Up @@ -207,7 +196,9 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
] %}

# Install base packages
{{ macros.enable_extra_repos(['epel']) }}
{{ macros.install_packages( base_centos_packages | customizable("centos_packages") | customizable("centos_binary_packages") | customizable("centos_source_packages") ) }}
{{ macros.disable_extra_repos(['epel']) }}

{# endif for base_package_type rpm #}
{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/base/sources.list.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deb mirror://mirrors.ubuntu.com/mirrors.txt noble-security main universe

# We need to add the repo for the updated packages they provide. The main ones
# are qemu, libvirt, and openvswitch.
deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/epoxy main
deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/flamingo main

# NOTE(hrw): extra repositories are added into image when they are needed as
# separate files in /etc/apt/sources.list.d/ directory. For that purpose they
Expand Down
2 changes: 1 addition & 1 deletion docker/base/sources.list.ubuntu.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deb http://ports.ubuntu.com/ noble-backports main universe

# We need to add the repo for the updated packages they provide. The main ones
# are qemu, libvirt, and openvswitch.
deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/epoxy main
deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/flamingo main

# NOTE(hrw): extra repositories are added into image when they are needed as
# separate files in /etc/apt/sources.list.d/ directory. For that purpose they
Expand Down
4 changes: 2 additions & 2 deletions docker/kolla-toolbox/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.configure_user(name='ansible') }}
{{ macros.configure_user(name='rabbitmq') }}

{{ macros.enable_extra_repos(['crb', 'erlang', 'openvswitch', 'rabbitmq']) }}
{{ macros.enable_extra_repos(['crb', 'epel', 'erlang', 'openvswitch', 'rabbitmq']) }}

{% block rabbitmq_apt_preferences %}
{% if base_package_type == 'deb' %}
Expand All @@ -34,7 +34,7 @@ COPY apt_preferences_rabbitmq.{{ base_distro }} /etc/apt/preferences.d/rabbitmq
'make',
'openssh-clients',
'openssl-devel',
'openvswitch',
'openvswitch${KOLLA_RPM_OVS_VERSION}',
'python3',
'python3-devel',
'rabbitmq-server-4.1.*'
Expand Down
2 changes: 1 addition & 1 deletion docker/kuryr/kuryr-libnetwork/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}

{% set kuryr_libnetwork_packages = [
'openvswitch'
'openvswitch${KOLLA_RPM_OVS_VERSION}'
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/manila/manila-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}

{% set manila_base_packages = ['openvswitch'] %}
{% set manila_base_packages = ['openvswitch${KOLLA_RPM_OVS_VERSION}'] %}

{% elif base_package_type == 'deb' %}

Expand Down
4 changes: 2 additions & 2 deletions docker/neutron/neutron-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'iputils',
'keepalived',
'net-tools',
'openvswitch',
'python3-openvswitch',
'openvswitch${KOLLA_RPM_OVS_VERSION}',
'python3-openvswitch${KOLLA_RPM_OVS_VERSION}',
'radvd',
'uuid'
] %}
Expand Down
4 changes: 2 additions & 2 deletions docker/nova/nova-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}

{% set nova_base_packages = [
'openvswitch',
'python3-openvswitch'
'openvswitch${KOLLA_RPM_OVS_VERSION}',
'python3-openvswitch${KOLLA_RPM_OVS_VERSION}'
] %}
{% if base_arch == 'x86_64' %}
{% set nova_base_packages = nova_base_packages + [
Expand Down
2 changes: 1 addition & 1 deletion docker/nova/nova-libvirt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
'libvirt-daemon-config-nwfilter',
'libvirt-daemon-driver-nwfilter',
'libvirt-daemon-driver-nodedev',
'openvswitch',
'openvswitch${KOLLA_RPM_OVS_VERSION}',
'qemu-img',
'qemu-kvm',
'swtpm',
Expand Down
16 changes: 13 additions & 3 deletions docker/octavia/octavia-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.enable_extra_repos(['openvswitch']) }}
{{ macros.configure_user(name='octavia') }}

{% set octavia_base_packages = [
'python3-openvswitch'
] %}
{% if base_package_type == 'rpm' %}

{% set octavia_base_packages = [
'python3-openvswitch${KOLLA_RPM_OVS_VERSION}'
] %}

{% elif base_package_type == 'deb' %}

{% set octavia_base_packages = [
'python3-openvswitch'
] %}

{% endif %}

{{ macros.install_packages(octavia_base_packages | customizable("packages")) }}

Expand Down
2 changes: 1 addition & 1 deletion docker/openstack-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% import "macros.j2" as macros with context %}

{{ macros.enable_extra_repos(['crb']) }}
{{ macros.enable_extra_repos(['crb', 'epel']) }}

{% if base_package_type == 'rpm' %}
{% set openstack_base_packages = [
Expand Down
6 changes: 2 additions & 4 deletions docker/openvswitch/openvswitch-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}
{% set openvswitch_base_packages = [
'libibverbs',
'openvswitch',
'python3-netifaces',
'python3-openvswitch',
'openvswitch${KOLLA_RPM_OVS_VERSION}',
'python3-openvswitch${KOLLA_RPM_OVS_VERSION}',
'tcpdump'
] %}
{% elif base_package_type == 'deb' %}
{% set openvswitch_base_packages = [
'openvswitch-switch',
'python3-openvswitch',
'python3-netifaces',
'tcpdump'
] %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion docker/ovn/ovn-base/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}
{% set ovn_base_packages = [
'openvswitch-ovn-common',
'ovn${KOLLA_RPM_OVN_VERSION}',
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/ovn/ovn-controller/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}
{% set ovn_controller_packages = [
'openvswitch-ovn-host'
'ovn${KOLLA_RPM_OVN_VERSION}-host'
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/ovn/ovn-nb-db-server/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}
{% set ovn_nb_db_server_packages = [
'openvswitch-ovn-central',
'ovn${KOLLA_RPM_OVN_VERSION}-central',
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/ovn/ovn-northd/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}
{% set ovn_northd_packages = [
'openvswitch-ovn-central',
'ovn${KOLLA_RPM_OVN_VERSION}-central',
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/ovn/ovn-sb-db-server/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build

{% if base_package_type == 'rpm' %}
{% set ovn_sb_db_server_packages = [
'openvswitch-ovn-central',
'ovn${KOLLA_RPM_OVN_VERSION}-central',
] %}

{% elif base_package_type == 'deb' %}
Expand Down
2 changes: 1 addition & 1 deletion docker/zun/zun-cni-daemon/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% if base_package_type == 'rpm' %}

{% set zun_cni_daemon_packages = [
'openvswitch'
'openvswitch${KOLLA_RPM_OVS_VERSION}'
] %}

{% elif base_package_type == 'deb' %}
Expand Down
6 changes: 1 addition & 5 deletions kolla/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
}
OPENSTACK_RELEASE = 'master'

# This is noarch repository so we will use it on all architectures
DELOREAN_DEPS = "https://trunk.rdoproject.org/centos10-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 @@ -283,7 +279,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=[DELOREAN_DEPS],
cfg.ListOpt('rpm_setup_config', default=[],
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: 5 additions & 0 deletions releasenotes/notes/drop-delorean-c0bd3229162faef0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
upgrade:
- |
Drops requirement to use ``Delorean/CentOS Cloud SIG`` repositories in
rpm-based images.
6 changes: 0 additions & 6 deletions roles/kolla-build-deps/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
owner: zuul
group: zuul

- name: Dump host info to logs
ansible.builtin.command: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tools/dump_info.sh"
args:
chdir: "{{ kolla_logs_dir }}"
changed_when: true

- name: Create dir for kolla build logs
ansible.builtin.file:
path: "{{ kolla_build_logs_dir }}"
Expand Down
6 changes: 0 additions & 6 deletions tests/playbooks/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
- name: Zuul post
hosts: all
tasks:
- name: Dump host info to logs
ansible.builtin.command: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tools/dump_info.sh"
args:
chdir: "{{ kolla_logs_dir }}"
changed_when: true

- name: Collect various info to logs
changed_when: true
ansible.builtin.shell:
Expand Down
Loading