Skip to content

Commit 4c78630

Browse files
committed
splitting build customizations
1 parent f2b8ea9 commit 4c78630

2 files changed

Lines changed: 24 additions & 13 deletions

File tree

etc/kayobe/kolla.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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,10 @@ 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+
526532
kolla_build_customizations_ubuntu: {}
527533

528534
# Dict mapping image customization variable names to their values.
@@ -531,7 +537,7 @@ kolla_build_customizations_ubuntu: {}
531537
# Hyphens in the image name must be replaced with underscores. The
532538
# customization is most commonly packages. The operation should be one of
533539
# override, append or remove. The value should be a list.
534-
kolla_build_customizations: "{{ kolla_build_customizations_common | combine(kolla_build_customizations_rocky if kolla_base_distro == 'rocky' else kolla_build_customizations_ubuntu) }}"
540+
kolla_build_customizations: "{{ kolla_build_customizations_common | combine((kolla_build_customizations_rocky | to_yaml) if kolla_base_distro == 'rocky' else kolla_build_customizations_ubuntu) }}"
535541

536542
# Dict mapping Kolla Dockerfile ARG names to their values.
537543
kolla_build_args: {}

etc/kayobe/pulp.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,17 @@ stackhpc_pulp_images_kolla:
682682
- rabbitmq-4-1
683683
- redis
684684
- redis-sentinel
685+
# - valkey-server
686+
# - valkey-sentinel
685687

686688
# List of images for each base distribution which should not/cannot be built.
687689
stackhpc_kolla_unbuildable_images:
688-
ubuntu-noble: []
689-
rocky-9: []
690-
rocky-10: []
690+
ubuntu-noble: {}
691+
rocky-9: {}
692+
rocky-10:
693+
- redis
694+
- redis-sentinel
695+
# While we wait for valkey backport to 2025.1
691696

692697
# Whitespace-separated list of regular expressions matching Kolla image names.
693698
# Usage is similar to kolla-build CLI arguments.

0 commit comments

Comments
 (0)