Commit Graph
49 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 ab747bfa47 change: cut over to the content-named store and delete the legacy store
The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:59:23 -08:00
pingqiuandClaude Opus 5.5 26ffb11403 master, volume: the promotion probe round
When blockmaster decides a promotion it mints a fresh round id and sends a
ProbeRound to the node of each replica it asks, over that node's
authenticated round stream (SubscribeProbeRounds); each replica answers
from its store as it is now: durable end, the epoch-table row there,
whether the table is present and valid, and its role (AnswerProbe). Only
an answer with this round's id, from the node asked, for the replica
asked, counts; reports, old answers and answers from another node never
do. The round replaces the /status probe, which mutual TLS keeps on
loopback, and is installed at startup for every deployment (it was
launcher-only). Both methods are node-only.

Regenerated with the pinned protoc-gen-go v1.27.1 and protoc-gen-go-grpc
v1.3.0 (the gRPC file's header now names protoc v7.34.1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 02:42:31 -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 bd646b9985 test: the off-loopback flag cases use a documentation address
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:10:09 -08:00
pingqiuandClaude Opus 5.5 252f41a6c2 fix(auth): a strict call is refused without an audit log (and TLS requires --audit-log); the overflow warning is off the caller path; strict queue-full drops are counted; the census descends into selector receivers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:00:18 -08:00
pingqiuandClaude Opus 5.5 cde691b550 test: T9 leases survive 20 forced reconnects (test-only connection age; grace scales with a short age)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:13:07 -08:00
pingqiuandClaude Opus 5.5 9c77bc66f1 test: guard: the node registry is written only by the start-up import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:08:35 -08:00
pingqiuandClaude Opus 5.5 7b96570505 feat(auth): the append-only audit log
Phase 0, S6: AuditLog writes one JSON line per event: every operator and
admin call (accepted or refused, including a handler's RequireRole
refusal), refused node calls at most once a minute per (fingerprint,
result, method), and every role-file reload with its outcome; accepted
node calls are not recorded. blockmaster --audit-log turns it on (with
authentication only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:07:36 -08:00
pingqiuandClaude Opus 5.5 e125c52624 feat(blockmaster): mutual TLS and the role file
Phase 0, S4 (master side): --tls-cert, --tls-key, --tls-client-ca and
--role-file together turn on mutual TLS and per-call authorization; a
partial set, or authentication with --insecure-external-bind, is refused;
the authenticated listener may bind any address. SIGHUP reloads the role
file (a bad file keeps the previous table and says so). The start-up line
gives the master's own certificate's expiry; development mode repeats its
UNAUTHENTICATED warning once a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:44:10 -08:00
pingqiu 384d2002e6 docs: describe configured fence-exit budget and scheduling premise 2026-11-22 23:45:08 -08:00
pingqiu c3fb807558 blockmaster: derive minimum workspace skew from fence exit bound 2026-11-22 23:37:27 -08:00
pingqiu 9c4ddc43da test: reject workspace skew below fence exit margin 2026-11-22 23:35:45 -08:00
pingqiuandClaude Opus 5.5 6070108c5c blockmaster: refuse a non-loopback control bind unless --insecure-external-bind
The gRPC control API (--listen) and the runtime HTTP API
(--frontend-publication-runtime-listen, when enabled) are unauthenticated, so
binding them to the node network is now an explicit choice: a non-loopback
address is refused at startup unless --insecure-external-bind is given. The
Helm chart and the shipped k8s manifests, which bind 0.0.0.0 with host
networking, pass the opt-in explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:50:53 -08:00
pingqiuandClaude Opus 5.5 e57f399c07 feat: detect master journal sharing and alarm on lease headroom
A volume whose durable root sits on the authority store's file system
shares its jbd2 journal: under a WAL fsync storm the lease extensions
lag, grants clamp to the durable horizon and leases run out.

- core/storeident: (machine-id, st_dev) identity of a directory; unknown
  never matches.
- Heartbeats carry the durable root's identity (machine_id,
  durable_root_dev); the master compares it with its authority store,
  logs and counts co-located nodes once per detection.
- --strict-journal-isolation (default off = alarm only): refuses
  heartbeats of a co-located node that serves no volume (durable state
  decides), and refuses PlaceWorkspace/MoveWorkspace and new product-loop
  placements onto co-located nodes.
- Publisher: headroom alarm while an extension is pending and headroom
  < 1.125 TTL (before the first clamp), clamp counters (total, last
  minute), min headroom at grants, lazy per-minute summary;
  WorkspaceLeaseStats snapshot.
- --status-listen (loopback only): GET /status/workspace-lease JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:10:44 -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
pingqiu 342dc3529a fix: separate workspace lease expiry with a clock skew margin 2026-11-15 23:30:05 -08:00
pingqiuandClaude Opus 5.5 41f00e5b1a volume delete: terminal-state fork replay; reservation-aware import
- Fork's early replay of a completed request refuses (volume_deleted)
  a target whose HEAD is deleting, purging or deleted, also before its
  VOLUME is marked, like the later publication path.
- Host.ImportLifecycleVolume registers a cluster-spec volume under the
  CreateVolume RPC's boundary (workspaceMu, reservation check through
  the create); blockmaster startup uses it, skipping (and logging) a
  reserved id, and the placement import skips reserved ids too.
  Unreserved ids keep importing idempotently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:06:24 -08:00
