Skip to content

Conversation

wedaly
Copy link

@wedaly wedaly commented Nov 18, 2024

Handle external CIDR and IP addresses uses IPv6.

Command used to test:

  cilium connectivity test \
    --external-ip "2606:4700:4700::1111" \
    --external-other-ip "2606:4700:4700::1001" \
    --external-cidr "2606:4700:4700::/48"

I used this script to create an IPv6-only cluster with Cilium in kind (adapted from delegated IPAM dual-stack E2E tests): https://gist.github.com/wedaly/26123c19baeaf62f092cdc52cf8c3c4e

This fixes all of the test failures except for to-fqdns which fails trying to curl cilium.io, which doesn't currently have any IPv6 addresses.

Fixes: #35553

Fix cilium CLI connectivity tests in IPv6-only clusters.

@wedaly wedaly requested review from a team as code owners November 18, 2024 22:56
@wedaly wedaly requested review from doniacld and brlbil November 18, 2024 22:56
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 18, 2024
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Nov 18, 2024
@tklauser tklauser added the release-note/ci This PR makes changes to the CI. label Nov 19, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 19, 2024
@wedaly wedaly force-pushed the cilium-ipv6-connectivity-test-fixes branch from f2ebd02 to 2a9e656 Compare November 19, 2024 16:58
@wedaly
Copy link
Author

wedaly commented Nov 19, 2024

thanks, updated to use net/netip package

@tklauser
Copy link
Member

/test

@tklauser tklauser enabled auto-merge November 20, 2024 14:44
@wedaly
Copy link
Author

wedaly commented Nov 20, 2024

/test

1 similar comment
@wedaly
Copy link
Author

wedaly commented Nov 20, 2024

/test

auto-merge was automatically disabled November 20, 2024 22:59

Head branch was pushed to by a user without write access

@wedaly wedaly force-pushed the cilium-ipv6-connectivity-test-fixes branch from 2a9e656 to 16d666d Compare November 20, 2024 22:59
@wedaly
Copy link
Author

wedaly commented Nov 20, 2024

Rebased to try to fix CI failures

+ docker run --network host -v /home/runner/.kube/config:/root/.kube/config -v /home/runner/work/cilium/cilium:/root/app -v /home/runner/.aws:/root/.aws -v /home/runner/.azure:/root/.azure -v /home/runner/.config/gcloud:/root/.config/gcloud quay.io/cilium/cilium-cli-ci:2a9e656b33c09645b9f8a533a7cb02bfdc84265e cilium features status -o markdown --output-file=feature-status.md
unknown command "features" for "cilium"

Suspect my branch was out-of-date, since features CLI command got added recently

@tklauser
Copy link
Member

/test

@julianwiedmann julianwiedmann added the feature/ipv6-only Relates to single-stack IPv6 support. label Nov 25, 2024
Handle external CIDR and IP addresses uses IPv6.

Command used to test:
  cilium connectivity test \
    --external-ip "2606:4700:4700::1111" \
    --external-other-ip "2606:4700:4700::1001" \
    --external-cidr "2606:4700:4700::/48"

Fixes: cilium#35553

Signed-off-by: Will Daly <widaly@microsoft.com>
@wedaly wedaly force-pushed the cilium-ipv6-connectivity-test-fixes branch from 16d666d to b7edc08 Compare December 6, 2024 22:03
@julianwiedmann
Copy link
Member

/test

@julianwiedmann julianwiedmann added this pull request to the merge queue Dec 10, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 10, 2024
Merged via the queue into cilium:main with commit cc2eb8b Dec 10, 2024
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary feature/ipv6-only Relates to single-stack IPv6 support. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Cilium connectivity test on IPv6-only clusters
5 participants