Commit Graph
143 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 68045d9698 durable: remove the smartwal and parallel-walstore engines
- The provider refuses the removed names and, under every selector and
  before any selector comparison, a volume carrying their magic (SWAW;
  SWPW in either header slot), reading the file read-only and never
  modifying it. blockvolume --durable-impl and the launcher refuse the
  names with the same advice; the chart schema allows walstore only.
- core/storage/smartwal, core/storage/parallelwal and
  cmd/sw-block-testutil (whose one command corrupted smartwal records)
  are deleted, with the helm smartwal-corruption scenario and the
  parallel-walstore gate script.
- The replication harness runs on walstore; tests that ran on a removed
  engine only because a stub needed some store move to walstore, and the
  state_convergence label test moves to the in-memory BlockStore.
- sw-block cluster.check drops the removed engines' cases.
- Ledger: INV-OPEN-REMOVED-ENGINE-REFUSED-001 and
  INV-OPEN-REMOVED-ENGINE-NAME-REFUSED-001, an OpenRefused edge in M1, and
  the rows citing the removed tests updated. Docs: block-design 1.3 now
  describes the removal, the smartwal deep-dive and figure are gone, the
  scripts default to walstore, and the v1.1 notes carry the removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 20:38:54 -08:00
pingqiu ee334f66ff fix: preserve chunk layer in volume status reports 2026-11-29 04:15:28 -08:00
pingqiu 09b3fe445b test: retain chunk status in volume reports 2026-11-29 04:15:26 -08:00
pingqiu 4c7c99cf18 test: match cleanup evidence to bundle capture time 2026-11-28 13:40:52 -08:00
pingqiu c88406df7f fix: require evaluation time for cleanup freshness 2026-11-28 13:40:27 -08:00
pingqiu 7cfac5eee9 fix: require timestamps for age-bounded cleanup evidence 2026-11-28 13:34:19 -08:00
pingqiuandClaude Opus 5.5 2da008f236 test(master): the automatic path holds on an ack profile mismatch (red)
The gate reads every frontier rule from blockmaster's
--launcher-replication-ack, but a volume runs its own --replication-ack.
Adds the wire field (ProbeAnswer.ack_profile) and the result fields, with
tests: both gates hold, without fencing, when an answer's profile is
missing or differs from the master's, or the master's is unknown; the
probe round names the mismatch; the volume answers its own profile;
blockmaster refuses an unknown --launcher-replication-ack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:27:15 -08:00
pingqiuandClaude Opus 5.5 1ed7309c32 test(master): the automatic path holds a best_effort volume (red)
On both gates a best_effort volume whose primary is ineligible must get no
fencing round, keep its line and show best_effort_no_automatic_failover;
the same setup under sync-quorum fails over (the control). Red: today the
best_effort volume is fenced and failed over. The probe fake gains an ack
profile; the reason constant is added for the test to name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:02:45 -08:00
pingqiuandClaude Opus 5.5 a0ad707ecb fix(authority): the operator's expected line binds the failover through publication
The runtime checked --expect-current once, then ran the gate and published
without it: a move landing in between let the stale request move a line
the operator never saw. The reassign now carries the expected line and the
publisher mints only while the volume's line is exactly it (under its
lock); the gate decides on that same line (reachability and the fencing
round are the expected line's, never one read later).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:21:00 -08:00
pingqiuandClaude Opus 5.5 4a61a5ab29 fix(authority): a failback publishes the master's record of the target's addresses, never the caller's
The line was published at the data and control addresses the caller sent
(CLI flags, or the Kubernetes object's fields): a typo or a writer of that
object could make the fenced replica primary at an endpoint clients never
reach. The runtime now requires the master's own record of the target
(its fresh heartbeat slot, else its placement) and refuses a request whose
addresses differ, or a target with no record, before the gate runs, so a
refused request fences nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:58:50 -08:00
pingqiuandClaude Opus 5.5 5bf6e17ab1 replication, master, volume: count a peer only with the master-recorded store
A peer counts toward write ACKs only while its barrier store equals the
store the master recorded for it from a primary's attestation, carried in
the replica descriptor; empty never matches, and the peer's own word never
changes it. A record change re-sends the assignment at the same
generation and the primary updates expected stores in place.

A volume's first bind records its initial replicas: until each has an
attested store the fact carries the awaited count, the primary serves no
frontend I/O and reports "creating: waiting for replica attestations
(n of N)"; the primary learns new peers' stores with a barrier at LSN 0.
Replica rows show store_attested/store_id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 06:43:45 -08:00
pingqiuandClaude Opus 5.5 e79996437f wip: P2 primary fence below the floor refused; P3 test; basis census; test stand-ins state a basis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 05:54:29 -08:00
pingqiuandClaude Opus 5.5 726ec9dc0a wip: a lagging replica is fenced and counted; the target holds the highest fenced end
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:03:08 -08:00
pingqiuandClaude Opus 5.5 939fe74a8b wip: master side of the fencing round, and the heal after a failed one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 03:51:58 -08:00
pingqiuandClaude Opus 5.5 c9fe8a7123 authority, master: one decider: a primary change is published only through the promotion gate
The promotion gate (one function: the probe round's answers -> the allowed
replica and its evidence) now covers every replicated volume, RF2
included: on main RF2 and every observation-fed failover promoted on
heartbeat readiness with no evidence of the candidate's data. The gate
puts its evidence on the slot it allows; the controller's failover and
rebalance carry it and publish nothing without it. The legacy PolicyOwner
(no production caller) is deleted. Failback is the operator's planned move
through the gate: the target is probed by the round, and the move is
allowed only when the target is in every acknowledgement set (sync_all at
any replica count, sync_quorum with RF2); RF3 sync_quorum (needs a seal)
and best_effort (forced only) are refused with typed errors.

About forty tests encoded the evidence-free decision. Their subjects are
unchanged; each now gets the candidate's evidence the way the gate gives
it (the controller's candidate helper, the convergence snapshots, a
stand-in gate sink for the observation-fed routes, a static round answer
for the RF2 and failback tests). None is skipped or loosened. New: ready
replicas without the gate's evidence promote nothing; RF2 promotes on a
ready answer and not without one; the planned-move guard, one row per ack
profile and replica count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 03:23:18 -08:00
pingqiuandClaude Opus 5.5 e82abea6b8 k8s: Kubernetes installs run blockmaster with mutual TLS; the plaintext off-host bind flag is refused
blockmaster refuses --insecure-external-bind (a non-loopback --listen needs
mutual TLS; the runtime HTTP listener stays on loopback), and
--launcher-master-tls-secret-prefix makes each generated volume mount its
server's node certificate Secret and dial with it. The chart, the launcher
renderer, the alpha/g15b/g15d manifests and gate scripts mount the Secrets
and pass the TLS flags; network.externalStatus and the frontend runtime
HTTP option fail the render. scripts/k8s-alpha-certs.sh issues development
certificates and the role file. The systemd startup gate runs its
off-loopback master with mutual TLS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:20:11 -08:00
pingqiuandClaude Opus 5.5 dc359e16c8 sw-block: mutual TLS to blockmaster from SW_BLOCK_TLS_CERT/_KEY/_CA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:12:42 -08:00
pingqiuandClaude Opus 5.5 7fff8f288e fold: injected failback dial through link.DialWith; AST guard covers raw client constructors and import aliases
- link.DialWith(target, opts...) builds a link with exactly the caller's
  options (no default credentials); the failback runtime uses it for injected
  options, so its prior semantics hold and no production file calls
  grpc.NewClient directly.
- The guard parses every non-test file and finds grpc.NewClient / Dial /
  DialContext / NewServer and insecure.NewCredentials under any import name
  (alias or dot import); a detector test proves each form is found and a
  link-only file is clean; routing failback back to grpc.NewClient fails the
  guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:38:41 -08:00
pingqiuandClaude Opus 5.5 a600bb8e2b rpc/link: one dial helper and one server builder for every gRPC link
core/rpc/link builds every gRPC link: Dial is grpc.NewClient with plaintext
credentials exactly as before (caller options follow), NewServer runs the
caller's unary and stream interceptors in order (none by default). Every
production site now goes through it: nine dials to blockmaster, the two
SeaweedFS dials and both servers; the failback runtime keeps its injected
dial options unchanged. No behaviour change.

INV-SEC-ONE-SEAM-001: a guard test fails if a non-test file outside the
package creates insecure credentials or a raw gRPC server (red on the base: it
lists the 12 files with the 13 raw sites).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:24:58 -08:00
pingqiuandClaude Opus 5.5 951fa7985e test: the four reproductions skip unless SEAWEED_KNOWN_BUGS=1 (#186 #187 #188 #189)
Each names its open issue; the fix PR removes its skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:11:08 -08:00
pingqiu 5951a0892d test: record chart, cleanup freshness, and multiblock version findings 2026-11-16 19:17:43 -08:00
pingqiuandClaude Opus 5.5 48db2739ec ci: add a test workflow (build, vet, go test -short) and harden dead-port tests
- .github/workflows/test.yml, job 'go test (linux)': on pull_request and on
  push to main; Go from go.mod; go build ./..., go vet ./..., and
  go test -short -count=1 -timeout 10m ./... with CGO_ENABLED=0. Actions are
  pinned by commit SHA, permissions are contents: read, and a new push to a
  PR cancels the older run.
- core/ops/surface_test.go: fix the two go vet warnings (resp used before
  the error check), so vet covers the whole module.
- cmd/blockvolume: a withdrawn port no longer has to answer ECONNREFUSED.
  A successful connect still fails; any other dial error passes only if the
  address can be bound again.
- core/host/volume: probe tests dial a listener they opened and closed,
  not the fixed 127.0.0.1:1.
- core/replication/component: on failure, the G5-5C and G9A catch-up tests
  log frontiers, peer status and the engine trace. Assertions and timeouts
  are unchanged.

Test files and the workflow only; no product code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:47:44 -08:00
pingqiu 0dce26d2b0 phase165: add kubernetes nvme rdma publish attach 2026-07-18 03:03:54 -07:00
pingqiu 6ba6634b16 phase121: add data plane address capability 2026-07-02 18:00:21 -07:00
pingqiu 8a973ba71f phase114: validate multi-volume nvme mounted path isolation 2026-06-30 05:57:45 -07:00
Ping Qiu 9b4e5876d6 phase110: prove nvme path-loss support surfaces (#61) 2026-06-29 21:13:39 -07:00
Ping Qiu 6c6d61253a phase109: prove nvme tcp status surfaces (#60) 2026-06-29 16:26:24 -07:00
pingqiu 77235eb6a5 phase105: gate nvme tcp topology boundary 2026-06-29 00:37:47 -07:00
pingqiu 24948efa23 phase101: gate nvme path failure status 2026-06-28 01:34:31 -07:00
pingqiu b62dd8745c phase101: surface nvme path status 2026-06-28 01:28:31 -07:00
pingqiu 9c86dc5f35 phase98: close failback frontend workload loop 2026-06-26 17:23:41 -07:00
pingqiu 4e8a6a10b3 phase97: wire frontend publication executor callsite 2026-06-26 16:07:26 -07:00
pingqiu dcad5161b6 phase96: plan frontend publication after failback 2026-06-26 15:54:20 -07:00
pingqiu 5e2b80f5cd phase93: validate failback handoff isolation 2026-06-26 12:58:24 -07:00
pingqiu 7cfd2ae1a5 phase92: validate failback target executor handoff 2026-06-26 12:53:49 -07:00
pingqiu 55d2b4d8d7 phase91: gate failback target activation policy 2026-06-26 12:49:34 -07:00
pingqiu 32738065fe phase90: gate failback targets on authority facts 2026-06-26 12:41:25 -07:00
pingqiu 7f554c9296 phase89: project authority facts to volume status 2026-06-26 12:35:14 -07:00
pingqiu 1b84716199 phase86: decouple failback grpc runtime endpoint 2026-06-26 11:47:05 -07:00
pingqiu d64be9430b phase85: prove failback executor policy safety 2026-06-26 11:43:43 -07:00
pingqiu 32ab6430e6 phase82: add failback executor grpc runtime 2026-06-26 11:28:59 -07:00
pingqiu 240e47b99b phase79: wire failback authority callsite 2026-06-26 11:07:08 -07:00
pingqiu 302816a53c phase78: add failback authority runtime seam 2026-06-26 11:00:03 -07:00
pingqiu 0964e3fab6 phase77: add failback runtime contract 2026-06-26 00:44:08 -07:00
pingqiu a8a11deb37 phase76: add failback executor boundary 2026-06-25 19:31:46 -07:00
pingqiu 90697fa45e phase75: add returned replica failback target owner 2026-06-25 19:02:39 -07:00
pingqiu 54699f00e1 phase74: expose returned replica failback contract 2026-06-25 18:47:04 -07:00
pingqiu f5ca43780d phase73: guard frontend publication authority owner 2026-06-25 18:36:25 -07:00
pingqiu 04e147323b phase72: add frontend publication runtime contract 2026-06-25 15:40:43 -07:00
pingqiu 272b6a1154 phase70: add frontend publication executor boundary 2026-06-25 10:43:40 -07:00