Skip to content

Commit 17b6c17

Browse files
committed
2025.1 Fix kayobe container image builds & pin OVS
1 parent c9c3eba commit 17b6c17

File tree

7 files changed

+36
-18
lines changed

7 files changed

+36
-18
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ jobs:
198198
- name: Create build logs output directory
199199
run: mkdir image-build-logs
200200

201+
- name: Write apt config to file
202+
run: |
203+
cat > stackhpc-apt-preferences <<EOF
204+
Package: openvswitch-switch openvswitch-common openvswitch-common-dpdk python3-openvswitch
205+
Pin: version 3.3.*
206+
Pin-Priority: 1001
207+
EOF
208+
201209
- name: Build kolla overcloud images
202210
id: build_overcloud_images
203211
continue-on-error: true

etc/kayobe/apt.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ apt_repositories: "{{ stackhpc_apt_repositories | selectattr('required') | list
7676
# * filename: name of a file in /etc/apt/preferences.d/ in which to write
7777
# the configuration
7878
# Default is an empty list.
79-
#apt_preferences:
79+
apt_preferences:
80+
- content: |
81+
Package: openvswitch-switch openvswitch-common openvswitch-common-dpdk
82+
Pin: version 3.3.*
83+
Pin-Priority: 1001
84+
filename: stackhpc-openvswitch-lts-pin
8085
8186
# Whether to disable repositories in /etc/apt/sources.list. This may be used
8287
# when replacing the distribution repositories via apt_repositories.

etc/kayobe/kolla.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,24 +134,14 @@ kolla_sources:
134134
type: git
135135
location: https://github.com/stackhpc/magnum.git
136136
reference: stackhpc/{{ openstack_release }}
137-
neutron-base-plugin-networking-generic-switch:
138-
type: git
139-
location: https://github.com/stackhpc/networking-generic-switch.git
140-
reference: stackhpc/{{ openstack_release }}
141-
# FIXME: check whether we want to build from upstream master of a downstream
142-
# 2025.1 branch e.g.
143-
# location: https://github.com/stackhpc/networking-mlnx.git
144-
# reference: stackhpc/{{ openstack_release }}
145137
neutron-server-plugin-networking-mlnx:
146138
type: git
147-
location: https://opendev.org/x/networking-mlnx
148-
reference: master
139+
location: https://github.com/stackhpc/networking-mlnx.git
140+
reference: stackhpc/{{ openstack_release }}
149141
nova-compute-plugin-networking-mlnx:
150142
type: git
151-
location: https://opendev.org/x/networking-mlnx
152-
reference: master
153-
# FIXME: Check whether we want to build from downstream stackhpc/master,
154-
# stackhpc/2025.1, or upstream epoxy or master
143+
location: https://github.com/stackhpc/networking-mlnx.git
144+
reference: stackhpc/{{ openstack_release }}
155145
blazar-base:
156146
type: git
157147
location: https://github.com/stackhpc/blazar.git
@@ -360,7 +350,6 @@ kolla_build_customizations_common:
360350
- python3-ethtool
361351
neutron_mlnx_agent_pip_packages_override:
362352
- networking-mlnx@git+https://opendev.org/x/networking-mlnx@master
363-
364353
kolla_build_customizations_rocky:
365354
base_centos_yum_repo_packages_append:
366355
- centos-release-ceph-squid
@@ -369,6 +358,10 @@ kolla_build_customizations_rocky:
369358
base_centos_yum_repos_to_disable_remove:
370359
- centos-ceph-reef
371360
- epel
361+
- centos9-nfv-ovs
362+
- centos9-opstools
363+
- centos9-rabbitmq
364+
- centos9-storage
372365
kolla_toolbox_packages_remove:
373366
- openvswitch
374367
kolla_toolbox_packages_append:
@@ -389,6 +382,8 @@ kolla_build_customizations_rocky:
389382
nova_base_packages_append:
390383
- openvswitch3.3
391384
- python3-openvswitch3.3
385+
nova_libvirt_packages_remove:
386+
- openvswitch
392387
octavia_base_packages_remove:
393388
- python3-openvswitch
394389
openvswitch_base_packages_remove:

etc/kayobe/kolla/kolla-build.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
{# This tag should be updated when Ubuntu package repo snapshot versions are changed. #}
55
{% if kolla_base_distro == 'ubuntu' %}
66
base_tag = noble-20241118.1
7+
apt_preferences = /home/runner/_work/stackhpc-kayobe-config/stackhpc-kayobe-config/stackhpc-apt-preferences
78
{# Similarly pinning to Rocky 9 minor version used in our repos #}
89
{% elif kolla_base_distro == 'rocky' %}
910
base_tag = 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
11+
rpm_setup_config =
1012
{% endif %}
1113
build_args = {{ (kolla_build_args | default({})).items() | map('join', ':') | join(',') }}
1214

etc/kayobe/pulp-repo-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ stackhpc_pulp_repo_rhel_9_influxdb_version: 20250125T002237
1717
stackhpc_pulp_repo_rhel_9_mariadb_10_11_version: 20250205T001351
1818
stackhpc_pulp_repo_rhel_9_rabbitmq_erlang_version: 20240711T091318
1919
stackhpc_pulp_repo_rhel_9_rabbitmq_server_version: 20240711T091318
20-
stackhpc_pulp_repo_rhel_9_treasuredata_5_version: 20241115T002028
20+
stackhpc_pulp_repo_rhel_9_treasuredata_5_version: 20250516T002449
2121
stackhpc_pulp_repo_rocky_9_1_appstream_version: 20231207T013715
2222
stackhpc_pulp_repo_rocky_9_1_baseos_version: 20231206T014015
2323
stackhpc_pulp_repo_rocky_9_1_crb_version: 20231211T120328

etc/kayobe/stackhpc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ stackhpc_repo_elrepo_9_version: "{{ stackhpc_repo_distribution }}"
141141

142142
# Kolla source repository.
143143
stackhpc_kolla_source_url: "https://github.com/stackhpc/kolla"
144-
stackhpc_kolla_source_version: stackhpc/20.0.0.3
144+
# FIXME: Go back to normal tags once
145+
# https://review.opendev.org/c/openstack/kolla/+/951871 is merged and synced
146+
# downstream
147+
stackhpc_kolla_source_version: epoxy-test-alex
145148

146149
# Kolla Ansible source repository.
147150
stackhpc_kolla_ansible_source_url: "https://github.com/stackhpc/kolla-ansible"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
OpenvSwitch has been pinned to the latest LTS release (3.3) in Ubuntu
5+
Noble container images.

0 commit comments

Comments
 (0)