NetworkManager VLAN interfaces on bridges have their MTU set to MTU-1 after reboot

Bug #2039947 reported by Pierre Riteau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
Fix Released
High
Pierre Riteau
Antelope
Fix Released
High
Pierre Riteau
Bobcat
Fix Released
High
Pierre Riteau
Yoga
Fix Released
High
Pierre Riteau
Zed
Fix Released
High
Pierre Riteau

Bug Description

When configuring VLAN interfaces on a bridge on Rocky Linux 9 (using NetworkManager), after a reboot we see VLAN interfaces have their MTU set to MTU-1:

10: br25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000
11: br25.7@br25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8999 qdisc noqueue state UP mode DEFAULT group default qlen 1000
12: br25.900@br25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 8999 qdisc noqueue state UP mode DEFAULT group default qlen 1000

This is likely related to how MTU is set by NetworkManager for bridges: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/864872e9a8c694ee7472154bf45f869040310b71

This will be reported upstream to NetworkManager once we can replicate it outside of Kayobe.

Changed in kayobe:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kayobe/+/898917

Pierre Riteau (priteau)
Changed in kayobe:
importance: Undecided → High
assignee: nobody → Pierre Riteau (priteau)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kayobe/+/898951

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kayobe/+/898952

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/898905
Committed: https://opendev.org/openstack/kayobe/commit/ee63b3253dedaf62cc321f5b29080d7e7c459a99
Submitter: "Zuul (22348)"
Branch: master

commit ee63b3253dedaf62cc321f5b29080d7e7c459a99
Author: Pierre Riteau <email address hidden>
Date: Fri Oct 20 14:51:37 2023 +0200

    Fix MTU of NetworkManager bridge VLAN interfaces

    We are seeing an issue on Rocky Linux 9 where VLAN interfaces on bridges
    have their MTU set to MTU-1 after rebooting. This is likely related to
    how MTU is set by NetworkManager for bridges: it first sets the MTU to
    MTU-1 before setting it to the correct value [1].

    We can work around this issue by not explicitly setting the MTU
    configuration on the VLAN interface if it is the same as the parent
    bridge. It will be automatically inherited from the parent.

    [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/864872e9a8c694ee7472154bf45f869040310b71

    Closes-Bug: #2039947
    Change-Id: I23366f4de7842e7c2fe40e431fac76f26e9892de

Changed in kayobe:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/898917
Committed: https://opendev.org/openstack/kayobe/commit/3282cda6b152587edb55dd81649ddceb19e0c575
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 3282cda6b152587edb55dd81649ddceb19e0c575
Author: Pierre Riteau <email address hidden>
Date: Fri Oct 20 14:51:37 2023 +0200

    Fix MTU of NetworkManager bridge VLAN interfaces

    We are seeing an issue on Rocky Linux 9 where VLAN interfaces on bridges
    have their MTU set to MTU-1 after rebooting. This is likely related to
    how MTU is set by NetworkManager for bridges: it first sets the MTU to
    MTU-1 before setting it to the correct value [1].

    We can work around this issue by not explicitly setting the MTU
    configuration on the VLAN interface if it is the same as the parent
    bridge. It will be automatically inherited from the parent.

    [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/864872e9a8c694ee7472154bf45f869040310b71

    Closes-Bug: #2039947
    Change-Id: I23366f4de7842e7c2fe40e431fac76f26e9892de
    (cherry picked from commit ee63b3253dedaf62cc321f5b29080d7e7c459a99)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/898952
Committed: https://opendev.org/openstack/kayobe/commit/790427f8ff901611b841b3a6529daec97eeb0909
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 790427f8ff901611b841b3a6529daec97eeb0909
Author: Pierre Riteau <email address hidden>
Date: Fri Oct 20 14:51:37 2023 +0200

    Fix MTU of NetworkManager bridge VLAN interfaces

    We are seeing an issue on Rocky Linux 9 where VLAN interfaces on bridges
    have their MTU set to MTU-1 after rebooting. This is likely related to
    how MTU is set by NetworkManager for bridges: it first sets the MTU to
    MTU-1 before setting it to the correct value [1].

    We can work around this issue by not explicitly setting the MTU
    configuration on the VLAN interface if it is the same as the parent
    bridge. It will be automatically inherited from the parent.

    [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/864872e9a8c694ee7472154bf45f869040310b71

    Closes-Bug: #2039947
    Change-Id: I23366f4de7842e7c2fe40e431fac76f26e9892de
    (cherry picked from commit ee63b3253dedaf62cc321f5b29080d7e7c459a99)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/898951
Committed: https://opendev.org/openstack/kayobe/commit/6e2a551f8d342c2603da294cfa12ecb001a56240
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 6e2a551f8d342c2603da294cfa12ecb001a56240
Author: Pierre Riteau <email address hidden>
Date: Fri Oct 20 14:51:37 2023 +0200

    Fix MTU of NetworkManager bridge VLAN interfaces

    We are seeing an issue on Rocky Linux 9 where VLAN interfaces on bridges
    have their MTU set to MTU-1 after rebooting. This is likely related to
    how MTU is set by NetworkManager for bridges: it first sets the MTU to
    MTU-1 before setting it to the correct value [1].

    We can work around this issue by not explicitly setting the MTU
    configuration on the VLAN interface if it is the same as the parent
    bridge. It will be automatically inherited from the parent.

    [1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/864872e9a8c694ee7472154bf45f869040310b71

    Closes-Bug: #2039947
    Change-Id: I23366f4de7842e7c2fe40e431fac76f26e9892de
    (cherry picked from commit ee63b3253dedaf62cc321f5b29080d7e7c459a99)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 14.2.0

This issue was fixed in the openstack/kayobe 14.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 12.9.0

This issue was fixed in the openstack/kayobe 12.9.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 13.3.0

This issue was fixed in the openstack/kayobe 13.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kayobe 15.0.0.0rc1

This issue was fixed in the openstack/kayobe 15.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.