When you migrate from ML2/OVS to ML2/OVN, you can add 8 bytes to the Maximum Transmission Unit (MTU) for Geneve encapsulation headers without deleting the interfaces by using os-net-config.
Increasing the data plane MTU is a less-disruptive alternative to lowering the MTU in the project networks:Lower MTU for migration from a VXLAN OVS deployment
Procedure
-
Edit the Orchestration service (heat) templates for the VLAN interface that carries the data plane traffic, and for the parent interface of the VLAN interface. If the parent interface is a bond, then you must also update the NICs integrated in the bond.
-
Update the templates of the controllers, compute nodes, and network nodes, for example:
~/templates/nic-configs/compute.j2
~/templates/nic-configs/controller.j2
~/templates/nic-configs/networker.j2
-
Increase the value for
mtu: by 8 bytes in the configuration file, such as in this example network_config file:
- addresses:
- dns_servers: {{ ctlplane_dns_nameservers }}
members:
- bonding_options: mode=1
members:
- mtu: 9008
name: nic1
primary: true
type: interface
- mtu: 9008
name: nic2
type: interface
mtu: 9008
name: bond0
type: linux_bond
name: br-compute
type: linux_bridge
- addresses:
- ip_netmask: {{ tenant_ip }}/{{ tenant_cidr }}
device: br-compute
mtu: 9008
type: vlan
vlan_id: {{ tenant_vlan_id }}
-
You must update the DNF package for the
os-net-config script in the affected nodes, such as Controller, Compute, and Networker nodes, before you reprovision:
$ dnf install -y os-net-config
-
Verify that the package is
os-net-config-14.2.1-17.1.20260803103231.61d7bd7.el9ost or newer.
-
Reprovision:
$ openstack overcloud node provision --stack overcloud --network-config --output ~/templates/baremetal-deployment.yaml ~/templates/deploy/tripleo-overcloud-baremetal-deployment.yaml