@@ -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
1620ARG 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.
2226ARG ovnver_okd=24.09.1-10.el9s
2327
2428RUN 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
3538RUN mkdir -p /var/run/openvswitch && \
3639 mkdir -p /var/run/ovn && \
0 commit comments