Skip to content

Commit 5a171ac

Browse files
committed
OCPBUGS-55174: Updated the changing-cluster-network-mtu file with NIC info
1 parent 5e58cf3 commit 5a171ac

File tree

2 files changed

+56
-65
lines changed

2 files changed

+56
-65
lines changed

Diff for: modules/nw-cluster-mtu-change.adoc

+53-65
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ ifndef::outposts[= Changing the cluster network MTU]
2323
ifdef::outposts[= Changing the cluster network MTU to support AWS Outposts]
2424

2525
ifdef::outposts[]
26-
During installation, the maximum transmission unit (MTU) for the cluster network is detected automatically based on the MTU of the primary network interface of nodes in the cluster.
27-
You might need to decrease the MTU value for the cluster network to support an AWS Outposts subnet.
26+
During installation, the maximum transmission unit (MTU) for the cluster network is detected automatically based on the MTU of the primary network interface of nodes in the cluster. You might need to decrease the MTU value for the cluster network to support an AWS Outposts subnet.
2827
endif::outposts[]
2928

3029
ifndef::outposts[As a cluster administrator, you can increase or decrease the maximum transmission unit (MTU) for your cluster.]
@@ -72,60 +71,60 @@ Status:
7271

7372
ifndef::local-zone,wavelength-zone,post-aws-zones,outposts[]
7473
. Prepare your configuration for the hardware MTU:
75-
76-
** If your hardware MTU is specified with DHCP, update your DHCP configuration such as with the following dnsmasq configuration:
74+
+
75+
.. If your hardware MTU is specified with DHCP, update your DHCP configuration such as with the following dnsmasq configuration:
7776
+
7877
[source,text]
7978
----
80-
dhcp-option-force=26,<mtu>
79+
dhcp-option-force=26,<mtu> <1>
8180
----
81+
<1> Where `<mtu>` specifies the hardware MTU for the DHCP server to advertise.
82+
+
83+
.. If your hardware MTU is specified with a kernel command line with PXE, update that configuration accordingly.
84+
+
85+
.. If your hardware MTU is specified in a NetworkManager connection configuration, complete the following steps. This approach is the default for {product-title} if you do not explicitly specify your network configuration with DHCP, a kernel command line, or some other method. Your cluster nodes must all use the same underlying network configuration for the following procedure to work unmodified.
8286
+
83-
--
84-
where:
85-
86-
`<mtu>`:: Specifies the hardware MTU for the DHCP server to advertise.
87-
--
88-
89-
** If your hardware MTU is specified with a kernel command line with PXE, update that configuration accordingly.
90-
91-
** If your hardware MTU is specified in a NetworkManager connection configuration, complete the following steps. This approach is the default for {product-title} if you do not explicitly specify your network configuration with DHCP, a kernel command line, or some other method. Your cluster nodes must all use the same underlying network configuration for the following procedure to work unmodified.
92-
9387
... Find the primary network interface by entering the following command:
94-
9588
+
9689
[source,terminal]
9790
----
98-
$ oc debug node/<node_name> -- chroot /host nmcli -g connection.interface-name c show ovs-if-phys0
91+
$ oc debug node/<node_name> -- chroot /host nmcli -g connection.interface-name c show ovs-if-phys0 <1> <2>
9992
----
93+
<1> Where `<node_name>` specifies the name of a node in your cluster.
94+
<2> Where `ovs-if-phys0` is the primary network interface. For nodes that use multiple NIC bonds, append `bond-sub0` primary NIC bond interface and `bond-sub1` for the secondary NIC bond interface.
10095
+
101-
--
102-
where:
103-
104-
`<node_name>`:: Specifies the name of a node in your cluster.
105-
--
106-
107-
... Create the following NetworkManager configuration in the `<interface>-mtu.conf` file:
96+
... Create the following NetworkManager configuration in the `<interface>-mtu.conf` file.
10897
+
10998
.Example NetworkManager connection configuration
11099
[source,ini]
111100
----
112101
[connection-<interface>-mtu]
113-
match-device=interface-name:<interface>
114-
ethernet.mtu=<mtu>
102+
match-device=interface-name:<interface> <1>
103+
ethernet.mtu=<mtu> <2>
115104
----
105+
<1> Where `<interface>` specifies the primary network interface name.
106+
<2> Where `<mtu>` specifies the new hardware MTU value.
116107
+
117-
--
118-
where:
119-
120-
`<mtu>`:: Specifies the new hardware MTU value.
121-
`<interface>`:: Specifies the primary network interface name.
122-
--
108+
[NOTE]
109+
====
110+
For nodes that use network interface controller (NIC) bonds, specify the primary NIC bond and any secondary NIC Bond in a `<bond-interface>-mtu.conf` file.
123111

