You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wireguard backend should only log error messages in case of problems that hinder flannel working correctly.
Current Behavior
If the wireguard flannel route (named flannel-wg) already exists on the host, eg if the cluster has multiple nodes, the backend logs an error message though there is no problem.
This behaviour can be found in e2e-tests (last line):
Use netlink.RouteReplace instead of netlink.RouteAdd. This method adds or replaces the existing route, not returning an error. Since this method is only used when nodes are added, the possible overhead of replacing the route instead of throwing an error should be acceptable.
(I will provide a PR for this).
Steps to Reproduce (for bugs)
See e2e-test logs above. Otherwise, create a cluster with multiple nodes and take a look at flannel logs.
Context
I had problems with kubernetes networking after re-installing k3s on a node and stumbled across those error messages which mislead me into thinking that they show a problem.
Your Environment
See e2e-tests
The text was updated successfully, but these errors were encountered:
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.
Fixesflannel-io#1963
Expected Behavior
The wireguard backend should only log error messages in case of problems that hinder flannel working correctly.
Current Behavior
If the wireguard flannel route (named
flannel-wg
) already exists on the host, eg if the cluster has multiple nodes, the backend logs an error message though there is no problem.This behaviour can be found in e2e-tests (last line):
Possible Solution
Use
netlink.RouteReplace
instead ofnetlink.RouteAdd
. This method adds or replaces the existing route, not returning an error. Since this method is only used when nodes are added, the possible overhead of replacing the route instead of throwing an error should be acceptable.(I will provide a PR for this).
Steps to Reproduce (for bugs)
See e2e-test logs above. Otherwise, create a cluster with multiple nodes and take a look at flannel logs.
Context
I had problems with kubernetes networking after re-installing k3s on a node and stumbled across those error messages which mislead me into thinking that they show a problem.
Your Environment
See e2e-tests
The text was updated successfully, but these errors were encountered: