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
What happened:
In case there are multiple DanmNets which owns the same CIDR (only the start-end ranges are different), custom route definitions may be added to wrong interface. The same happens if the custom route rule is defined by either in DanmNet definition as route or in Pod annotation as proute.
What you expected to happen:
Proper interface to be selected for such custom route rules.
/ # ip route
default via 169.254.1.1 dev eth0
10.10.10.0/24 dev eth2 scope link src 10.10.10.20
10.10.10.0/24 dev eth1 scope link src 10.10.10.10
169.254.1.1 dev eth0 scope link
/ # ip route show table 101
11.11.11.0/24 via 10.10.10.1 dev eth2
12.12.12.0/24 via 10.10.10.1 dev eth2
/ # ip route show table 102
12.12.12.0/24 via 10.10.10.1 dev eth2
22.22.22.0/24 via 10.10.10.1 dev eth2
All the custom routes are added to eth2 dev, while route table 101 is for eth1.
Anything else we need to know?:
I know that this networking scenario is generally bad. But currently nothing prevents the user to configure such environment, so DANM should be improved to handle it better.
Environment:
DANM version (use danm -version):
2020/07/22 12:31:18 DANM binary was built from release: v4.2.0-0
2020/07/22 12:31:18 DANM binary was built from commit: c0a4c1570845556cf911a46df475c45a85941bb2
Is this a BUG REPORT or FEATURE REQUEST?:
bug
What happened:
In case there are multiple DanmNets which owns the same CIDR (only the start-end ranges are different), custom route definitions may be added to wrong interface. The same happens if the custom route rule is defined by either in DanmNet definition as
route
or in Pod annotation asproute
.What you expected to happen:
Proper interface to be selected for such custom route rules.
How to reproduce it:
Sample DanmNet definitions:
Sample DANM annotation in Pod manifest:
Result:
All the custom routes are added to
eth2
dev, while route table 101 is foreth1
.Anything else we need to know?:
I know that this networking scenario is generally bad. But currently nothing prevents the user to configure such environment, so DANM should be improved to handle it better.
Environment:
danm -version
):kubectl version
):The text was updated successfully, but these errors were encountered: