opentofu: give the woodpecker-agent LXCs IPv6 (root cause) #54

Merged
k.renner merged 1 commits from agents-lxc-ipv6 into master 2026-06-26 13:19:36 +00:00
1 Commits
Author SHA1 Message Date
k.rennerandClaude Opus 4.8 3475c2013c opentofu: give the woodpecker-agent LXCs IPv6 (the actual root cause)
ci/woodpecker/push/deploy-infrastructure Pipeline failed
The agents are unprivileged Proxmox LXCs whose ip_config had only an ipv4
block — no IPv6 at all. So no matter how Docker/Woodpecker were configured
for v6 (daemon.json ip6tables, WOODPECKER_BACKEND_DOCKER_ENABLE_IPV6), the
step containers had no v6 uplink to NAT onto, and deploys to v6-only hosts
(proxy-1) failed 'Network unreachable'. IPv4 NAT works in these LXCs, so v6
NAT will too once the LXC actually has v6.

Add an optional ipv6 block to the proxmox_lxc module (auto/dhcp/static) and
set ipv6_address = "auto" (SLAAC off v40srv) for the agents.

NOTE: `initialization` is in the module's ignore_changes, so this does NOT
apply to running agents on a normal apply — they must be RECREATED to pick
up v6 (they're tagged `transient`). Recreate one at a time to keep CI up,
then re-run install-woodpecker-agent.yml on each.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 15:07:11 +02:00