Problem case: one change shipped as a cross-system PR merge train (c1 DNS) #2

Closed
opened 2026-11-19 04:22:01 +00:00 by ginjiruu · 1 comment
Owner

Problem case for the operator's design: one logical change, the c1 internal DNS service (lab/clusters#1673), currently ships as a chain of PRs that a human merges in order. The goal is air-gap style: one artifact goes in, the site converges, nobody orders anything by hand.

The chain (2026-11-19)

# Change System Applied by
1 lab/iac#162: OpenBao policy, ESO may write infra/apps/c1/generated/* OpenBao tofu-controller on mini
2 lab/clusters#1742: password ClusterGenerator c1 Flux on c1
3 lab/clusters#1743: PowerDNS primary/secondaries/zones, API key via generator + PushSecret c1 Flux on c1
4 (next) recursor on 10.30.100.53, external-dns c1 Flux on c1
5 (next) lab/iac: DHCP hands out the recursor, egress lock on 53/853, Cloudflare wildcard removed routers, Cloudflare tofu-controller on mini

The edges are of three kinds

  1. In-graph (no train needed). 2 → 3 → 4 are ordered by Flux dependsOn and health checks inside one cluster. They can be one commit today. They were split only to keep each review small.
  2. Cross-system but convergent (order doesn't matter, only time-to-green). 1 → 3: if 3 lands first, the PushSecret is denied and ESO retries until the grant exists, then everything converges with no harm done. Also, 1 is a one-time platform capability: once it exists, every later app that uses generated credentials is a single artifact.
  3. Cross-system and damaging (order matters). 4 → 5: pointing DHCP at a recursor that isn't answering is a site-wide DNS outage, and the egress lock makes it worse. Applying 5 early isn't slow, it's harmful. Nothing today expresses "apply 5 only once 10.30.100.53 answers", because Flux has no cross-cluster or cross-controller dependsOn, and the router root runs on a different cluster.

What one artifact would need

  • A release bundle pinning revisions of every repo it touches (clusters, iac, machine-configs), shipped as one artifact (e.g. OCI) that an air-gapped site can import.
  • One dependency graph across reconcilers: Flux Kustomizations on any cluster, tofu-controller Terraform objects, NixOS/comin generations.
  • Health gates on damaging edges, evaluated against the live system (here: "the recursor answers for a known int name and a public name"), not "the previous step was applied".
  • Convergent edges just retry. The operator should classify edges and only gate the damaging ones. Gating everything recreates the train.
  • Capability declarations: an app artifact declares what it needs (e.g. openbao: eso-generated-write), and the operator holds it, visibly, until the platform provides it.

A cheaper in-repo stopgap for kind 3: make the damaging step self-gating. For example, a Terraform precondition in the router root that fails the plan until the recursor answers. The tofu-controller then retries until it's safe, and the whole chain can merge at once.

Earlier case of the same family

c1 Gateway API (lab/clusters#1733/#1735, reverted in #1736, redone as #1737 + #1738). There the "train" was a mistake rather than a necessity: the correct change was one commit whose ordering Flux could express:

  • the CRDs Kustomization before cilium;
  • operator.rollOutPods so a config change restarts the operator;
  • gatewayClass.create: "true" because Helm's cached discovery misses CRDs that are seconds old.

Lesson for the operator: a lot of "ordering" is really missing restart or ordering semantics inside one system. Those belong in the artifact, not in a human-run sequence.

Done when

A fresh or air-gapped site given one artifact ends with working internal DNS: authoritative servers, recursor, DHCP pointing at it, egress lock. No PR ordering, no manual step, and the damaging edge (DHCP switch) never fires before the recursor is healthy.

Problem case for the operator's design: one logical change, the c1 internal DNS service (lab/clusters#1673), currently ships as a chain of PRs that a human merges in order. The goal is air-gap style: one artifact goes in, the site converges, nobody orders anything by hand. ## The chain (2026-11-19) | # | Change | System | Applied by | |---|---|---|---| | 1 | lab/iac#162: OpenBao policy, ESO may write `infra/apps/c1/generated/*` | OpenBao | tofu-controller on **mini** | | 2 | lab/clusters#1742: password ClusterGenerator | c1 | Flux on c1 | | 3 | lab/clusters#1743: PowerDNS primary/secondaries/zones, API key via generator + PushSecret | c1 | Flux on c1 | | 4 | (next) recursor on 10.30.100.53, external-dns | c1 | Flux on c1 | | 5 | (next) lab/iac: DHCP hands out the recursor, egress lock on 53/853, Cloudflare wildcard removed | routers, Cloudflare | tofu-controller on mini | ## The edges are of three kinds 1. **In-graph (no train needed).** 2 → 3 → 4 are ordered by Flux `dependsOn` and health checks inside one cluster. They can be one commit today. They were split only to keep each review small. 2. **Cross-system but convergent (order doesn't matter, only time-to-green).** 1 → 3: if 3 lands first, the PushSecret is denied and ESO retries until the grant exists, then everything converges with no harm done. Also, 1 is a one-time *platform capability*: once it exists, every later app that uses generated credentials is a single artifact. 3. **Cross-system and damaging (order matters).** 4 → 5: pointing DHCP at a recursor that isn't answering is a site-wide DNS outage, and the egress lock makes it worse. Applying 5 early isn't slow, it's harmful. Nothing today expresses "apply 5 only once 10.30.100.53 answers", because Flux has no cross-cluster or cross-controller `dependsOn`, and the router root runs on a different cluster. ## What one artifact would need - **A release bundle** pinning revisions of every repo it touches (clusters, iac, machine-configs), shipped as one artifact (e.g. OCI) that an air-gapped site can import. - **One dependency graph across reconcilers:** Flux Kustomizations on any cluster, tofu-controller Terraform objects, NixOS/comin generations. - **Health gates on damaging edges,** evaluated against the live system (here: "the recursor answers for a known `int` name and a public name"), not "the previous step was applied". - **Convergent edges just retry.** The operator should classify edges and only gate the damaging ones. Gating everything recreates the train. - **Capability declarations:** an app artifact declares what it needs (e.g. `openbao: eso-generated-write`), and the operator holds it, visibly, until the platform provides it. A cheaper in-repo stopgap for kind 3: make the damaging step self-gating. For example, a Terraform precondition in the router root that fails the plan until the recursor answers. The tofu-controller then retries until it's safe, and the whole chain can merge at once. ## Earlier case of the same family c1 Gateway API (lab/clusters#1733/#1735, reverted in #1736, redone as #1737 + #1738). There the "train" was a mistake rather than a necessity: the correct change was one commit whose ordering Flux could express: - the CRDs Kustomization before cilium; - `operator.rollOutPods` so a config change restarts the operator; - `gatewayClass.create: "true"` because Helm's cached discovery misses CRDs that are seconds old. Lesson for the operator: a lot of "ordering" is really missing restart or ordering semantics *inside* one system. Those belong in the artifact, not in a human-run sequence. ## Done when A fresh or air-gapped site given one artifact ends with working internal DNS: authoritative servers, recursor, DHCP pointing at it, egress lock. No PR ordering, no manual step, and the damaging edge (DHCP switch) never fires before the recursor is healthy.
Author
Owner

Filed in the wrong project. This case belongs to releasectl (machine-configs ADR-0010, migration controller); it now lives in releasectl's LOGBOOK.md. Closing.

Filed in the wrong project. This case belongs to releasectl (machine-configs ADR-0010, migration controller); it now lives in releasectl's LOGBOOK.md. Closing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/maintenance-operator#2
No description provided.