talos icon indicating copy to clipboard operation
talos copied to clipboard

KernelParamSpecController fails to handle sysctl params that can't be read before being written

Open michaelbeaumont opened this issue 1 year ago • 1 comments

Bug Report

On trying to set net.ipv6.conf.enp1s0.stable_secret I see:

user: warning: [2024-09-20T21:23:10.724128463Z]: [talos] controller failed
 {"component": "controller-runtime", "controller":
 "runtime.KernelParamSpecController", "error": "1 error occurred:\n\t* read /
 proc/sys/net/ipv6/conf/enp1s0/stable_secret: input/output error\n\n"}

It appears if this param is read before it's written, it returns input/output error, as described in the commit introducing the param

I solved this by baking it into the kernel params, which is more solid anyway, but the behavior isn't ideal.

Description

Logs

Environment

  • Talos version: v1.8.0-beta.1
  • Kubernetes version:
Client Version: v1.31.1
Server Version: v1.31.0
  • Platform: metal

michaelbeaumont avatar Sep 20 '24 21:09 michaelbeaumont