124-
... Create two `MachineConfig` objects, one for the control plane nodes and another for the worker nodes in your cluster:
112+
.Example NetworkManager connection configuration
113+
[source,ini]
114+
----
115+
[connection-<primary-NIC-bond-interface>-mtu]
116+
match-device=interface-name:<bond-iface-name>
117+
ethernet.mtu=9000
125118
126-
.... Create the following Butane config in the `control-plane-interface.bu` file:
119+
[connection-<secondary-NIC-bond-interface>-mtu]
120+
match-device=interface-name:<bond-secondary-iface-name>
121+
ethernet.mtu=9000
122+
----
123+
====
124+
+
125+
... Create the following Butane config in the `control-plane-interface.bu` file, which is the `MachineConfig` object for the control plane nodes:
127126
+
128-
[source,yaml, subs="attributes+"]
127+
[source,yaml,subs="attributes+"]
129128
----
130129
variant: openshift
131130
version: {product-version}.0
@@ -141,11 +140,11 @@ storage:
141140
mode: 0600
142141
----
143142
<1> Specify the NetworkManager connection name for the primary network interface.
144-
<2> Specify the local filename for the updated NetworkManager configuration file from the previous step.
145-
146-
.... Create the following Butane config in the `worker-interface.bu` file:
143+
<2> Specify the local filename for the updated NetworkManager configuration file from the previous step. For NIC bonds, specify the name for the `<bond-interface>-mtu.conf` file.
147144
+
148-
[source,yaml, subs="attributes+"]
145+
... Create the following Butane config in the `worker-interface.bu` file, which is the `MachineConfig` object for the compute nodes:
146+
+
147+
[source,yaml,subs="attributes+"]
149148
----
150149
variant: openshift
151150
version: {product-version}.0
@@ -161,9 +160,9 @@ storage:
161160
mode: 0600
162161
----
163162
<1> Specify the NetworkManager connection name for the primary network interface.
164-
<2> Specify the local filename for the updated NetworkManager configuration file from the previous step.
165-
166-
.... Create `MachineConfig` objects from the Butane configs by running the following command:
163+
<2> Specify the local filename for the updated NetworkManager configuration file from the previous step. For
164+
+
165+
... Create `MachineConfig` objects from the Butane configs by running the following command:
167166
+
168167
[source,terminal]
169168
----
@@ -183,15 +182,11 @@ endif::local-zone,wavelength-zone,post-aws-zones,outposts[]
183182
[source,terminal]
184183
----
185184
$ oc patch Network.operator.openshift.io cluster --type=merge --patch \
186-
'{"spec": { "migration": { "mtu": { "network": { "from": <overlay_from>, "to": <overlay_to> } , "machine": { "to" : <machine_to> } } } } }'
185+
'{"spec": { "migration": { "mtu": { "network": { "from": <overlay_from>, "to": <overlay_to> } , "machine": { "to" : <machine_to> } } } } }' <1> <2> <3>
187186
----
188-
+
189-
--
190-
where:
191-
192-
`<overlay_from>`:: Specifies the current cluster network MTU value.
193-
`<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>`.
194-
`<machine_to>`:: Specifies the MTU for the primary network interface on the underlying host network.
187+
<1> Where `<overlay_from>` specifies the current cluster network MTU value.
188+
<2> Where `<overlay_to>` specifies the target MTU for the cluster network. This value is set relative to the value of
189+
<3> Where `<machine_to>` specifies the MTU for the primary network interface on the underlying host network. For OVN-Kubernetes, this value must be `100` less than the value of `<machine_to>`.
195190
--
196191
+
197192
ifndef::outposts[]
@@ -255,10 +250,9 @@ machineconfiguration.openshift.io/state: Done
255250
+
256251
[source,terminal]
257252
----
258-
$ oc get machineconfig <config_name> -o yaml | grep ExecStart
253+
$ oc get machineconfig <config_name> -o yaml | grep ExecStart <1>
259254
----
260-
+
261-
where `<config_name>` is the name of the machine config from the `machineconfiguration.openshift.io/currentConfig` field.
255+
<1> Where `<config_name>` is the name of the machine config from the `machineconfiguration.openshift.io/currentConfig` field.
262256
+
263257
The machine config must include the following update to the systemd configuration:
264258
+
@@ -269,7 +263,7 @@ ExecStart=/usr/local/bin/mtu-migration.sh
269263

