Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Pod or gateway use a different MAC address #4428

Merged
merged 1 commit into from
Dec 6, 2022

Commits on Dec 6, 2022

  1. Bugfix: Pod or gateway interface use a different MAC from the expecta…

    …tion
    
    This issue is found on Ubuntu 22.04: the network interface for antrea-gw0
    is different from the one we used in OpenFlow rules.
    
    The reason is systemd-udev has modified the interface's MAC after it watches
    a new one is created. So if Antrea Agent reads interface's information before
    systemd-udev's modification, Antrea Agent would uses an incorrect value to
    install OpenFlow rules.
    
    To resolve the issue,
      1. Agent generates a static MAC for antrea-gw0 or the interface used by Pod
      2. Agent uses the generated MAC to create OVS internal port or veth pair
    
    To implement the logic, some code is copied from containernetworking/plugins/ip/link_linux
    latest versions to path thirdparty, this is to avoid unexpected issues introduced
    when bumping up the dependent libraries.
    
    Signed-off-by: wenyingd <wenyingd@vmware.com>
    wenyingd committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    1322dab View commit details
    Browse the repository at this point in the history