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

wireguard backend: avoid error message if route already exists #1964

Merged
merged 1 commit into from
May 23, 2024

Conversation

maltelehmann
Copy link

@maltelehmann maltelehmann commented May 5, 2024

While processing node add events, flannel-wg routes are added irrespective of whether they already exist. This causes an error message for each wg peer. This might be misleading since there is actually no problem. By add or replacing the route, this can be avoided.

Fixes #1963

Description

Todos

  • [?] Tests
  • [n/a] Documentation
  • Release note

Release Note

Avoid error message if wireguard route already exists on node.

While processing node add events, flannel-wg routes are added irrespective of whether they already exist. This causes an error message for each wg peer. This might be misleading since there is actually no problem. By add or replacing the route, this can be avoided.

Fixes flannel-io#1963
@thomasferrandiz thomasferrandiz merged commit bf59847 into flannel-io:master May 23, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wireguard Backend logs error message "failed to add route flannel-wg: file exists" but it is not an problem
3 participants