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

[IPv6] Support dual-stack mode in no-encap mode with Linux #2426

Closed
2 tasks done
lzhecheng opened this issue Jul 16, 2021 · 1 comment
Closed
2 tasks done

[IPv6] Support dual-stack mode in no-encap mode with Linux #2426

lzhecheng opened this issue Jul 16, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request kind/design Categorizes issue or PR as related to design.

Comments

@lzhecheng
Copy link
Contributor

lzhecheng commented Jul 16, 2021

Describe what you are trying to solve
Antrea should support dual-stack in no-encap mode with Linux.

Current the basic Node/Pod to Pod cross-node traffic fails. When adding routes to other nodes, the destination pod CIDR and NodeIP are not in the same IP family.

E0715 15:34:18.049419       1 node_route_controller.go:344] Error syncing Node zhecheng-ipv6-1-0, requeuing. Error: failed to install route to peer zhecheng-ipv6-1-0 (10.176.26.41) with netlink. Route config: {Ifindex: 0 Dst: 2001:db8:42::/64 Src: <nil> Gw: 10.176.26.41 Flags: [] Table: 0}. Error: gateway, source, and destination ip are not the same IP family

Describe the solution you have in mind

Test plan
At least test dual-stack mode in no-encap mode once after the fix is ready. Maybe have a regular job but I am not sure if it is necessary.

@lzhecheng lzhecheng added enhancement New feature or request kind/design Categorizes issue or PR as related to design. labels Jul 16, 2021
@lzhecheng lzhecheng self-assigned this Jul 16, 2021
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 5, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 5, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
@lzhecheng
Copy link
Contributor Author

Now, dual-stack testbeds include 2 InternalIP: IPv4 and IPv6.

Due to more resource consumption of dual-stack testcase, testbeds' CPU and memory are enhanced: 3 -> 8 CPU, 4 -> 12G

lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 9, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 12, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 12, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 12, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 12, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 12, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 16, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 25, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 26, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
lzhecheng added a commit to lzhecheng/antrea that referenced this issue Aug 26, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: antrea-io#2426
tnqn pushed a commit that referenced this issue Aug 26, 2021
* Extend single IP address to IPv4 and IPv6 ones for NodeAddr and NodeTransportAddr in nodeConfig
* Refactor occurrences of Node IP address to adjust to 2 IP: agent initialization, node route
* Still use one IP for IPv6/dual-stack not supported cases: Windows, NPL
* Update tests

Signed-off-by: Zhecheng Li <[email protected]>

Related: #2426
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/design Categorizes issue or PR as related to design.
Projects
None yet
Development

No branches or pull requests

1 participant