pingqiuandClaude Opus 5.5 a60daf2376 volume delete: RED controls for the r4 P2s
codex01's r4 review (V:/share/rdma/codex01-block152-r4-review-
20261116T0445Z/REVIEW.md). Controls failing against stubs:

- Fork's early replay reports success for a target past the delete mark
  (deleting, purging, HEAD deleted before VOLUME is marked)
  (TestCatalog_ForkReplayRefusesADeletingTarget);
- the cluster-spec import re-creates and places a reserved id after a
  restart with the original spec (TestClusterSpecImportSkipsAReserved
  Volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:06:23 -08:00
pingqiu f9da1a371d fix: register desired volumes from complete cluster specifications 2026-11-15 17:21:12 -08:00
pingqiu 6f7ab89ac3 feat: bind guarded workspace moves to qualified HEAD holders 2026-11-15 10:05:23 -08:00
pingqiu 8f8d369746 phase167: add opt-in parallel WAL candidate 2026-07-29 20:04:44 -07:00
pingqiu 20e5dda45c phase152: gate multiblock wal recovery 2026-07-06 22:13:36 -07:00
pingqiu 724cc0e1f1 phase150: wire multiblock wal runtime opt-in 2026-07-06 16:09:34 -07:00
pingqiu 9566f0cc41 phase141: gate nvme max h2c opt-in 2026-07-06 14:47:03 -07:00
pingqiu 3e4c9de914 phase106: wire external nvme tcp publish path 2026-06-29 01:00:46 -07:00
pingqiu 9c86dc5f35 phase98: close failback frontend workload loop 2026-06-26 17:23:41 -07:00
pingqiu 440fa6d467 phase81: add gated failback service rpc 2026-06-26 11:20:36 -07:00
pingqiu 4389be1e7b helm: expose launcher durable impl 2026-05-29 20:30:45 -07:00
Ping Qiu 5c4f995c55 v0.2 alpha: Day-1 activation and first-volume loop (#48)
Package the Kubernetes alpha into a script-based Day-1 activation loop: activate the stack, create the first PVC-backed volume, verify writer/reader data, collect product-owned observation evidence, render a local read-only report, and clean up.

Includes multi-node-safe activation defaults, first-volume example automation, read-only ops report output, README/quickstart/release note updates, and review-driven hardening for fail-fast configuration, promotion evidence, inventory fail-closed behavior, and test guards.

Validated by Day-1 activation run 20260517-205252-04e9 and read-only report run 20260517-212358-bfba. Local targeted tests passed.
2026-05-18 16:43:35 -07:00
Ping Qiu e387d4e4bb ops: add light-use operations and placement gates (#47)
Add the light-use operations path for Seaweed Block alpha users.

This includes per-volume status bundles, cluster inventory, product-owned blockvolume lifecycle, durable restart/reattach evidence, same-node alpha placement checks, TestOps control data, and the supporting runner-native gates and QA close reports.

The next active plan is Basic Mounted Failover And Reattach MVP, which carries RF=2/RF=3 recovery work forward without claiming it closed in this milestone.
2026-05-13 01:31:21 -07:00
Ping Qiu dfa31007a1 testops: add beta hardening gates and storage readiness evidence
Adds the beta-hardening test and operations foundation for Seaweed Block, including runner-native protocol/beta gates, CSI lifecycle and durable restart coverage, iSCSI/NVMe protocol release gates, returned-replica evidence, read-only operations status reports, OS initiator compatibility gates, and fast iSCSI L2 durable restart/reconnect coverage.
2026-05-11 10:38:00 -07:00
Ping Qiu 6dd9dc33e2 docs: close iSCSI/NVMe protocol readiness plan (#44)
Close the current protocol-readiness plan and move active work to V2 parity and hardening.

The release gate now covers iSCSI ALUA/failover, NVMe ANA/multipath/failover, CSI protocol selection, and the iSCSI compatibility soak. Test layering is documented so default Go tests stay unit/component scoped, local subprocess tests are opt-in, and Linux lab coverage remains in runner-native TestOps suites.
2026-05-09 11:34:39 -07:00
pingqiu e314bef5e3 test: address frontend gate review comments 2026-05-06 17:12:49 -07:00
pingqiu 0598abcf4d test: pin bare blockmaster volume services 2026-05-06 15:31:12 -07:00
pingqiu e1c06fd911 k8s: wire iSCSI CHAP secret into alpha path 2026-05-05 00:55:14 -07:00
pingqiu 6b6990abf2 launcher: support pvc owner references 2026-05-04 17:47:33 -07:00
pingqiuandClaude Opus 4.7 57d339d2e7 docs(cmd): drop internal phase/gate prefixes from remaining cmd entry points
Tier 1 continuation: blockmaster, blockcsi, m01verify, sparrow main +
s5_bootstrap + s7_restart_smoke. Removes P14 / P15 / G5-5 / G15a phase
prefixes from package docs, --help flag descriptions, and exported
function godocs.

Substantive content kept (durable bootstrap contract, restart smoke
contract, byte-equal verifier semantics). No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 15:41:45 -07:00
pingqiu 629bee0dc7 G15e: clean lifecycle placement and stale manifests 2026-05-03 14:18:42 -07:00
pingqiu 7aa0db8a57 G15d: fix dynamic launcher iSCSI bind 2026-05-03 11:49:39 -07:00
pingqiu 552fecb6b7 G15d: write launcher blockvolume manifests 2026-05-03 11:17:15 -07:00
pingqiu f0310a040d G15d: import cluster spec node inventory 2026-05-03 11:03:17 -07:00
pingqiu 56888d30b2 G9G-3: drive product loop from cluster spec YAML 2026-05-03 07:06:45 -07:00
pingqiu f3b0f83c7f G9G: seed placement intent through blockmaster flag 2026-05-03 06:46:27 -07:00
pingqiu 962160dbc3 G9G: verify product loop assignment in subprocess L2 2026-05-03 06:20:21 -07:00
pingqiu 70a75606af G9D: wire lifecycle stores into blockmaster 2026-05-02 20:54:57 -07:00
pingqiu 098a274219 G8: primary-kill failover through degraded snapshot 2026-05-02 15:01:26 -07:00
pingqiuandClaude Opus 4.7 02fdb71c7d blockmaster: --expected-slots-per-volume flag (was hardcoded 3)
cmd/blockmaster/main.go hardcoded ExpectedSlotsPerVolume: 3 in the
TopologyControllerConfig. The TopologyController's
validateVolumeTopology rejects every observation snapshot whose
slot count differs from this value, returning an error from
SubmitObservedState that propagates back to the observation host
without a master-log line.

Result with a 2-node smoke topology (m01-primary + m02-replica):
master is silent, no assignments minted, volumes timeout at
durable open with frontend.ErrNotReady — the symptom QA hit
during G5-4 cross-node bring-up.

Fix: add --expected-slots-per-volume CLI flag, default 3
(production RF=3 unchanged). 2-node smoke clusters pass
--expected-slots-per-volume 2.

Long-term refactor (separate ticket): the validator should
compare snapshot slot count against the topology's per-volume
slot count, not a single global config — that's the real
per-volume RF model.

Refs: sw-block/design/v3-phase-15-g5-m0102-bringup-answer.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 10:37:13 -07:00
wzcheng99 55793d49bc T0 closure: blockmaster/blockvolume hosting + D1-D5 tests
Product binaries (cmd/blockmaster, cmd/blockvolume) and
core/host wiring for volume-scoped assignment delivery,
durable authority with Windows rename retry, and the T0
closure test set (D1 L2 subprocess, D2 G1 adversarial,
D3 concurrent write-reload regression, D4 hosting-smoke
scenario + Go-native replay, D5 --topology flag).

Diagnostic surfaces: ObservationStore.SupersededCount
(PCDD-DELAYED-HB-001 evidence, not authority input) and
SetNowForTest clock seam on Store/Host, guarded by grep
test ensuring the identifier stays out of production files.
2026-04-21 02:02:52 -07:00