Skip to content

Commit b9e7714

Browse files
Merge pull request #2525 from igsilya/ovs-unpin-4.19
CORENET-5975: Dockerfile: Unpin OVS and consume the latest from FDP.
2 parents f7dd74f + 4fb27fe commit b9e7714

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile.base

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,28 @@ RUN dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs \
1212
selinux-policy procps-ng && \
1313
dnf clean all
1414

15-
ARG ovsver=3.5.0-0.9.el9fdp
15+
# NOTE: OVS is not pinned to a particular patch version in order to stay in
16+
# sync with the OVS running on the host (it is not strictly necessary, but
17+
# reduces the number of variables in the system) and receive all the CVE and
18+
# bug fixes automatically.
19+
ARG ovsver=3.5
1620
ARG ovnver=24.09.2-41.el9fdp
1721
# NOTE: Ensure that the versions of OVS and OVN are overriden for OKD in each of the subsequent layers.
1822
# Centos and RHEL releases for ovn are built out of sync, so please make sure to bump for OKD with
1923
# the corresponding Centos version when updating the OCP version.
20-
ARG ovsver_okd=3.5.0-10.el9s
24+
ARG ovsver_okd=3.5
2125
# We are not bumping the OVN version for OKD since the FDP release is not done yet.
2226
ARG ovnver_okd=24.09.1-10.el9s
2327

2428
RUN INSTALL_PKGS="iptables nftables" && \
2529
source /etc/os-release && \
2630
[ "${ID}" == "centos" ] && ovsver=$ovsver_okd && ovnver=$ovnver_okd; \
27-
ovsver_short=$(echo "$ovsver" | cut -d'.' -f1,2) && \
2831
ovnver_short=$(echo "$ovnver" | cut -d'.' -f1,2) && \
2932
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs $INSTALL_PKGS && \
30-
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "openvswitch$ovsver_short = $ovsver" "python3-openvswitch$ovsver_short = $ovsver" && \
33+
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "openvswitch$ovsver" "python3-openvswitch$ovsver" && \
3134
dnf --setopt=retries=2 --setopt=timeout=2 install -y --nodocs "ovn$ovnver_short = $ovnver" "ovn$ovnver_short-central = $ovnver" "ovn$ovnver_short-host = $ovnver" && \
3235
dnf clean all && rm -rf /var/cache/* && \
33-
sed 's/%/"/g' <<<"%openvswitch$ovsver_short-devel = $ovsver% %openvswitch$ovsver_short-ipsec = $ovsver% %ovn$ovnver_short-vtep = $ovnver%" > /more-pkgs
36+
sed 's/%/"/g' <<<"%openvswitch$ovsver-devel% %openvswitch$ovsver-ipsec% %ovn$ovnver_short-vtep = $ovnver%" > /more-pkgs
3437

3538
RUN mkdir -p /var/run/openvswitch && \
3639
mkdir -p /var/run/ovn && \

0 commit comments

Comments
 (0)