270264
ifndef::local-zone,wavelength-zone,post-aws-zones,outposts[]
271265
. Update the underlying network interface MTU value:
272-
266+
+
273267
** If you are specifying the new MTU with a NetworkManager connection configuration, enter the following command. The MachineConfig Operator automatically performs a rolling reboot of the nodes in your cluster.
274268
+
275269
[source,terminal]
@@ -278,7 +272,7 @@ $ for manifest in control-plane-interface worker-interface; do
278272
oc create -f $manifest.yaml
279273
done
280274
----
281-
275+
+
282276
** If you are specifying the new MTU with a DHCP server option or a kernel command line and PXE, make the necessary changes for your infrastructure.
283277

284278
. As the Machine Config Operator updates machines in each machine config pool, it reboots each node one by one. You must wait until all the nodes are updated. Check the machine config pool status by entering the following command:
@@ -325,10 +319,9 @@ Verify that the following statements are true:
325319
+
326320
[source,terminal]
327321
----
328-
$ oc get machineconfig <config_name> -o yaml | grep path:
322+
$ oc get machineconfig <config_name> -o yaml | grep path: <1>
329323
----
330-
+
331-
where `<config_name>` is the name of the machine config from the `machineconfiguration.openshift.io/currentConfig` field.
324+
<1> Where `<config_name>` is the name of the machine config from the `machineconfiguration.openshift.io/currentConfig` field.
332325
+
333326
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.
334327
endif::local-zone,wavelength-zone,post-aws-zones,outposts[]
@@ -339,14 +332,9 @@ endif::local-zone,wavelength-zone,post-aws-zones,outposts[]
339332
+
340333
----
341334
$ oc patch Network.operator.openshift.io cluster --type=merge --patch \
342-
'{"spec": { "migration": null, "defaultNetwork":{ "ovnKubernetesConfig": { "mtu": <mtu> }}}}'
335+
'{"spec": { "migration": null, "defaultNetwork":{ "ovnKubernetesConfig": { "mtu": <mtu> }}}}' <1>
343336
----
344-
+
345-
--
346-
where:
347-
348-
`<mtu>`:: Specifies the new cluster network MTU that you specified with `<overlay_to>`.
349-
--
337+
<1> Where: `<mtu>` specifies the new cluster network MTU that you specified with `<overlay_to>`.
350338

351339
. 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:
352340
+

Diff for: networking/changing-cluster-network-mtu.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ toc::[]
99
[role="_abstract"]
1010
As a cluster administrator, you can change the MTU for the cluster network after cluster installation. This change is disruptive as cluster nodes must be rebooted to finalize the MTU change.
1111

12+
// About the cluster MTU
1213
include::modules/nw-cluster-mtu-change-about.adoc[leveloffset=+1]
14+
15+
// Changing the cluster network MTU or Changing the cluster network MTU to support AWS Outposts
1316
include::modules/nw-cluster-mtu-change.adoc[leveloffset=+1]
1417

1518
[role="_additional-resources"]

0 commit comments

Comments
 (0)