You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cni-install: cniconfig.go logs via an unbound ctrl.Log — 'Wrote CNI config' and #689's durable-entry write/error lines never reach stdout #696
cni/internal/install/cniconfig.go logs through installLog = ctrl.Log.WithName("installer") — controller-runtime's global logger — but nothing in cni/ ever calls ctrl.SetLogger(...). controller-runtime discards writes to an unbound global logger (after a one-time "log.SetLogger(...) was never called" notice). So every installLog.Info/Error in that file is dropped in production.
Observed on talos-main (rev194, 2026-09-05): the cni-install init container log on all five agent pods, plus a freshly created sixth, contains exactly three lines ending at CNI binaries installed. Neither #689's new Wrote the durable aether CNI entry nor the pre-existingWrote CNI config line ever appears. Only in.logger (the slog-bridged logger in install.go) reaches stdout.
The rev194 validation could not confirm the durable file's presence from any pod-side signal because of this; it had to fall back to code reading.
Fix
Either bind ctrl.SetLogger to the slog bridge at cni-install startup (the agent does this in common/telemetry/common/log — reuse), or drop ctrl.Log in cniconfig.go and pass in.logger (the *slog.Logger the rest of the installer uses) down. The second is simpler and removes a controller-runtime dependency from a package that has no other reason to import it. Add a test that captures the installer's logger output and asserts the Wrote CNI config / Wrote the durable aether CNI entry lines are emitted.
Validated on talos-main after the #710 merge (helm rev199, chart 0.92.5, appVersion 3093d6b, 21:01–21:06Z 2026-09-05): every one of the five cni-install init-container logs now carries Wrote CNI config and Wrote the durable aether CNI entry (1 each, 0 ERROR) — the lines that had been silently dropped since #689. Roll was hitless: prober liveness 0 errors / 6,590, restarts 0 fleet-wide.
Activity
fix(cni): make the installer's log lines actually reach stdout (#696) (…
bpalermo commentedon Sep 5, 2026
Validated on talos-main after the #710 merge (helm rev199, chart 0.92.5, appVersion 3093d6b, 21:01–21:06Z 2026-09-05): every one of the five
cni-installinit-container logs now carriesWrote CNI configandWrote the durable aether CNI entry(1 each, 0 ERROR) — the lines that had been silently dropped since #689. Roll was hitless: prober liveness 0 errors / 6,590, restarts 0 fleet-wide.