@@ -393,14 +393,14 @@ kolla_build_blocks:
393393 -e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}; \
394394 fi{% if not loop.last %} &&{% endif %} \
395395 {% endfor %}
396- # NOTE(bbezak): RDO epoxy repo obsoletes many OVN versions
397- # (see rdo-openvswitch.spec obsolete_ovn_versions:
398- # https://git.centos.org/rpms/rdo-openvswitch/blob/c9s-sig-cloud-openstack-epoxy/f/SPECS/rdo-openvswitch.spec#L10),
399- # which would replace our NFV OVS and OVN 24.03 LTS with 24.09. Hence exclude RDO OVN/OVS.
400- && \
401- if [ -f /etc/yum.repos.d/CentOS-OpenStack-epoxy.repo ]; then \
402- sed -i '/^\[centos-openstack-epoxy\]/a excludepkgs=*rdo-ovn*,*rdo-openvswitch*' /etc/yum.repos.d/CentOS-OpenStack-epoxy.repo; \
403- fi \
396+ # NOTE(bbezak): RDO epoxy repo obsoletes many OVN versions
397+ # (see rdo-openvswitch.spec obsolete_ovn_versions:
398+ # https://git.centos.org/rpms/rdo-openvswitch/blob/c9s-sig-cloud-openstack-epoxy/f/SPECS/rdo-openvswitch.spec#L10),
399+ # which would replace our NFV OVS and OVN 24.03 LTS with 24.09. Hence exclude RDO OVN/OVS.
400+ && \
401+ if [ -f /etc/yum.repos.d/CentOS-OpenStack-epoxy.repo ]; then \
402+ sed -i '/^\[centos-openstack-epoxy\]/a excludepkgs=*rdo-ovn*,*rdo-openvswitch*' /etc/yum.repos.d/CentOS-OpenStack-epoxy.repo; \
403+ fi \
404404 {% endif %}
405405 # With the UCA keyring installed we can now add all repos.
406406 base_ubuntu_package_sources_list : |
@@ -470,7 +470,9 @@ kolla_build_customizations_common:
470470 - python3-ethtool
471471 neutron_mlnx_agent_pip_packages_override :
472472 - networking-mlnx@git+https://opendev.org/x/networking-mlnx@master
473- kolla_build_customizations_rocky :
473+ # TODO(owenjones): these are specific to RL9? Maybe we need to derive a second set
474+ # of customisations and switch between them
475+ kolla_build_customizations_rocky_9 :
474476 base_centos_yum_repo_packages_append :
475477 - centos-release-ceph-squid
476478 base_centos_yum_repo_packages_remove :
@@ -523,6 +525,15 @@ kolla_build_customizations_rocky:
523525 ovn_sb_db_server_packages_override :
524526 - ovn24.03-central
525527
528+ kolla_build_customizations_rocky_10 : {}
529+
530+ kolla_build_customizations_rocky : |
531+ {% if kolla_base_distro_version == '9' %}
532+ {{ kolla_build_customizations_rocky_9 | to_yaml }}
533+ {% elif kolla_base_distro_version == '10' %}
534+ {{ kolla_build_customizations_rocky_10 | to_yaml }}
535+ {% endif %}
536+
526537kolla_build_customizations_ubuntu : {}
527538
528539# Dict mapping image customization variable names to their values.
0 commit comments