Skip to content

🐛 Fix Kind CI dockerhost EndpointSlice IPv6 validation failure - #680

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
Ladas:fix/dockerhost-ipv6
Feb 13, 2026
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
Ladas:fix/dockerhost-ipv6

Conversation

@Ladas

@Ladas Ladas commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix Configure dockerhost service for Kind CI step that fails on recent GitHub runner images
  • Filter docker network inspect kind output to select only IPv4 gateways, matching the EndpointSlice addressType: IPv4 declaration

Root Cause Analysis

Symptom: All Kind CI runs failing since 2026-02-12 evening with:

The EndpointSlice "dockerhost" is invalid: endpoints[0].addresses[0]:
Invalid value: "fc00:f853:ccd:e793::1": must be a valid IPv4 address

Affected runs: PR #679 (fix-keycloak), two dependabot PRs — 4 consecutive failures on the same step.

Root cause: .github/scripts/common/70-configure-dockerhost.sh uses docker network inspect kind | jq ... | head -1 to get the Docker gateway IP. The Kind network has both IPv4 and IPv6 IPAM configs. On recent GitHub runner images (ubuntu-24.04 20260209+), the IPv6 gateway (fc00:f853:ccd:e793::1) is returned first. The EndpointSlice is declared with addressType: IPv4, so applying an IPv6 address fails validation.

Introduced: Latent bug since commit 13cbe64 (2025-11-26, "Add modular deployment scripts for CI and local use"). Surfaced when runner images changed IPAM ordering.

Fix: Add grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' to filter for IPv4 addresses before head -1.

Test plan

🤖 Generated with Claude Code

The `docker network inspect kind` command returns both IPv4 and IPv6
gateways. On recent GitHub runner images (ubuntu-24.04 20260209+), the
IPv6 gateway is returned first, causing the EndpointSlice (which
declares addressType: IPv4) to fail validation:

  "fc00:f853:ccd:e793::1": must be a valid IPv4 address

Filter gateway addresses with grep to select only IPv4, matching the
EndpointSlice addressType.

Root cause: latent bug since 13cbe64 (2025-11-26), surfaced when
runner images changed IPAM ordering on 2026-02-12.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@pdettori
pdettori merged commit 6ec07e5 into rossoctl:main Feb 13, 2026
14 checks passed
@mrsabath mrsabath mentioned this pull request Jul 20, 2026
11 of 18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants