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

Fix the issue GARP not being sent #796

Merged
merged 1 commit into from
Jun 5, 2020
Merged

Fix the issue GARP not being sent #796

merged 1 commit into from
Jun 5, 2020

Commits on Jun 5, 2020

  1. Fix the issue GARP not being sent

    On Linux, to flush stale ARP cache of network, antrea-agent is supposed
    to send gratuitous ARP packets when configuring network for a Pod.
    However, the routine was broken when refactoring the
    "advertiseContainerAddr" method for Windows support. The action was
    executed in a new spawned goroutine within the context of "NetNS.Do",
    then it was actually executed after NetNS had switched to the target
    container NS and had switched back to the host NS.
    
    This patch fixes it by executing the whole routine in a goroutine, and
    fixes the ticker leak problem. It also adds an e2e test to verify there
    are at least 3 ARP packets received by OVS after a Pod is up to avoid
    this being broken again as not sending GARP may not lead to connectivity
    test failure stably if there are no IP reuse before ARP cache expiry.
    tnqn committed Jun 5, 2020
    Configuration menu
    Copy the full SHA
    f474ddf View commit details
    Browse the repository at this point in the history