Repository navigation
ci(e2e): run conformance and policy DNS IPv6 tests on an IPv6-only k3s cluster - #5724
Conversation
QEMU user networking defaults to the site-local fec0::/64, which Linux ranks below any global address. On a dual-stack K3s guest the node then sends to IPv6 Services from flannel's address and never gets the reply. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…lues in the k3s installers Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test 9073847 |
|
Label |
…eway address Create an empty environment Helm values file when the environment has none, so the Helm command is a plain list. Name the gateway IP and port before bracketing an IPv6 address. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
|
/ok to test e30f2e2 |
The IPv6 setup now only writes the K3s configuration, so the cluster is created on its first start and needs no reset, and k3s.yaml is unchanged. The k3s installer sets the gateway and supervisor listen addresses to :: when the node's first address is IPv6, instead of reading Helm values the environment wrote. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
|
What it doesn't cover yet 2 - Shared supervisor pool: the tests keep the default dedicated supervisors. That means the supervisor :: setting has no effect, and pool failover isn't tested. 3 - Sandbox egress over IPv6: the test servers and hostGatewayIP are IPv4 only, so the IPv6-literal egress fix, minor upto you, can leave it as it is 4 - Hostname egress to IPv6-only Services: not tested; that's the known DNS gap in #3716. |
…vironment/matthewgrossman Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
90a3322 to
af09e54
Compare
|
Could this PR also cover #3716's remaining ask? #5793 adds policy DNS IPv6 egress, and #3716 needs an automated sandbox boundary test for it on an IPv6-only network:
This needs an IPv6-only k3s environment, or a row that sets |
…vironment/matthewgrossman Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> # Conflicts: # .github/workflows/e2e-suites.yml
…ironment The IPv6 k3s-ha row has the same multi-replica log gap (#5752) as ubuntu-k3s/k3s-ha. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Set host.openshell.internal to the node's first address and enable policy DNS IPv6 egress when it is IPv6. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
…ment Refs #3716 Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
|
@matthewgrossman thanks, the |
…vironment/matthewgrossman Signed-off-by: Matthew Grossman <mgrossman@nvidia.com> # Conflicts: # tests/support/host-server/src/http.rs # tests/support/host-server/src/lib.rs
…ly without IPv6 Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
|
@FrostGod thanks, updated:
|
Summary
Add a tmachine environment,
ubuntu-k3s-ipv6, with an IPv6-only K3s cluster. CI runs two suites on it with thek3s-hainstaller:conformance, and a newfeatures/policy-dns-ipv6suite that checks sandbox egress through policy DNS AAAA answers.Related Issue
Closes #5698
Refs #3716
Changes
Environment
fd00:10::/64instead of its defaultfec0::/64. Linux ranks the site-localfec0::below other addresses, so the node sent traffic to IPv6 Services from flannel's address and never got the reply.ipv6feature environment on theubuntu-k3sbase (k3s-ipv6.yaml). Pods and Services get only IPv6 addresses, and the node registers its IPv6 address. The VM keeps IPv4 for image pulls and the Agent Sandbox install.k3sinstaller sets the gateway and supervisorlistenAddressto::andserver.hostGatewayIPto the node's IPv6 address.ubuntu-k3sis unchanged: its node's address is IPv4.Tests
tests/support/host-server) listen on a dual-stack IPv6 socket, falling back to IPv4 where the host has no IPv6.policy-dns-ipv6feature suite. It leavespolicy_dns_ipv6_egressat its default,auto, which turns on because sandboxes have no IPv4 route. A native client in the sandbox, with proxy variables unset:ubuntu-k3s-ipv6/k3s-hajoins the two existing test(conformance): run the two sandbox-log tests on k3s-ha again #5752 skips intests/suites/unsupported.yaml.Not covered: reaching IPv4-only hosts through DNS64/NAT64, and the shared supervisor pool. The pool's tests are still in
e2e/rust(#5297).Testing
Locally on an arm64 Mac, on the IPv6-only cluster:
policy-dns-ipv6passes; conformance passes 76/77, and the failure is the test(conformance): run the two sandbox-log tests on k3s-ha again #5752 test thatunsupported.yamlskips there.Branch E2E (running): https://github.com/ai-openshell/openshell/actions/runs/45724720859
Branch Checks (running): https://github.com/ai-openshell/openshell/actions/runs/45724720714
host-server-supportunit tests pass locally.Checks appropriate to the affected code and behavior pass
Unit tests added/updated (if applicable)
E2E tests added/updated (if applicable)
Checklist