-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue GARP not being sent (#796)
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.
- Loading branch information
1 parent
be00b83
commit 6311e75
Showing
2 changed files
with
82 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters