Repository navigation
Description
Summary
cni-install appends the aether-cni plugin entry to flannel's 10-flannel.conflist once, from an init container. kube-flannel's own init container does cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conflist — an unconditional overwrite from its ConfigMap template — every time a flannel pod is (re)created. Whenever that happens after cni-install has run, the aether entry is silently stripped fleet-wide: the plugin binary stays on disk but is unchained, no CNI ADD ever reaches the agent, and every subsequently-started pod runs outside the mesh.
Observed 2026-08-29 (third power-blip incident): not triggered by the boot race (#640). Talos re-applied its bundled bootstrap manifests (node-fetch field manager) at 19:01:09Z — ~37 min after apiserver came up — which updated the kube-flannel DaemonSet and rolled all 6 pods (restartCount 0, fresh pods). Each node's conflist mtime matches its new flannel pod's init container to the second. Result: plugins=[flannel, portmap] on all 5 workers, total mesh outage that workload rolls could not fix (a replacement pod just goes through plain flannel again), and one that #641's eviction self-heal also cannot fix (evicting an unmeshed pod yields another unmeshed pod).
Why this is NOT power-event-specific
Talos re-syncs its bootstrap manifests on boot, on talosctl apply-config, and on Kubernetes upgrades. Any of those recreates the flannel pods and clobbers the chain. aether appends once; flannel overwrites on every re-sync. aether always loses eventually.
Detection gap
Nothing watches the conflist. The failure presented only as downstream symptoms (prober SLI 100% failure, ghost sweep "live mesh pod missing from local storage" warnings). The #641 gauge (unmeshed_pods) will at least page on the consequence once deployed, but the sweep's eviction remediation is actively counterproductive here — it churns pods without fixing anything (consider suppressing eviction retries for a pod already evicted once for the same cause, or detecting the unchained-conflist condition directly).
Fix shape
Appending into a file that another DaemonSet cp -fs can never be made safe. Options, strongest first:
- Standalone
05-aether.conflist(own file, sorts before10-flannel.conflist, no competing writer) — requires the aether conflist to be self-sufficient (delegate/chain to flannel from aether's file, or use atype: aether-cnitop-level plugin that wraps the delegate) since kubelet uses only the lexicographically-first conflist. Needs design: the current entry is a chained plugin inside flannel's list. - Re-assert loop in the long-running agent: watch
/etc/cni/net.d(fsnotify, same machinery asagent/storage) and re-append the entry whenever it goes missing; log + metric each re-assert. Simple, keeps the chained model, closes the window to seconds. Can ship independently of (1) and is the pragmatic first step. - At minimum: a gauge/alert "aether-cni present in active conflist" per node.
(2) + (3) recommended now; evaluate (1) as the structural fix.
Incident context
- 2026-08-29 timeline: power out 18:07–18:12Z; nodes boot; cni-install chains 18:37–18:59Z; Talos manifest re-apply 19:01:09Z strips it; recovery required rolling
ds/aether-agent(re-runs cni-install) before re-rolling workloads — workload rolls alone were proven useless (39 pods rolled, SLI stayed at 100% failure). - Related: CNI boot race: pods restarted before cni-install come up unregistered — no self-heal, total mesh outage after node reboot #640 (boot race, same symptom different mechanism), fix(agent): self-heal pods left unmeshed by the reboot CNI boot race #641 (self-heal that covers CNI boot race: pods restarted before cni-install come up unregistered — no self-heal, total mesh outage after node reboot #640 but not this), node lifecycle: re-arm the agent-not-ready taint across reboots and agent outages #569 (taint lifecycle).
Activity
fix(agent): re-assert the aether-cni conflist entry when a competing …
bpalermo commentedon Sep 2, 2026
Fix shape 1 (
05-aether.conflist): recommend closing as won't-fix — superseded by a better mechanismDesign exploration done (2026-09-02). Summary of why the standalone file is the wrong structural fix, and what to do instead.
Why not
05-aether.conflistkubelet uses only the lexicographically-first valid conflist, so aether's file would have to contain the entire chain — including a copy of flannel's plugin config. That means:
10-flannel.conflistforever, so aether must still watch it — but the watcher goes from "re-append one entry into someone else's file" (small, idempotent, fails open) to "maintain a full mirror of someone else's network config in a file I am now authoritative for" (stateful, fails closed). More machinery, bigger blast radius, to shrink a ~2.5s window.apply-config, k8s upgrade) is exactly this issue's trigger list.preStopis skipped on force-delete/node crash;helm uninstallruns no node-side code). Ironically, flannel'scp -f— the cause of this issue — is currently aether's uninstall cleanup: it strips a fail-closed orphaned entry and heals the node. A05-file removes that safety valve.05-version and nothing deletes the file; the old code re-appends into10-flannel.conflist, which the runtime no longer reads, the gauge reads 1, and the node is silently pinned to a frozen chain.05-sorting first is a convention, not a guarantee — any00-/01-file silently wins.The better mechanism, if we do this at all
CNI spec 1.1.0 sibling plugin-conf directory.
NetworkConfFromFilealso loads<netdir>/<network-name>/*.confand appends them to the chain unlessloadOnlyInlinedPlugins: true(spec §"loadOnlyInlinedPlugins";libcni/conf.goNetworkPluginConfsFromFiles). For Talos flannel that is/etc/cni/net.d/cbr0/.This gives fix shape 1 everything it wanted with none of the ownership risk: aether owns its own file, flannel stays authoritative for its own config (nothing is mirrored), a flannel config change is picked up automatically, aether lands after the inlined plugins (exactly where it is today), and if the runtime does not support it the result fails open — aether simply unchained, which the existing gauge already reports.
Gated on two runtime facts, deliberately not verified during a soak window:
NetworkPluginConfsFromFileslanded in cni v1.2.0; containerd 1.7.x vendors v1.1.x, containerd 2.x vendors v1.2.3+);Both are answerable with one canary: drop a harmless
/etc/cni/net.d/cbr0/99-probe.confon one node and see whether it runs.Two cheaper things worth more than either option
Filed separately as #667: with the agent down, a flannel roll strips the entry and nothing repairs it — and
cni_conflist_chainedgoes absent, not 0, so the alert cannot fire, while the taint gate (os.Staton the socket) still lets the node accept pods. Result: silently unmeshed pods. That is this issue's failure mode reduced to one node and made invisible.Correction to this issue's text
The claim that #641's eviction is counterproductive no longer holds post-#650: the ghost sweep evicts after ~3 consecutive 60s passes, by which time the conflist has been repaired for ~3 minutes, so the replacement pod comes up meshed. #650 and #641 compose correctly.
Recommendation
Close fix shape 1 as won't-fix/superseded; keep the re-assert loop as the accepted answer for the chained model (validated in production 2026-09-02: strip → repair in ~2.5s); do #667 first; and open the sibling-directory work as its own issue only after the canary answers the two runtime questions.
fix(agent): gate taint removal and agent readiness on CNI conflist ch…
bpalermo commentedon Sep 5, 2026
Closing — the structural work this was left open for has landed, and the last comment already retired the standalone-conflist fix shape as superseded:
AetherCNIConflistUnchained(per-node via the mesh-dns inventory join, sinceabsent()is fleet-wide),AetherCNIConflistReassertingoff the counter,AetherCNIConflistMetricsAbsent; promtool unit tests + CI.cni-installwrites a durable.aether-cni-entrythe reasserter primes from after a boot-time strip; the.jsonvariant would have been a live network config (containerd loads it), so the extension is deliberately unmatched by every loader.Residual, tracked outside this issue: the prime-after-process-restart path of #689 is proven by unit tests but not yet exercised on a node (needs
talosctl/kubectl debug, denied in the automation session), and #696 (cni-install'sctrl.Logis unbound, so its "wrote the durable entry" line never reaches stdout).fix(cni): make the installer's log lines actually reach stdout (#696) (…
fix(common/file): fsync the file before the rename and the directory …
docs: document shipped features found undocumented by the 2026-09-15 …