diff --git a/seaweed-block/README.md b/seaweed-block/README.md index fc8460a060..18f60388b4 100644 --- a/seaweed-block/README.md +++ b/seaweed-block/README.md @@ -36,7 +36,7 @@ This is an **alpha** product path for supported lab clusters, not production. | Actionable read-only CRD status + Events | Available | Bounded SwBlockVolume finalizer lifecycle | Beta candidate | | Returned-replica ACK eligibility executor | Beta candidate | Returned-replica failback runtime | Source-gated | | Returned-replica rebuild traffic | Planned | Frontend publication after failback | Planned | -| NVMe/TCP CSI multipath + mounted path-loss lab path | Gated | Backup/snapshot/restore | Planned | +| NVMe/TCP CSI multipath + mounted churn supported-lab path | Source-gated | Backup/snapshot/restore | Planned | | Production SLO/performance claims | Not claimed | Hosted production UI | Not claimed | ## What You Can Do Today @@ -74,9 +74,10 @@ This is an **alpha** product path for supported lab clusters, not production. CSI protocol selection, Kubernetes CSI multipath attach for one NQN/NSID with multiple NVMe frontend paths, one-path-loss status honesty, mounted pod write/read after one observed path loss, mounted pod write/read after the - removed path is restored, repeated stage/unstage residue checks, and a - bounded writer/reader soak. This is a lab gate, not a broad NVMe - compatibility or performance claim. + removed path is restored, multi-volume mounted path isolation, bounded + multi-volume path churn, repeated stage/unstage residue checks, and a bounded + writer/reader soak. This is a supported-lab source-gated claim, not a broad + NVMe compatibility, RoCE, production HA, or performance claim. - Replay support bundles offline. These are narrow alpha claims tied to documented gates. See @@ -148,7 +149,9 @@ The v0.6 returned-replica ACK eligibility executor path likewise requires matching images published from the Phase 54 release commit and must be validated with the release smoke before it is marked shipped. The returned-replica failback runtime added after v0.6 is source-gated and -requires a future release smoke before it becomes a public image claim. +requires a future release smoke before it becomes a public image claim. The +NVMe/TCP supported-lab path is also source-gated until matching `seaweed-block` +and `seaweed-block-csi` images are published and pass the NVMe release smoke. Mutable `:alpha` is a smoke/demo tag only; it can drift from the source tree. @@ -208,6 +211,8 @@ hostPath residue. - [Kubernetes quickstart](docs/quickstart-kubernetes.md) - first install and PVC. - [User capabilities](docs/user-capabilities.md) - detailed current behavior. - [Release notes](docs/releases/README.md) - exact validated claims and evidence. +- [NVMe/TCP supported-lab claim](docs/releases/nvme-tcp-supported-lab.md) - + source-gated NVMe evidence, release-smoke boundary, and non-claims. - [Roadmap](docs/roadmap.md) - public planning summary. - [Architecture](docs/architecture.md), [developer architecture](docs/developer-architecture.md), and [runtime state machines](docs/runtime-state-machines.md) - engineering diff --git a/seaweed-block/docs/releases/README.md b/seaweed-block/docs/releases/README.md index b69537717f..c34e8f28c2 100644 --- a/seaweed-block/docs/releases/README.md +++ b/seaweed-block/docs/releases/README.md @@ -16,6 +16,7 @@ is still outside the supported boundary. - [v0.4 Beta — Kubernetes-Native Read-Only Operator Foundation](v0.4-beta-candidate.md) - [v0.5 Beta Candidate — Bounded SwBlockVolume Lifecycle Owner](v0.5-beta-candidate.md) - [v0.6 Beta Candidate — Returned-Replica ACK Eligibility Executor](v0.6-beta-candidate.md) +- [NVMe/TCP Supported-Lab Claim](nvme-tcp-supported-lab.md) ## Version Boundary @@ -75,4 +76,7 @@ path remains available for development and fallback validation. v0.4 is the read-only/status-first operator surface. v0.5 beta candidate adds only a bounded `SwBlockVolume` protection-finalizer lifecycle, not broad operator automation. v0.6 beta candidate adds only a bounded ACK eligibility executor target, not -returned-replica rebuild/failback execution. +returned-replica rebuild/failback execution. The NVMe/TCP supported-lab path is +documented separately because it is source-gated until matching +`seaweed-block` and `seaweed-block-csi` images pass a pinned-image release +smoke. diff --git a/seaweed-block/docs/releases/nvme-tcp-supported-lab.md b/seaweed-block/docs/releases/nvme-tcp-supported-lab.md new file mode 100644 index 0000000000..4e548aab06 --- /dev/null +++ b/seaweed-block/docs/releases/nvme-tcp-supported-lab.md @@ -0,0 +1,139 @@ +# NVMe/TCP Supported-Lab Claim + +Status: source-gated. Matching published `seaweed-block` and +`seaweed-block-csi` images still need a release-smoke run before this becomes a +public image claim. + +## Claim + +Seaweed Block can run an opt-in NVMe/TCP Kubernetes CSI path in the supported +lab: + +```text +Helm values: protocol=nvme, stage2Multipath=true, replicationFactor=2 +CSI CreateVolume -> blockmaster publish context -> CSI NodeStage +-> Linux NVMe/TCP native multipath -> mounted app pod write/read +``` + +The supported-lab claim is intentionally narrow: + +- dynamic Kubernetes PVC provisioning with `protocol=nvme`; +- RF=2 volume layout with two NVMe/TCP frontend paths for one NQN/NSID; +- CSI publish context carries `nvmeAddrs` and stage-2 multipath intent; +- CSI NodeStage connects all expected NVMe/TCP paths and fails closed on a + single-path stage-2 publish context; +- CRD/report/operator-snapshot/dashboard/explain surfaces expose protocol, NQN, + namespace ID, address list, path count, and reason code; +- one path loss surfaces as `blocked/nvme_multipath_path_missing`, never false + `Ready=True`; +- mounted workloads keep the same pod UID and continue write/read I/O through + path loss; +- restored paths return to two live host NVMe paths and mounted write/read I/O + still works; +- two mounted volumes remain isolated through path loss and restore; +- bounded multi-volume churn passes across three alternating loss/restore + cycles; +- uninstall/cleanup leaves zero Seaweed Block Kubernetes, iSCSI, process, + multipath, and hostPath residue. + +## Evidence Chain + +| Phase | Evidence | Result | +| --- | --- | --- | +| 99 | NVMe ANA/provider and CSI single-path baseline | PASS | +| 100 | Kubernetes CSI NVMe multipath attach | PASS | +| 101 | NVMe status, one-path failure honesty, repeated stage/unstage, bounded soak | PASS | +| 102 | Published-image NVMe smoke | Artifact-blocked until matching images publish | +| 103 | NVMe/TCP and RoCE host-capability preflight | PASS | +| 104 | RoCE live-I/O feasibility boundary, current target refuses RDMA clearly | PASS | +| 105 | Cross-node loopback NVMe/TCP topology blocker | PASS | +| 106 | Cross-node non-loopback NVMe/TCP live attach | PASS | +| 107 | Multi-volume cross-node NVMe identity isolation | PASS | +| 108 | Multi-volume NVMe lifecycle soak | PASS | +| 109 | NVMe status-surface evidence agreement | PASS | +| 110 | Path-loss support-surface honesty from replay evidence | PASS | +| 111 | Live Kubernetes CRD path-loss honesty | PASS | +| 112 | Mounted pod survives one observed path loss | PASS | +| 113 | Mounted pod survives path restore | PASS | +| 114 | Two mounted volumes stay isolated through one volume path loss/restore | PASS | +| 115 | Two mounted volumes pass three alternating path churn cycles | PASS | + +Key QA sign-offs: + +- `internal/docs/qa-assignments/phase114-nvme-k8s-multivolume-mounted-path-isolation-qa-signoff.md` +- `internal/docs/qa-assignments/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-qa-signoff.md` + +## Representative Release Smoke + +When matching release images exist, the smoke should use the exact image pair: + +```text +ghcr.io/seaweedfs/seaweed-block: +ghcr.io/seaweedfs/seaweed-block-csi: +``` + +Minimum release-smoke coverage: + +1. Generate Helm values with: + + ```bash + sw-block ops generate-helm-values \ + --protocol nvme \ + --stage2-multipath \ + --replication-factor 2 \ + --image ghcr.io/seaweedfs/seaweed-block: \ + --csi-image ghcr.io/seaweedfs/seaweed-block-csi: \ + --out values.nvme.yaml + ``` + +2. Confirm render includes NVMe and stage-2 multipath flags. + +3. Install the chart and create one RF=2 NVMe/TCP PVC. + +4. Confirm the mounted writer/reader path passes. + +5. Confirm `SwBlockVolume.status.nvme.pathCount=2` and + `Ready=True/first_volume_verified`. + +6. Run one representative path-loss/restore check, or rerun the Phase 114 gate + if the release is intended to advertise multi-volume mounted isolation. + +7. Verify cleanup returns: + + ```text + cleanup_status=ok + k8s_residue_count=0 + iscsi_residue_count=0 + process_residue_count=0 + multipath_residue_count=0 + hostpath_residue_count=0 + failure_count=0 + ``` + +Do not mark the NVMe/TCP path as a published-image release claim until this +image-pair smoke passes. + +## Non-Claims + +This evidence does not claim: + +- RoCE or NVMe/RDMA data path. The current target is NVMe/TCP only, and + `--nvme-transport=rdma` is a refusal path. +- Performance, throughput, latency, or production SLO. +- Broad Linux distro, kernel, initiator, or cloud compatibility. +- Production HA, node-loss survival, or arbitrary unbounded path churn. +- Backup, snapshot, restore, disaster recovery, or data migration. +- Automatic cleanup or host repair. +- Hosted production UI. + +## User Guidance + +Use NVMe/TCP only when you can accept the supported-lab boundary: + +- you control the Kubernetes nodes; +- Linux NVMe/TCP host tooling is available; +- the cluster can route to the generated NVMe/TCP target addresses; +- you can run the cleanup verifier after tests; +- you treat failures as alpha/beta evidence, not production SLO violations. + +Use the default iSCSI path when you want the broader, older compatibility path. diff --git a/seaweed-block/docs/roadmap.md b/seaweed-block/docs/roadmap.md index 5bb7629571..05d1e409d9 100644 --- a/seaweed-block/docs/roadmap.md +++ b/seaweed-block/docs/roadmap.md @@ -593,13 +593,19 @@ Recommended order from here: RF=2 NVMe/TCP PVCs for multiple cycles, preserving mounted pod identity, writer/reader I/O, volume identity, publish-target isolation, reason-code isolation, two-path restoration, and zero cleanup residue. -74. Phase 116: NVMe/TCP Supported-Lab Release Claim Packaging. **Active, - planned** +74. Phase 116: NVMe/TCP Supported-Lab Release Claim Packaging. **Closed + 2026-06-30, docs PASS** Convert the closed Phase 100-115 evidence into a user-facing supported-lab claim: README/docs wording, feature/status matrix, release non-claims, and a concise release-smoke plan that uses matching published `seaweed-block`/`seaweed-block-csi` images when available. This is a packaging and claim-boundary phase, not a new transport feature. +75. Phase 117: NVMe/TCP Published-Image Release Smoke. **Active, planned** + Run the representative NVMe/TCP supported-lab smoke against matching + published `seaweed-block` and `seaweed-block-csi` images. If images are not + available, this phase blocks as artifact-readiness, not as product failure. + Do not mark the NVMe/TCP path as a published-image release claim until this + smoke passes. The internal release-train contract is `internal/docs/ref/operation-layer-v0.5-release-train.md`. Phases 41-44 close diff --git a/seaweed-block/docs/user-capabilities.md b/seaweed-block/docs/user-capabilities.md index 774734059f..50b5632b8a 100644 --- a/seaweed-block/docs/user-capabilities.md +++ b/seaweed-block/docs/user-capabilities.md @@ -78,11 +78,18 @@ The source-gated NVMe/TCP path now has Kubernetes CSI evidence for: - an already-mounted pod that keeps the same pod UID and writes/reads after one observed path is removed; - restoration of the removed path, with the same mounted pod writing/reading - again and status converging back to `Ready=True/first_volume_verified`. + again and status converging back to `Ready=True/first_volume_verified`; +- two mounted RF=2 PVCs staying isolated when one volume loses and restores a + path; +- bounded path churn across two mounted RF=2 PVCs: three alternating + loss/restore cycles preserve pod identity, write/read I/O, reason-code + isolation, publish-target isolation, two-path restoration, and cleanup + hygiene. This is a supported-lab NVMe/TCP claim only. It is not a RoCE/NVMe-RDMA claim, not a performance/SLO claim, and not a broad distro/kernel compatibility -matrix. +matrix. Public image claims still require matching `seaweed-block` and +`seaweed-block-csi` images to pass the NVMe release smoke. ### Recovery And Failover Gates diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index d4b8db8697..917c9874f4 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -1,87 +1,79 @@ -# Current Plan: Phase 116 NVMe/TCP Supported-Lab Release Claim Packaging +# Current Plan: Phase 117 NVMe/TCP Published-Image Release Smoke Status: planned. -Phase 115 is closed: +Phase 116 is closed: ```text -QA run: 20260630-123456-c28b -Result: 25/25 PASS -Sign-off: internal/docs/qa-assignments/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-qa-signoff.md +Result: docs PASS +Docs: + README.md + docs/user-capabilities.md + docs/releases/README.md + docs/releases/nvme-tcp-supported-lab.md ``` ## Why This Is Next -Phases 100-115 moved NVMe/TCP from a basic CSI protocol option to a -supported-lab storage path with multipath attach, status evidence, path-loss -honesty, mounted I/O survival, restore, multi-volume isolation, and bounded -multi-volume churn. - -The next risk is not another small path-loss gate. The risk is product wording: -README, roadmap, and release notes can easily over-claim RoCE, production HA, -performance, broad compatibility, or unbounded churn. Phase 116 packages the -evidence into a clear supported-lab release claim that users and PM can -understand. +Phases 100-115 are source-gated and live-lab validated. Phase 116 packaged the +claim boundary for users. The remaining release gap is artifact verification: +the documented NVMe/TCP path must be proven on matching published +`seaweed-block` and `seaweed-block-csi` images before it becomes a +published-image claim. ## Product Goal -Produce a user-facing NVMe/TCP claim boundary: +Validate that the published image pair contains the same NVMe/TCP behavior that +passed in source-gated lab runs: -- what works today; -- what was validated live; -- what remains a non-claim; -- what image/pinned-release smoke must pass before release marking; -- where developers can find the detailed Phase 100-115 evidence. +- generated Helm values select `protocol=nvme`; +- chart render enables external NVMe/TCP and stage-2 multipath; +- one RF=2 NVMe/TCP PVC mounts into an app pod; +- writer/reader I/O passes; +- `SwBlockVolume.status.nvme.pathCount=2`; +- status is `Ready=True/first_volume_verified`; +- cleanup verifier returns zero residue. -## Deliverables +## Inputs Required -1. README feature/status update. - - Add NVMe/TCP as an optional supported-lab frontend, distinct from the default - iSCSI path. Mention dynamic PVC, RF=2 multipath attach, mounted path - loss/restore, multi-volume isolation, and bounded churn. - -2. Documentation release note. - - Add a concise NVMe/TCP supported-lab section under `docs/` or - `internal/docs/`, referencing the Phase 100-115 QA evidence and listing - exact non-claims. - -3. Release smoke checklist. - - Define the image-publish smoke for matching `seaweed-block` and - `seaweed-block-csi` images. This should not require re-running every Phase - 100-115 gate, but must prove the shipped image pair can run the representative - Day-1 NVMe/TCP multipath path. - -4. Roadmap consistency. - - Ensure `docs/roadmap.md`, `internal/docs/product-roadmap.md`, and README - agree on the same claim boundary. - -## Verification - -Local: +Exact matching image tags or digests: ```text -go test ./core/csi ./core/frontend/nvme ./cmd/blockvolume ./core/ops +ghcr.io/seaweedfs/seaweed-block: +ghcr.io/seaweedfs/seaweed-block-csi: ``` -Docs: +Both images must be built from the same source commit. If either image is +missing, mark this phase artifact-blocked, not product-failed. + +## Proposed Gate + +Use a small release-smoke gate rather than rerunning every Phase 100-115 gate: ```text -rg "NVMe|RoCE|performance|production HA|supported-lab" README.md docs internal/docs +scripts/run-phase117-nvme-release-image-smoke-gate.sh +testops/scenarios/nvme-tcp-release-image-smoke-chain.yaml ``` -Gate: +Minimum terminal evidence: -No new live storage behavior is required for Phase 116 unless the docs add a -new claim. If wording adds a stronger claim, add or reuse a matching TestOps -gate before closing. +```text +phase117_nvme_release_image_smoke_status=ok +image_pair_commit_match=true +helm_values_protocol=nvme +stage2_multipath_enabled=true +writer_verified=true +reader_verified=true +volume_status=ready +volume_reason=first_volume_verified +nvme_path_count=2 +cleanup_status=ok +failure_count=0 +``` ## Non-Claims -Phase 116 does not implement RoCE/NVMe-RDMA, performance/SLO, broad distro or -kernel compatibility, production HA, node-loss survival, backup/restore, or -unbounded arbitrary path churn. It packages the evidence already closed by -Phases 100-115. +Phase 117 does not add RoCE/NVMe-RDMA, performance/SLO, broad host +compatibility, production HA, node-loss survival, backup/restore, or unbounded +path churn claims. It only verifies that the published image pair can run the +representative supported-lab NVMe/TCP path. diff --git a/seaweed-block/internal/docs/product-roadmap.md b/seaweed-block/internal/docs/product-roadmap.md index ce0488014b..871c320057 100644 --- a/seaweed-block/internal/docs/product-roadmap.md +++ b/seaweed-block/internal/docs/product-roadmap.md @@ -314,10 +314,13 @@ rebuild, delete safety, or cleanup must start as a separate gated phase. alternating path loss/restore across both mounted volumes for three cycles, while preserving pod identity, I/O, reason-code isolation, publish-target isolation, two-path restoration, and cleanup hygiene. -- Phase 116 should package the closed Phase 100-115 evidence into a - user-facing supported-lab NVMe/TCP release claim: README/docs wording, - feature/status matrix, explicit non-claims, and pinned-image release-smoke - instructions for matching `seaweed-block` and `seaweed-block-csi` images. +- Phase 116 packaged the closed Phase 100-115 evidence into a user-facing + supported-lab NVMe/TCP release claim: README/docs wording, feature/status + matrix, explicit non-claims, and pinned-image release-smoke instructions for + matching `seaweed-block` and `seaweed-block-csi` images. +- Phase 117 should run that pinned-image smoke when matching images exist. If + images are not published, the result is artifact-blocked rather than a + product failure. - Later protocol candidates: implement a real NVMe/RDMA target or characterize NVMe/TCP performance. Keep these separate so correctness, transport, and performance claims do not get mixed.