c1 VLAN-20 rebuild: re-IP, dual-stack, BGP control plane (mc#27) #40
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs!40
Loading…
Reference in a new issue
No description provided.
Delete branch "c1-vlan20-rebuild"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the 2026-11-17 c1 rebuild window (mc#27): every c1 host onto VLAN 20, cluster dual-stack, no legacy addresses kept. Companions: lab/iac #140 (router ports/reservations/peers), lab/clusters #1716 (Bao re-point + BGP/LB CRs). Inventory + decisions: lab repo
c1-rebuild-address-inventory.md; allocation canonical in docs/adr/0012.Hosts (VLAN 20, ADR-0012: last octet shared across families)
animeteamspeak.lan.ulaPrefix(default null — harness VMs and the dormant mini-01/game-01 records stay v4-only, untouched); cluster-think setsfdd5:c8ef:2fa0:20::.animeteamspeak.host.ip6published for consumers (k3s node-ip). The ip6 is derived once in network.nix'slet— readinghost.ip6back inside the providing module is an eval cycle (caught by cluster-invariants; comment in the file documents it).accept_ra=2on the NIC whenever a ULA exists: these hosts forward (ip_forward=1), so the kernel ignores RAs otherwise — the v6 default route needs it.Cluster (fixed now, immutable after boot)
--cluster-cidr/--service-cidrv4-first +--node-cidr-mask-size-ipv6=64, dual--node-ipbgpControlPlane.enabled = trueon c1: operator installs the BGP CRDs at boot (verified against mini: same operator v1.20.4, old-style cilium.io/v2 CRs live against these routers since 2026-03). Peers/pool/advertisements are CRs (lab/clusters#1716), not values.Bao
openbao-agent default https://10.30.20.21:8200; bao-enroll/pki-ceremony scripts re-point. Note for the window (documented in the inventory): the listener certs' SANs carry 10.10.1.x — reissue happens inside the window from the restored pki-infra mount (keys survive on the thinks at /var/lib/openbao-tls/api.key).
Verification
task gategreen: fmt, flake check, cluster-invariants, secrets-hygiene, toplevel eval of all 21 configs. Targeted evals: think-01 → fdd5:c8ef:2fa0:20::21 + accept_ra=2 + dual node-ip, pi-04 → ::14, test-01/mini-01 → no ULA, bgp flag present only on c1's ciliumValues. Harness rehearsal (task vm:reset-checkon the dev pin) follows on this branch before the window opens.Merge order (deliberate — do NOT merge casually)
This PR merges FIRST, while hosts are still cabled to VLAN 1000: comin rolls the new generation, hosts self-isolate on the wrong VLAN for ~2 minutes until lab/iac #140's merge flips the port PVIDs. That gap is the window's phase-1, sequenced by the runbook.
Rehearsal evidence (harness) — PASS on
origin/dev=fa39d3c+fe0e257(this PR's exact commits;vm:pushpinned dev to them before the run).Chain that passed, in order:
lab:install— three fresh installs from ISOs built from this commitlab:boot+vm:check— comin + chassis + gitops convergence onto devlab:cluster-check— 3-server etcd, VIP 10.30.20.20, nodes Readyvm:openbao-cluster-check— harness Raft (the shape of the window's Bao rebuild)vm:reset-check— the mc#27 checkbox, every assertion:--nodedry run changes nothing (k3s active, 3 Ready)--node --apply test-01(bootstrap leader, the hard case): rejoined,datastore kept (canary survived), rejoin drop-in auto-removed,
k3s-rejoin-dropin-checkproven to fire on a planted leftover,node-health healthy after rebuild
held--clusterrefuses a partial server set--clusterdry run changes nothing (no markers, canary intact)--cluster --applyall three: wiped, leader-first reboots, OpenBaoanswers 429 unsealed on each, 3 Ready on a fresh datastore (canary
gone), Flux deployments Available, node-health healthy ×3
Stage subset, deliberately: the boot-path stages not run (initrd/watchdog/
bootcount/deadman/revert/retry/rotate) exercise code paths this diff does not
touch; the touched paths — install, convergence, cluster formation, Raft,
both reset modes — are exactly the ones run.
task gate(all 21 hosts eval,cluster-invariants, secrets-hygiene, fmt) is green on the branch.
Environmental note (not a config bug, recorded for the runbook): the first
vm:reset-checkattempt aborted mid--cluster --applywhen an unrelatedcontainerlab deploy on the workstation rewrote
/etc/ssh/ssh_config.d/clab-*.confmode 600, which fails every ssh client ("Can't open user config file …
Permission denied") — known containerlab behavior, hit before on the crs309
lab. Fix:
sudo chmod 644 /etc/ssh/ssh_config.d/clab-*.conf. The interrupted--cluster --applywas then resumed cleanly (per-host markers: test-01marker-skipped, test-02/03 wiped, leader-first reboots), and the full scripted
check passed from its start on the recovered cluster. The resume itself is
extra evidence that the reset script is safe to interrupt — exactly the
property phase 4 of the window relies on.
Window prep carried in this PR:
scripts/bao-api-cert-reissue.sh(phase 0.3of the runbook) — CSRs from the on-think
api.key, signed by the livepki-infra, new chains committed here so Bao boots valid on the new IPs.Gate re-run on review fixes (2026-11-17): harness VMs run exactly the
6d03bd6build (toplevel store paths equal per VM, so comin had nothing to deploy). Stages lab:cluster-check, vm:openbao-cluster-check, vm:reset-check: all PASS (node rebuild kept the datastore, cluster reset wiped it, k3s + Flux back on all three) with the new k3s-reset.sh. Not coverable on the harness: agents inside --cluster (no agents) and the /var/lib/rook wipe (no Rook).a4d9aafafter it touches only scripts/bao-api-cert-reissue.sh (not in the system closure).