Commit Graph
37 Commits
Author SHA1 Message Date
pingqiu 46f2f80e80 seaweed-block: unify operator answer policy with admission evidence 2026-12-05 12:53:30 -08:00
Ping QiuandClaude Opus 5.5 a5686e7fa7 Sync seaweed-block v1.1.1 into seaweed-block/ (#13411)
Brings seaweed-block main (v1.1.1 plus the docs and a test fix after it)
into seaweed-block/ as one commit. Only files under seaweed-block/ change,
and the subtree equals seaweed-block main exactly. The module's full
history stays in the seaweed-block repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:04:53 -08:00
pingqiuandClaude Opus 5.5 b20fcb92b0 seaweed-block: refuse a CSI replicationFactor beyond int32
Same change as the module's upstream commit b9ee7f1c (#1011), applied
under seaweed-block/: an oversized StorageClass replicationFactor is
refused as InvalidArgument instead of wrapping on conversion. Ships in
seaweed-block v1.1.1; a later sync carries the identical change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 22:46:34 -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 f7f3b56298 k8s: each in-cluster client gets its own certificate with the least role
The CSI node and the status operator mount viewer certificates; the CSI
controller (it deletes volumes) and the failback executor mount admin
ones. The alpha certificate helper issues one certificate, role-file line
and Secret per client, and the chart takes one Secret per client
(tls.clientSecrets). A chart-render test fails when a client mounts a
Secret other than its own, when an admin Secret appears outside the CSI
controller and the failback executor, or when the role file gives a
client more than its role. A node's refused reattach event is one log
line and is not retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:41:00 -08:00
pingqiu 5e7728e65a docs: keep model results and identity comments public-facing 2026-11-22 06:28:48 -08:00
pingqiuandClaude Opus 5.5 a2e9930d49 fix: the iSCSI multipath grouping binds IQN and LUN; NONBLOCKING row names the live renewal control
codex01 review of #416 2cba5881: two primary-owned units of one IQN (q/LUN1 at A, q/LUN2
at B) are two targets, never one multipath target with LUN1 for both. Control added.
INV-WS-RENEW-NONBLOCKING-001 lists TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 8d103b2c85 fix: iSCSI CSI paths bind IQN and LUN; live-renewal held-registration control; lease diagram guard
codex01 review of #416 3439d278 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1: primaryOwnedFrontends keys an iSCSI target by IQN AND LUN, so a supporting q/LUN2 never
  becomes a multipath path of the primary's q/LUN1 (mismatch and nonzero-match controls).
- P2: TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite renews through holderMatches over
  gRPC while a registration write is held (NodeInventoryStore.HoldWritesForTest), and shows
  the hold is real.
- Standards: the workspace lease diagram's holder edges name the registered-host guard; the
  snapshot test's control reader has a bounded, owned join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 abc57ceb61 fix: registry read from a committed snapshot; CSI publishes only a primary-owned target; deletion keeps the stream check
codex01 review of #416 e56f1de1 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1-1: the holder host check reads NodeInventoryStore.GetNodeSnapshot (published after each
  committed write), never the store mutex RegisterNode holds across file I/O.
  Held-registration-write control in core/lifecycle.
- P1-2: a primary slot with no frontend lists nothing; status frontends carry their replica
  (FrontendTarget.replica_id = 8); CSI publishes a target only when the primary has a usable
  frontend, another replica's frontend joining only as an extra path to the same target.
  Real CSI lookup negatives (no primary frontend; rejected loopback primary).
- P2: a deletion-reserved workspace volume keeps the assignment stream host check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiu 7a1f9826fc chore: preserve original UTF-8 text and group shared geometry imports 2026-11-18 21:13:30 -08:00
pingqiu f67517f2e4 fix: refuse volume creation above the uint32 LBA capacity limit 2026-11-18 21:09:12 -08:00
pingqiu 8f377a2f17 test(csi): refuse oversized capacity before provisioning 2026-11-18 21:07:46 -08:00
pingqiu cfd686d34a phase166: add nvme rdma multipath reconnect contract 2026-07-29 16:11:27 -07:00
pingqiu e86ae93806 csi: remove duplicate publish context lookup 2026-07-18 03:08:45 -07:00
pingqiu 0dce26d2b0 phase165: add kubernetes nvme rdma publish attach 2026-07-18 03:03:54 -07:00
pingqiu 19152945ce phase133: prune stale nvme paths 2026-07-04 15:09:52 -07:00
pingqiu e622bea61d phase131: prove nvme live reconnect owner 2026-07-04 12:47:34 -07:00
pingqiu ad80851a5d phase130: add nvme reconnect owner gate 2026-07-04 12:04:54 -07:00
pingqiu c23aacbece phase129: reconnect mounted nvme restage paths 2026-07-03 17:38:46 -07:00
pingqiu 8a973ba71f phase114: validate multi-volume nvme mounted path isolation 2026-06-30 05:57:45 -07:00
pingqiu e9e005a47f phase100: close nvme csi multipath live gate 2026-06-27 02:53:22 -07:00
pingqiu c5033590ea phase100: add csi nvme multipath component gate 2026-06-27 01:39:27 -07:00
pingqiu 815aead2fe phase44: register swblockvolume from csi create 2026-06-16 01:32:36 -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 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 b92a468c5b test(csi): cover repeated stage unstage cycles 2026-05-05 01:18:31 -07:00
pingqiu 1ca77ed7ce csi: reject stale iSCSI sessions without stage identity 2026-05-05 01:18:03 -07:00
pingqiu cd111b5cf7 csi: fail closed on wrong staged volume 2026-05-05 01:10:03 -07:00
pingqiu 46c7d95387 csi: configure iSCSI CHAP during node stage 2026-05-05 00:47:08 -07:00
pingqiu 07912d6380 review: tighten pvc ownerref wiring 2026-05-04 19:58:14 -07:00
pingqiu 6bff96a748 csi: resolve pvc uid for owner references 2026-05-04 18:40:01 -07:00
pingqiu f51c9bbe8c csi: preserve pvc uid metadata 2026-05-04 17:43:13 -07:00
pingqiu e9828532be csi: preserve Kubernetes volume metadata 2026-05-04 13:09:54 -07:00
pingqiu 78290192fe G15c: add CSI dynamic volume intent RPC 2026-05-03 10:48:45 -07:00
pingqiu 734b48bd5d G15a: publish frontend target facts for CSI attach 2026-05-03 08:01:37 -07:00
pingqiu 5733cca270 G15a: add CSI static MVP skeleton and node iSCSI path 2026-05-03 07:43:17 -07:00