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
fix(e2e): wait for DNSNameResolver ready before CNP connectivity checks (#6349)
* fix(e2e): wait for DNSNameResolver ready before CNP connectivity checks
The CNP domain-based e2e test was flaky because connectivity checks
started before the async DNS resolution chain completed. When CNP rules
are created/updated, the OVN ACL address sets may be empty initially
since the external dnsnameresolver component needs time to resolve
domains and populate DNSNameResolver CR Status.
Add waitForDNSResolversReady() to explicitly wait for all DNSNameResolver
CRs to have resolved addresses before running connectivity checks.
Also increase default retry parameters from 20×2s to 30×3s as a safety
net for slow DNS resolution.
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
* fix(e2e): wait for DNSNameResolver CR creation instead of status population
The dnsnameresolver CoreDNS plugin populates Status.ResolvedNames
reactively (only when actual DNS queries flow through CoreDNS), not
proactively. The previous waitForDNSResolversReady checked for non-empty
Status.ResolvedNames before any connectivity test, creating a deadlock:
no DNS query happens → Status never populated → 60s timeout → test fails.
Replace with waitForDNSResolversCreated that only verifies the CR exists,
ensuring the controller has processed the CNP. The connectivity retry
logic (30 attempts × 3s) naturally handles the async chain:
DNS query → plugin intercepts → Status updated → address set updated → ACL applied.
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
---------
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments