Skip to content

Commit 8716e43

Browse files
authored
Merge pull request #88483 from openshift-cherrypick-robot/cherry-pick-88011-to-enterprise-4.15
[enterprise-4.15] OCPBUGS#49820: Added missing SDN MTU statements
2 parents 949129c + 1a0b0be commit 8716e43

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

modules/nw-cluster-mtu-change-about.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When you initiate an MTU change on your cluster the following effects might impa
2929
When planning your MTU migration there are two related but distinct MTU values to consider.
3030

3131
* *Hardware MTU*: This MTU value is set based on the specifics of your network infrastructure.
32-
* *Cluster network MTU*: This MTU value is always less than your hardware MTU to account for the cluster network overlay overhead. The specific overhead is determined by your network plugin. For OVN-Kubernetes, the overhead is `100` bytes.
32+
* *Cluster network MTU*: This MTU value is always less than your hardware MTU to account for the cluster network overlay overhead. The specific overhead is determined by your network plugin. For OVN-Kubernetes, the overhead is `100` bytes. For OpenShift SDN, the overhead is `50` bytes.
3333

3434
If your cluster requires different MTU values for different nodes, you must subtract the overhead value for your network plugin from the lowest MTU value that is used by any node in your cluster. For example, if some nodes in your cluster have an MTU of `9001`, and some have an MTU of `1500`, you must set this value to `1400`.
3535

@@ -61,7 +61,7 @@ Set the following values in the Cluster Network Operator configuration:
6161

6262
- The `mtu.machine.to` must be set to either the new hardware MTU or to the current hardware MTU if the MTU for the hardware is not changing. This value is transient and is used as part of the migration process. Separately, if you specify a hardware MTU that is different from your existing hardware MTU value, you must manually configure the MTU to persist by other means, such as with a machine config, DHCP setting, or a Linux kernel command line.
6363
- The `mtu.network.from` field must equal the `network.status.clusterNetworkMTU` field, which is the current MTU of the cluster network.
64-
- The `mtu.network.to` field must be set to the target cluster network MTU and must be lower than the hardware MTU to allow for the overlay overhead of the network plugin. For OVN-Kubernetes, the overhead is `100` bytes.
64+
- The `mtu.network.to` field must be set to the target cluster network MTU and must be lower than the hardware MTU to allow for the overlay overhead of the network plugin. The overhead for OVN-Kubernetes is `100` bytes and for OpenShift SDN is `50` bytes.
6565

6666
If the values provided are valid, the CNO writes out a new temporary configuration with the MTU for the cluster network set to the value of the `mtu.network.to` field.
6767

modules/nw-cluster-mtu-change.adoc

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ endif::local-zone,wavelength-zone,post-aws-zones,outposts[]
4444

4545
* You have installed the {oc-first}.
4646
* You have access to the cluster using an account with `cluster-admin` permissions.
47-
* You have identified the target MTU for your cluster. The MTU for the OVN-Kubernetes network plugin must be set to `100` less than the lowest hardware MTU value in your cluster.
47+
* You have identified the target MTU for your cluster.
48+
** The MTU for the OVN-Kubernetes network plugin must be set to `100` less than the lowest hardware MTU value in your cluster.
49+
** The MTU for the OpenShift SDN network plugin must be set to `50` less than the lowest hardware MTU value in your cluster.
4850
4951
.Procedure
5052

@@ -204,7 +206,7 @@ $ oc patch Network.operator.openshift.io cluster --type=merge --patch \
204206
where:
205207

206208
`<overlay_from>`:: Specifies the current cluster network MTU value.
207-
`<overlay_to>`:: Specifies the target MTU for the cluster network. This value is set relative to the value of `<machine_to>`. For OVN-Kubernetes, this value must be `100` less than the value of `<machine_to>`.
209+
`<overlay_to>`:: Specifies the target MTU for the cluster network. This value is set relative to the value of `<machine_to>`. For OVN-Kubernetes, this value must be `100` less than the value of `<machine_to>`. For OpenShift SDN, this value must be `50` less than the value of `<machine_to>`.
208210
`<machine_to>`:: Specifies the MTU for the primary network interface on the underlying host network.
209211
--
210212
+
@@ -347,20 +349,24 @@ where `<config_name>` is the name of the machine config from the `machineconfigu
347349
If the machine config is successfully deployed, the previous output contains the `/etc/NetworkManager/conf.d/99-<interface>-mtu.conf` file path and the `ExecStart=/usr/local/bin/mtu-migration.sh` line.
348350
endif::local-zone,wavelength-zone,post-aws-zones,outposts[]
349351

350-
. To finalize the MTU migration, enter the following command for the OVN-Kubernetes network plugin:
352+
. Finalize the MTU migration for your plugin. In both example commands, `<mtu>` specifies the new cluster network MTU that you specified with `<overlay_to>`.
351353
+
352-
[source,terminal]
354+
** To finalize the MTU migration, enter the following command for the OVN-Kubernetes network plugin:
353355
+
356+
[source,terminal]
354357
----
355358
$ oc patch Network.operator.openshift.io cluster --type=merge --patch \
356359
'{"spec": { "migration": null, "defaultNetwork":{ "ovnKubernetesConfig": { "mtu": <mtu> }}}}'
357360
----
358361
+
359-
--
360-
where:
361-
362-
`<mtu>`:: Specifies the new cluster network MTU that you specified with `<overlay_to>`.
363-
--
362+
** To finalize the MTU migration, enter the following command for the OpenShift SDN network plugin:
363+
+
364+
[source,terminal]
365+
+
366+
----
367+
$ oc patch Network.operator.openshift.io cluster --type=merge --patch \
368+
'{"spec": { "migration": null, "defaultNetwork":{ "openshiftSDNConfig": { "mtu": <mtu> }}}}'
369+
----
364370

365371
. After finalizing the MTU migration, each machine config pool node is rebooted one by one. You must wait until all the nodes are updated. Check the machine config pool status by entering the following command:
366372
+

0 commit comments

Comments
 (0)