Skip to content

Commit e75f06e

Browse files
committed
Use apt-preferences to pin openvswitch==3.3
1 parent 5f1c1f1 commit e75f06e

File tree

4 files changed

+16
-50
lines changed

4 files changed

+16
-50
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 > stakckhpc-apt-preferences <<EOF
204+
Package: openvswitch-switch openvswitch-common openvswitch-common-dpdk
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: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -403,55 +403,7 @@ kolla_build_customizations_rocky:
403403
ovn_sb_db_server_packages_override:
404404
- ovn24.03-central
405405

406-
kolla_build_customizations_ubuntu:
407-
kolla_toolbox_packages_remove:
408-
- openvswitch-switch
409-
- openvswitch-common
410-
kolla_toolbox_packages_append:
411-
- openvswitch-switch=3.3.0-1ubuntu3.2
412-
- openvswitch-common=3.3.0-1ubuntu3.2
413-
manila_base_packages_remove:
414-
- openvswitch-switch
415-
- openvswitch-common
416-
manila_base_packages_append:
417-
- openvswitch-switch=3.3.0-1ubuntu3.2
418-
- openvswitch-common=3.3.0-1ubuntu3.2
419-
neutron_base_packages_remove:
420-
- openvswitch-switch
421-
- openvswitch-common
422-
- python3-openvswitch
423-
neutron_base_packages_append:
424-
- openvswitch-switch=3.3.0-1ubuntu3.2
425-
- openvswitch-common=3.3.0-1ubuntu3.2
426-
- python3-openvswitch=3.3.0-1ubuntu3.2
427-
nova_base_packages_remove:
428-
- openvswitch-switch
429-
- openvswitch-common
430-
- python3-openvswitch
431-
nova_base_packages_append:
432-
- openvswitch-switch=3.3.0-1ubuntu3.2
433-
- openvswitch-common=3.3.0-1ubuntu3.2
434-
- python3-openvswitch=3.3.0-1ubuntu3.2
435-
nova_libvirt_packages_remove:
436-
- openvswitch-switch
437-
- openvswitch-common
438-
nova_libvirt_packages_append:
439-
- openvswitch-switch=3.3.0-1ubuntu3.2
440-
- openvswitch-common=3.3.0-1ubuntu3.2
441-
openvswitch_base_packages_remove:
442-
- openvswitch-switch
443-
- openvswitch-common
444-
- python3-openvswitch
445-
openvswitch_base_packages_append:
446-
- openvswitch-switch=3.3.0-1ubuntu3.2
447-
- openvswitch-common=3.3.0-1ubuntu3.2
448-
- python3-openvswitch=3.3.0-1ubuntu3.2
449-
ovs_dpdk_packages_remove:
450-
- openvswitch-switch
451-
- openvswitch-common-dpdk
452-
ovs_dpdk_packages_append:
453-
- openvswitch-switch-dpdk=3.3.0-1ubuntu3.2
454-
406+
kolla_build_customizations_ubuntu: {}
455407

456408
# Dict mapping image customization variable names to their values.
457409
# Each variable takes the form:

etc/kayobe/kolla/kolla-build.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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 = 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 }}

0 commit comments

Comments
 (0)