talos icon indicating copy to clipboard operation
talos copied to clipboard

talosctl on ipv6 disabled systems

Open omerfsen opened this issue 1 year ago • 3 comments

Bug Report

Description

On ubuntu 22.04 or 24.04 (tested on both) if IPV6 is disabled before using talosctl it gives an error like below. What I did is to re-enable ipv6 and allow talos to disable ipv6 via talosctl (i think this is default behaviour of talosctl)

Logs

cat /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="apparmor=0 ipv6.disable=1"
GRUB_CMDLINE_LINUX="apparmor=0 ipv6.disable=1"
...

and sudo update-grub2 is ran and rebooted system after that we ensure there is no IPV6 on system and run talosctl and get error below:

talosctl cluster create
validating CIDR and reserving IPs
generating PKI and tokens
creating network talos-default
creating controlplane nodes
1 error occurred:
        * Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /proc/sys/net/ipv6/conf/all/disable_ipv6: no such file or directory: unknown

Environment

  • Talos version:
talosctl version
Client:
        Tag:         v1.7.6
        SHA:         ae67123a
        Built:       
        Go version:  go1.22.5
        OS/Arch:     linux/amd64
  • Kubernetes version:
kubectl version
Client Version: v1.30.3
  • Platform: Ubuntu 22.04 or 24.04 x64

omerfsen avatar Aug 11 '24 21:08 omerfsen

Talos actually tries to enable IPv6 in a container (as it's disabled by default in Docker).

So are you looking towards running Talos in Docker on IPv6-disabled system?

smira avatar Aug 12 '24 12:08 smira

Ok I see,

At https://www.talos.dev/v1.7/reference/cli/ I saw

--docker-disable-ipv6

I think this can be closed. But i think we can mention (on https://www.talos.dev/v1.7/introduction/quickstart/) default configuration requires/enables IPv6

omerfsen avatar Aug 12 '24 13:08 omerfsen

Some Talos features (e.g. SideroLink, KubeSpan) require IPv6 (but not connectivity on IPv6).

smira avatar Aug 12 '24 13:08 smira

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 09 '25 02:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Feb 15 '25 02:02 github-actions[bot]