Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-33588: Upgrade openvswitch package for 4.16 #3350

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packaging/rpm/microshift.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <i.maximets@redhat.com> 4.16.0
- Upgrade openvswitch package version to 3.3

* Mon Apr 29 2024 Gregory Giguashvili <ggiguash@redhat.com> 4.16.0
- Remove references to redundant files in selinux packaging

Expand Down
10 changes: 10 additions & 0 deletions test/bootc-sources/microshift_repo_config.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -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>"
Expand Down Expand Up @@ -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}" <<EOF
[nfv-sig]
name=CentOS Stream 9 - SIG NFV
baseurl=http://mirror.stream.centos.org/SIGs/9-stream/nfv/{{ .Env.UNAME_M }}/openvswitch-2/
enabled=1
gpgcheck=0
skip_if_unavailable=0
EOF
}

Expand Down
2 changes: 1 addition & 1 deletion test/kickstart-templates/includes/post-cos9rpm.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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" <<EOF
[sig-nfv]
name=CentOS Stream 9 - SIG NFV
Expand Down
5 changes: 4 additions & 1 deletion test/resources/microshift-rpm.resource
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ ${REPO_FILE_NAME} "/etc/yum.repos.d/microshift-local.repo"
Install MicroShift RPM Packages From System Repo
[Documentation] Installs MicroShift RPM packages from a system repository
[Arguments] ${version} ${check_warnings}=True
${stdout}= Command Should Work dnf install -y 'microshift-${version}'
# Allow erasing because update may require a new version of openvswitch
# and major versions of openvswitch are separate packages that obsolete
# each other.
${stdout}= Command Should Work dnf install -y --allowerasing 'microshift-${version}'
IF ${check_warnings}
# Look for all warnings and errors before testing so that the log
# shows the output for both.
Expand Down