From 0b1455bbe6db302f62eb3518e12ced66fce63575 Mon Sep 17 00:00:00 2001 From: Ilya Maximets Date: Mon, 13 May 2024 18:52:18 +0200 Subject: [PATCH 1/2] Add missing nfv-sig repository for OVS on CentOS openshift-mirror-beta repo only contains packages that are directly tagged into openshift and not available otherwise. It doesn't contain openvswitch versions that are available directly in actual fast-datapath repositories. OVS packages for CentOS are available in sig-nfv repo instead. Signed-off-by: Ilya Maximets --- test/bootc-sources/microshift_repo_config.sh.template | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/bootc-sources/microshift_repo_config.sh.template b/test/bootc-sources/microshift_repo_config.sh.template index 34979671aa..855bd16454 100644 --- a/test/bootc-sources/microshift_repo_config.sh.template +++ b/test/bootc-sources/microshift_repo_config.sh.template @@ -5,6 +5,7 @@ USHIFT_LOCAL_REPO_FILE=/etc/yum.repos.d/microshift-local.repo OCP_MIRROR_REPO_FILE=/etc/yum.repos.d/openshift-mirror-beta.repo OCP_DTPATH_REPO_FILE=/etc/yum.repos.d/openshift-fast-datapath.repo OCP_RHOCP_REPO_FILE=/etc/yum.repos.d/openshift-rhocp.repo +CENTOS_NFV_SIG_REPO_FILE=/etc/yum.repos.d/microshift-sig-nfv.repo usage() { echo "Usage: $(basename $0) <-create microshift_local_repo_path | -delete>" @@ -39,6 +40,15 @@ baseurl=https://mirror.openshift.com/pub/openshift-v4/{{ .Env.UNAME_M }}/depende enabled=1 gpgcheck=0 skip_if_unavailable=0 +EOF + + cat > "${CENTOS_NFV_SIG_REPO_FILE}" < Date: Mon, 13 May 2024 11:57:53 +0200 Subject: [PATCH 2/2] Upgrade openvswitch package for 4.16 4.16 ovn-kubernetes and RHCOS are both moved to OVS 3.3: - https://github.com/openshift/ovn-kubernetes/pull/2142 - https://github.com/openshift/os/pull/1495 MicroShift should be kept in sync. Signed-off-by: Ilya Maximets --- packaging/rpm/microshift.spec | 5 ++++- test/kickstart-templates/includes/post-cos9rpm.cfg | 2 +- test/resources/microshift-rpm.resource | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packaging/rpm/microshift.spec b/packaging/rpm/microshift.spec index 4bfbc6c4b3..6a225b5fb0 100644 --- a/packaging/rpm/microshift.spec +++ b/packaging/rpm/microshift.spec @@ -108,7 +108,7 @@ The microshift-selinux package provides the SELinux policy modules required by M %package networking Summary: Networking components for MicroShift Requires: microshift = %{version} -Requires: (openvswitch3.1 or openvswitch >= 3.1) +Requires: (openvswitch3.3 or openvswitch >= 3.3) Requires: NetworkManager Requires: NetworkManager-ovs Requires: jq @@ -470,6 +470,9 @@ fi # Use Git command to generate the log and replace the VERSION string # LANG=C git log --date="format:%a %b %d %Y" --pretty="tformat:* %cd %an <%ae> VERSION%n- %s%n" packaging/rpm/microshift.spec %changelog +* Mon May 13 2024 Ilya Maximets 4.16.0 +- Upgrade openvswitch package version to 3.3 + * Mon Apr 29 2024 Gregory Giguashvili 4.16.0 - Remove references to redundant files in selinux packaging diff --git a/test/kickstart-templates/includes/post-cos9rpm.cfg b/test/kickstart-templates/includes/post-cos9rpm.cfg index e1628e3ef3..2e0a8d4123 100644 --- a/test/kickstart-templates/includes/post-cos9rpm.cfg +++ b/test/kickstart-templates/includes/post-cos9rpm.cfg @@ -8,7 +8,7 @@ gpgcheck=0 skip_if_unavailable=0 EOF -# The openvswitch3.1 dependency +# The openvswitch3.3 dependency cat > "/etc/yum.repos.d/openvswitch2-rpms.repo" <