-
Notifications
You must be signed in to change notification settings - Fork 386
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
Antrea policies with exact FQDN doesn't work on IPv6 clusters #3873
Comments
Release-1.6 branch can pass both dual-stack and ipv6 e2e test. I think it's possible the code change between 1.6 and 1.7 introduce this new issue. @tnqn |
@XinShuYang thanks for the information. What's more strange is I can reproduce this error when running v1.6.0 in my local kind cluster and it failed because of the same reason as main branch. I don't understand why running release-1.6 on CI can get 3 "REFUSED". When running release-1.6 and main branch, is there any K8s version difference? |
All ipv6 tests run on private testbed so the k8s version is same. The k8s version is 1.21.2 for ipv6-dual stack and 1.18.20 for ipv6-only. |
Describe the bug
I found the issue when investigating #3842. antrea-agent logs show DNS resolving never succeeded:
The problem is IPv6 address must be wrapped with "[]" when used in network API. It seemed policies with exact FQDN never worked. However, the test only started failing recently and was relatively stable before. I checked previous success log and found the first two probes failed but the 3rd one got expected response:
And the validation logic considered this as success. I guess the 3rd one sometimes succeeded because DNS response of the first two probes were handled by FQDN controller via packet-in message so corresponding IP was added to openflow rules. But not sure why it was stable before but failed very frequently now.
For example, when running the same test with release-1.6 branch, the result was all "REFUSED":
The text was updated successfully, but these errors were encountered: