Bug 1874591

Summary: MTU autodetection fails on single-stack IPv6
Product: OpenShift Container Platform Reporter: Dan Winship <danw>
Component: NetworkingAssignee: Antonio Ojea <aojeagar>
Networking sub component: ovn-kubernetes QA Contact: Arik Chernetsky <achernet>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: anusaxen, yprokule
Version: 4.6Flags: anusaxen: needinfo-
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:36:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Winship 2020-09-01 17:15:30 UTC
CNO autodetects the MTU (pkg/network/mtu.go) but it only looks at IPv4 so it fails reliably on single-stack IPv6:

  2020/08/31 23:42:13 Failed MTU probe, failling back to 1500: got no routes

Also, "falling" is misspelled.

Comment 1 Antonio Ojea 2020-09-04 14:58:09 UTC
Can we assume "or force" that, in dual stack, IPv4 and IPv6 will have ALWAYS the same MTU (and that the default route will use the same interface)?

Managing different MTUs per family seems a bad idea and a is very BAD networking practice.
We can take the minimum common MTU in this case

Comment 2 Dan Winship 2020-09-04 21:25:56 UTC
This bug is pretty much just a matter changing netlink.FAMILY_V4 to netlink.FAMILY_ALL in GetDefaultMTU. I'm not sure why I filed a bug rather than filing the PR actually.

Comment 5 Anurag saxena 2020-09-18 16:28:01 UTC
@arik, could you help us your team verify this since you have single/dual stack clusters being deployed? Please re-assign accordingly. Thanks

Comment 13 errata-xmlrpc 2020-10-27 16:36:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196