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

Improve AntreaProxy route syncing on Windows #4941

Merged
merged 1 commit into from
May 24, 2023

Commits on May 23, 2023

  1. Improve AntreaProxy route syncing on Windows

    This PR fixes the following issues:
    
    1. AntreaAgent logs "Failed to sync route" when attempting to sync route entries
      every time.
    2. AntreaAgent logs "Failed to install route for Service CIDR" err="failed to
      delete stale Service CIDR route" during startup.
    
    For the first issue, previously, to recover the connected route of antrea-gw0
    (assuming the IP address is 10.10.0.1/24) that may have been deleted by mistake,
    a route with a destination 10.10.0.1/24 and gateway 10.10.0.1 was periodically
    synced. However, this caused an error because an existing active route with the
    same destination but a different gateway 0.0.0.0 should have already been
    automatically installed when antrea-gw0 was created. To address this issue, this
    PR changes the gateway of the recover route from 10.10.0.1 to 0.0.0.0, which
    matches the existing installed route. This ensures that the periodic sync will
    not cause any errors.
    
    For the second issue, previously, when syncing the second ClusterIP, the stale
    route entry installed for the first ClusterIP is added to the stale routes twice.
    This results in the error log.
    
    Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
    hongliangl committed May 23, 2023
    Configuration menu
    Copy the full SHA
    044a7dc View commit details
    Browse the repository at this point in the history