GeezerVison is showing github.com — TALM bootstrap: declarative per-node disk config for non-identical drives · Issue #1812 · developing-today/code
TALM bootstrap: declarative per-node disk config for non-identical drives #1812DescriptionRelocated from dezren39/darwin-nix#503 on 2026-10-28 - it was filed in the wrong repo; developing-today/code is its home. Original content follows, verbatim.
Problem
Drew's open design question, verbatim from the register: how do you declaratively configure, in Talos/TALM, a bunch of hard drives that are all different per machine?
The cluster must be bootstrapped with TALM (cozystack/talm) — turn on bare machines running Talos, connect them, and TALM harvests each node's actual hardware into named per-node configs that we keep in git. Drew got this working locally with a couple of containers, barely; the full bare-metal flow is unproven. Hard constraints: everything bootstrappable/declarative, no HashiCorp anything.
Source: idea register 2026-10-20. Research baseline: hidden_files/research-brief-2026-10-03.md in the goal (talm v0.35.0, Talos v1.14.1, Cozystack v1.6.4).
What we know
- Target: 3–5 machines (chosen by the hardware-inventory issue) as the first Talos/Cozystack nodes.
- Host OS approach: Talos's small, frozen read-only host image on each machine's NVMe boot drive; the rest of the NVMe is for minor logs and wear-leveling headroom across consumer SSDs (best: 990 Pro).
- Per-node drives differ (SSD models/sizes vary; HDD counts vary) — the per-node config harvest is presumably the answer; document exactly how disks get matched/named per node.
- Downstream consumers of this config: the storage-pools issue (RAID/LINSTOR layouts) and Cozystack services (Postgres, NATS, RustFS, FluxCD, Tailscale, Cloudflare tunnel).
Acceptance / first steps
- Research talm's discovery/harvest flow for heterogeneous disks: how drives are identified in per-node configs, what happens on disk replacement.
- Prove the flow end-to-end on the first nodes: bare machine → Talos booted → talm harvest → named per-node config committed to git → reproducible re-apply.
- Document the frozen read-only host-image layout (OS partition vs logs/wear space) for our NVMe boot drives.
- Write the runbook: adding a node, replacing a disk, wiping/rebuilding a node from config only.
Open questions
- How are non-identical system disks handled if a boot NVMe dies and is replaced with a different model/size?
- Where do the harvested per-node configs live — this repo, or a dedicated cluster-config repo?
Acceptance criteria
- A worked TALM/Talos approach for per-node declarative disk config on non-identical drives is recorded on this issue (or a linked doc/PR), proven on at least the container/local flow Drew already has partially working.
- The approach keeps everything bootstrappable/declarative and uses no HashiCorp tooling (hard constraint in the body).
- Follow-up issues are filed and linked for the bare-metal proof on the first cluster nodes (see Hardware inventory + hardware-stats gathering: pick the first 3–5 cluster machines #1810).
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 Comments carried over from dezren39/darwin-nix#503 (verbatim, in order):
dezren39 - 2026-10-26T21:33:04Z
Intake review
🤖 Fleet monitor intake pass (protocol §5).
Related: the 2026-10-20 lab-cluster idea register (linked in the body); sibling issues dezren39/darwin-nix#501 (inventory / first nodes), dezren39/darwin-nix#502, dezren39/darwin-nix#504, dezren39/darwin-nix#505.
Live check: still open and unlabelled at intake; no merged PR resolves it — the full bare-metal TALM flow is described in the body as unproven.
Notes / risks: per-node drive differences are the core difficulty; a scheme that only works on identical disks does not meet the stated problem.
Suggested approach: prove the harvest-to-named-config flow on the local/container setup first and record it, then schedule the bare-metal proof once dezren39/darwin-nix#501 picks the first nodes.
dezren39 - 2026-10-27T03:26:05Z
Superseded by #1086 (TALM + Talos bootstrap epic)
The basement cluster program was seeded into its standard structure on 2026-10-26 (roadmap + epics + sub-issue tasks in developing-today/code, all in org Project #4 as Area=lab-cluster). Do not start work from this issue - work is tracked at #1086 (TALM + Talos bootstrap epic). Full mapping is on nixdezren39/nix#508. Left open for Drew to close as superseded. dezren39 commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 developing-today commented on Nov 3, 2026 developing-today commented on Nov 3, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-o
- Session / ID: task 8148
- Found via: queue claim
- Task: Docs deliverable for issue TALM bootstrap: declarative per-node disk config for non-identical drives #1812 is complete and merged: PR docs(infra/cluster): TALM/Talos per-node disk config answer + runbook (#1812) #5052 (squash
d5fa8062bfe219a75eaae5e018cfde988378694b) adds infra/cluster/README.md + infra/cluster/examples/ — the TALM node-file mechanism, identity-based disk matching (diskSelector serial/wwid; UserVolumeConfig CEL with !system_disk), boot-disk layout, the add-node / replace-disk / rebuild-from-config runbook, and the local container-flow proof notes, all transcribed from the verified triage record (task 7746) with sources cited. Both YAML examples parse (verified; laptop copies md5-identical to the parsed copies).
- Acceptance mapping: bullets 1, 3, 4 (worked approach recorded in a linked doc; frozen host-image layout documented; runbook written) and the container/local-flow half of the criteria are done. The harvested-config home question is answered in the doc (
infra/cluster/<cluster>/ here; a separate repo would be Drew's call).
- Remaining: the bare-metal proof bullet (first nodes: harvest → named config → reproducible re-apply, plus the rebuild drill) stays open on this issue, gated on Hardware inventory + hardware-stats gathering: pick the first 3–5 cluster machines #1810 (hardware inventory) under epic epic(cluster): TALM + Talos bootstrap #1086 — exactly the ordering the triage recorded. Issue TALM bootstrap: declarative per-node disk config for non-identical drives #1812 stays open for that bullet; this note marks it ready for it.
dezren39 commented on Nov 24, 2026 Pointer for this issue's open question — "Where do the harvested per-node configs live — this repo, or a dedicated cluster-config repo?": the question is now owned by #14016 (design: cluster-config home + TALM bootstrap skeleton, the Phase 1 head of the sequenced cluster plan on #1817), which will record the decision with reasoning and link it back here. dezren39 commented on Nov 24, 2026 Answered on #14016: the config home is infra/cluster/basement/ in this repo (skeleton merged in PR #14153). Details and proof are on #14016.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|