-
Notifications
You must be signed in to change notification settings - Fork 367
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
ip6tables agent error on dual-stack with multicast enabled #6113
Comments
Thanks for the report. We should probably also open an issue to discuss adding this support. I don't know if anything specific was identified as a technical blocker for implementing Multicast with IPv6. |
The design for Multicast is generic for both IPv4 and IPv6. The major difference with IPv6 is we need to use MLD protocol as an alternative for IGMP which only works for IPv4. From the openflow library (libOpenflow), MLD packet format was already added, but we didn't add the corresponding invocation in antrea logic. And another reason for not support it in IPv6 is we didn't receive a user request on it yet, so it is processed with a lower priority until now. |
Before Multicast can be supported with IPv6, does it make sense to make the code self-adaptive that it would enable Multicast for IPv4 and skip IPv6 for a dual-stack cluster? I feel there may be use cases that the Multicast is only needed for IPv4 even though the whole cluster is dual-stack. The validation could be:
@lezruk do you need multicast to work for IPv6, or you only need it with IPv4 in a dual-stack cluster? |
Hi @tnqn thank you.
To be more precise answering your question: at the moment to have only IPv4 multicast working in dual-stack. |
@antoninbas @tnqn Having looked through the code, it is difficult to check the Multicast feature gate status along with the IPv6 cluster in agent option validation stage (https://github.com/antrea-io/antrea/blob/main/cmd/antrea-agent/options.go#L141), since antrea-agent didn't get the IPv4/IPv6/dual-stack settings at that time. So if we plan to check and quit as early as we can, the earliest chance is after the agent Initialize in |
Maybe we could do it inside the call to |
Describe the bug
Agent failing to initialize node network becuase of ip6tables failure in agent with enable dual-stack and multicast
To Reproduce
Enable cluster dual stack
Enable Antrea multicast support
Expected
Traffic rule to be applied to IPv4 only
Actual behavior
ip6tables command error Agent log:
Versions:
1.15, https://github.com/antrea-io/antrea/releases/download/v1.15.0/antrea.yml
kubectl version
). If your Kubernetes components have different versions, please provide the version for all of them.v1.29
k3s:v1.29.2+k3s1
uname -r
).Linux vk3scontrolt0 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
modinfo openvswitch
for the Kubernetes Nodes.Default Debian 12.5
Additional context
The text was updated successfully, but these errors were encountered: