Merge pull request #68 from seaweedfs/phase157-nvme-rdma-capability-boundary

phase157: document nvme rdma capability boundary
This commit is contained in:
Ping Qiu authored and GitHub committed 2026-07-17 00:40:04 -07:00
commit f281ee1815
9 files changed
+308 -42

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ is still outside the supported boundary.
- [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)
- [NVMe/RDMA Capability Boundary](nvme-rdma-capability-boundary.md)
- [WAL Multi-Block Record Opt-In Boundary](wal-multiblock-opt-in.md)
## Version Boundary
@@ -0,0 +1,101 @@
# NVMe/RDMA Capability Boundary
Status: **non-claim**. Seaweed Block's implemented product path is still
NVMe/TCP for the supported lab. NVMe/RDMA and RoCE remain future work until a
real product transport and live I/O gates pass.
## Current Implemented Path
The current Block NVMe path is:
```text
Kubernetes PVC
-> CSI publish context
-> blockvolume NVMe/TCP frontend
-> Linux nvme connect -t tcp
-> mounted app pod write/read
```
This is documented in the NVMe/TCP supported-lab evidence. It does not imply
RDMA.
## Host Capability Inputs
Host facts are necessary but not sufficient for a product claim:
- `nvme` CLI is present and can read subsystem state.
- `nvme-fabrics` and `nvme-tcp` are loaded or available for the current TCP
product path.
- `nvme-rdma` loaded or available makes a host a candidate, not a claim.
- `/sys/class/infiniband` device count and device names identify possible RDMA
hardware.
- RoCE IP/GID/device configuration must be captured as evidence before any
RDMA live I/O gate.
These facts can only say "this host might be able to run RDMA." They do not say
Seaweed Block can serve an NVMe/RDMA volume.
## Volume-Server Capability Inputs
A future Block NVMe/RDMA claim needs product-owned volume-server facts, not only
host facts:
- supported frontend transports: `tcp` versus `rdma`;
- RDMA listener state: listening/not listening, bind IP, port, device, and GID;
- advertised NQN/NSID for the RDMA listener;
- status endpoint evidence that the volume server selected RDMA intentionally;
- clear fallback/refusal when RDMA is requested but unsupported.
Today the product boundary is still typed refusal: TCP is implemented and RDMA
is not.
## Product Gap
The missing product work is a real NVMe-oF/RDMA target path:
- no RDMA listener implementation in `blockvolume`;
- no product-owned RDMA queue pair / memory registration path for NVMe-oF;
- no successful `nvme connect -t rdma` against a Seaweed Block target;
- no CSI publish context for RDMA frontend addresses;
- no Kubernetes NodeStage/NodeUnstage RDMA attach cleanup gate;
- no status/report/dashboard/explain surface for RDMA target health;
- no same-shape TCP versus RDMA performance evidence.
External RDMA work under `C:\work\rdma\seaweed-mono-rdma-refresh` is useful
evidence for VFS/object/RustVolume acceleration and library feasibility, but it
is not a Seaweed Block NVMe-oF/RDMA target and must not be described as one.
## Required Product Gates Before Claim
The minimum gates before any NVMe/RDMA claim are:
1. Standalone live I/O gate:
`blockvolume --nvme-transport rdma` starts a real RDMA listener,
Linux `nvme connect -t rdma` succeeds, write/read verifies, and cleanup
leaves no NVMe/RDMA residue.
2. Kubernetes publish/attach gate:
dynamic PVC publishes RDMA frontend context, CSI NodeStage connects through
`nvme connect -t rdma`, app pod writes/reads, delete/uninstall cleanup is
clean.
3. Status surface gate:
CRD/report/dashboard/explain show transport=`rdma`, endpoint/device evidence,
and failure reasons without false `Ready=True`.
4. Fallback/refusal gate:
unsupported or misconfigured RDMA must fail closed with a stable reason and
leave TCP behavior unchanged.
5. Performance gate:
only after correctness gates pass, compare same-shape TCP and RDMA runs with
product-owned counters. Until then, no acceleration or SLO claim.
## Phase 157 Decision
Phase 157 keeps the current public boundary:
```text
NVMe/TCP: source-gated supported-lab product path.
NVMe/RDMA/RoCE: host capability and external-library evidence only; product non-claim.
```
The next useful product step is a read-only capability probe that exposes the
volume server's current frontend transport support and RDMA refusal/fallback
facts before any RDMA data path is implemented.
@@ -98,6 +98,7 @@ The supported-lab claim is intentionally narrow:
| 154 | Durable-status HeadLSN diagnostic cleanup | PASS |
| 155 | Mounted durable-status HeadLSN confirmation | PASS |
| 156 | WAL multi-block release-smoke decision keeps opt-in source-gated | PASS |
| 157 | NVMe/RDMA capability boundary keeps RDMA as non-claim | PASS |
Key QA sign-offs:
@@ -138,6 +139,7 @@ Key QA sign-offs:
- `internal/docs/qa-assignments/phase154-durable-status-head-lsn-cleanup-qa-signoff.md`
- `internal/docs/qa-assignments/phase155-mounted-durable-status-head-lsn-confirmation-qa-signoff.md`
- `internal/docs/qa-assignments/phase156-wal-multiblock-release-smoke-decision-qa-signoff.md`
- `internal/docs/qa-assignments/phase157-nvme-rdma-capability-boundary-qa-signoff.md`
## Performance Baseline
+5
View File
@@ -133,6 +133,11 @@ Seaweed Block can already demonstrate a narrow Kubernetes block-storage loop:
`DurableLSN`, `HeadLSN`, and recovery evidence all match the recovered LSN.
Phase 156 keeps the opt-in source-gated: a future public release-image claim
requires a matching-image smoke of the explicit opt-in recovery/status path.
- Phase 157 keeps RoCE/NVMe-RDMA as a product non-claim until the product owns a
real RDMA transport path and passes standalone live I/O, Kubernetes
publish/attach, status-surface, fallback/refusal, and cleanup gates. Host RDMA
capability and external VFS/object RDMA evidence remain useful inputs but are
not a Seaweed Block NVMe/RDMA claim.
- Kubernetes NVMe/TCP mounted reconnect is source-gated through changed
desired path-set evidence: CSI-node can connect a newly published desired
NVMe path, prune the stale old host path for the same NQN, preserve pod
+39 -42
View File
@@ -1,33 +1,8 @@
# Current Plan: Phase 157 NVMe/RDMA Capability Boundary
# Current Plan: Phase 158 NVMe/RDMA Volume Capability Probe
Status: planning.
Phase 156 closed the WAL multi-block release-smoke decision:
```text
phase156_wal_multiblock_release_smoke_decision_status=ok
runtime_opt_in_name=durable-wal-multiblock-records
default_wal_format_unchanged=true
source_gated_status=kept
published_image_smoke_required=true
published_image_smoke_scope=explicit_opt_in_recovery_status
recovery_test_disable_flusher_user_claim=false
performance_slo_claim_allowed=false
roce_claim_allowed=false
nvme_rdma_claim_allowed=false
phase156_decision=keep_source_gated_until_matching_image_smoke
next_recommendation=phase157_nvme_rdma_capability_boundary
```
## Goal
Define the next NVMe/RDMA boundary before implementation. The project already
has a TCP NVMe supported-lab path and has explicit RoCE/NVMe-RDMA non-claims.
Before adding code, Phase 157 should identify what product evidence would make
NVMe/RDMA a real claim versus a host capability or external RDMA library
experiment.
## Required Evidence
Phase 157 closed the NVMe/RDMA capability boundary:
```text
phase157_nvme_rdma_capability_boundary_status=ok
@@ -40,29 +15,51 @@ rdma_transport_product_gap_documented=true
required_live_io_gate_documented=true
required_k8s_publish_gate_documented=true
performance_slo_claim_allowed=false
phase157_decision=keep_nvme_rdma_non_claim_until_product_transport_gates
next_recommendation=phase158_nvme_rdma_volume_capability_probe
```
## Goal
Add a read-only capability surface for the current Block NVMe frontend support.
The surface should report that TCP is implemented and RDMA is unsupported, with
a stable refusal/fallback reason, before any RDMA data path is attempted.
## Required Evidence
```text
phase158_nvme_rdma_volume_capability_probe_status=ok
frontend_transport_capability_surface_present=true
nvme_tcp_supported=true
nvme_rdma_supported=false
nvme_rdma_refusal_reason=<stable_reason>
volume_server_capability_query_supported=true
k8s_status_or_report_surface_updated=<true|deferred_with_reason>
host_capability_not_product_claim=true
no_rdma_listener_started=true
tcp_behavior_unchanged=true
performance_slo_claim_allowed=false
next_recommendation=<specific next phase>
```
## Boundaries
- Do not claim NVMe/RDMA or RoCE from host capability alone.
- Do not claim acceleration without same-shape baseline and product-owned
evidence.
- Do not mix the external RDMA library experiment with the Block product claim
unless a concrete transport path is wired and gated.
- Keep TCP NVMe supported-lab claims separate from future RDMA claims.
- Do not implement an RDMA listener in this phase.
- Do not claim NVMe/RDMA attach, RoCE live I/O, acceleration, or performance.
- Do not change TCP behavior or the existing typed RDMA refusal.
- Keep the surface read-only and product-owned.
## Candidate Work
1. Inventory current Block NVMe/TCP evidence and current RDMA/RoCE non-claims.
2. Record what live facts are available from host preflight and volume-server
capability APIs.
3. Define the minimum product gates for NVMe/RDMA: standalone live I/O,
Kubernetes publish/attach, status surface, cleanup, and explicit fallback.
4. Decide the next implementation phase only after the evidence boundary is
clear.
1. Locate the existing NVMe frontend transport selection/refusal code.
2. Add a small read-only capability DTO/API or status field for frontend
transport support.
3. Assert TCP supported, RDMA unsupported, stable reason, and no RDMA listener.
4. Decide whether the next step should be a standalone RDMA listener spike or a
Kubernetes publish-context design.
## Exit Criteria
Phase 157 can close when the roadmap and docs clearly separate host capability,
external RDMA experiments, and a future Block NVMe/RDMA product claim.
Phase 158 can close when users and gates can query the product and see the
current transport capability boundary directly from Seaweed Block, not only from
docs.
@@ -0,0 +1,41 @@
# Phase 157 Finished Plan: NVMe/RDMA Capability Boundary
Status: **closed 2026-07-17, local gate PASS**.
## Problem
Seaweed Block has strong NVMe/TCP supported-lab evidence and separate external
RDMA/VFS/object evidence in the mono RDMA work. The risk was treating host RDMA
capability or external-library success as a Block NVMe/RDMA product claim.
## Work
Phase 157 added a release-boundary document and gate that:
- keeps NVMe/RDMA and RoCE as product non-claims;
- separates host capability inputs from volume-server/product capability;
- names the current product gap: no real NVMe-oF/RDMA listener or Kubernetes
publish/attach path;
- defines the minimum gates required before any claim;
- recommends a read-only volume capability probe as the next step.
## Evidence
```text
phase157_nvme_rdma_capability_boundary_status=ok
current_nvme_tcp_supported_lab_status=source_gated
current_roce_claim_allowed=false
current_nvme_rdma_claim_allowed=false
rdma_host_capability_inputs_documented=true
rdma_volume_server_capability_inputs_documented=true
rdma_transport_product_gap_documented=true
required_live_io_gate_documented=true
required_k8s_publish_gate_documented=true
phase157_decision=keep_nvme_rdma_non_claim_until_product_transport_gates
next_recommendation=phase158_nvme_rdma_volume_capability_probe
```
## Conclusion
The next phase should add a read-only capability surface for current frontend
transport support/refusal before any RDMA data path implementation.
@@ -90,6 +90,11 @@ This is the short internal roadmap. Keep it current and readable.
Phase 156 keeps the opt-in source-gated until a future matching-image release
smoke validates the explicit opt-in recovery/status path on published
artifacts.
- Phase 157 keeps RoCE/NVMe-RDMA as a product non-claim until the product owns a
real RDMA transport path and passes standalone live I/O, Kubernetes
publish/attach, status-surface, fallback/refusal, and cleanup gates. Host RDMA
capability and external VFS/object RDMA evidence are inputs, not Block
NVMe/RDMA product evidence.
Do not skip from scripts directly to mutating operator lifecycle. Helm has
stabilized the installation contract, and Phase 35 added read-only CRD status,
@@ -0,0 +1,49 @@
# Phase 157 QA Sign-Off: NVMe/RDMA Capability Boundary
Status: **PASS** on 2026-07-17.
Run bundle:
`results/phase157-nvme-rdma-capability-boundary-gate`.
## Verdict
Phase 157 keeps RoCE/NVMe-RDMA as a product non-claim. The current product
evidence is NVMe/TCP. RDMA host capability and external RDMA/VFS/object work
are useful inputs, but they do not prove a Seaweed Block NVMe-oF/RDMA target.
No runtime or transport implementation changed in this phase.
## Evidence
```text
phase157_nvme_rdma_capability_boundary_status=ok
current_nvme_tcp_supported_lab_status=source_gated
current_roce_claim_allowed=false
current_nvme_rdma_claim_allowed=false
rdma_host_capability_inputs_documented=true
rdma_volume_server_capability_inputs_documented=true
rdma_transport_product_gap_documented=true
required_live_io_gate_documented=true
required_k8s_publish_gate_documented=true
performance_slo_claim_allowed=false
phase157_decision=keep_nvme_rdma_non_claim_until_product_transport_gates
next_recommendation=phase158_nvme_rdma_volume_capability_probe
cleanup_status=ok
```
## Checked Inputs
- Phase 103 still treats RDMA hardware and `nvme-rdma` module availability as
candidate evidence, not a product claim.
- Phase 104 still records the current target as `target_nvme_rdma_supported=false`.
- Phase 118 still keeps `--nvme-transport=rdma` as a typed public refusal with
`rdma_listener_implemented=false`.
- The new boundary doc names required future gates: standalone live I/O,
Kubernetes publish/attach, status surface, fallback/refusal, cleanup, and
only then performance comparison.
## Conclusion
Phase 157 closes the decision boundary. The next safe step is a read-only
volume capability probe that reports TCP supported and RDMA unsupported/fallback
facts before any RDMA data path work.
@@ -0,0 +1,65 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="${1:-$(pwd)}"
ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${ROOT}/results/phase157-nvme-rdma-capability-boundary-gate}"
SUMMARY="${ARTIFACT_DIR}/phase157-nvme-rdma-capability-boundary-summary.txt"
mkdir -p "${ARTIFACT_DIR}"
: >"${SUMMARY}"
write_summary() {
echo "$*" | tee -a "${SUMMARY}" >/dev/null
}
require_grep() {
local file="$1"
local needle="$2"
local label="$3"
if ! grep -Fq -- "${needle}" "${file}"; then
echo "missing ${label}: ${needle} in ${file}" >&2
exit 1
fi
write_summary "${label}=true"
}
write_summary "phase157_nvme_rdma_capability_boundary_status=running"
write_summary "current_nvme_tcp_supported_lab_status=source_gated"
write_summary "current_roce_claim_allowed=false"
write_summary "current_nvme_rdma_claim_allowed=false"
write_summary "performance_slo_claim_allowed=false"
cd "${ROOT}"
require_grep "scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh" "roce_claim_allowed=false" "phase103_keeps_roce_non_claim"
require_grep "scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh" "roce_live_gate_required=true" "phase103_requires_live_roce_gate"
require_grep "scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh" "roce_preflight_candidate" "phase103_records_candidate_not_claim"
require_grep "scripts/run-phase104-roce-live-io-feasibility-gate.sh" "target_nvme_rdma_supported=false" "phase104_target_rdma_unsupported"
require_grep "scripts/run-phase104-roce-live-io-feasibility-gate.sh" "phase104_roce_live_io_gate_required_before_claim=true" "phase104_requires_live_io_before_claim"
require_grep "scripts/run-phase118-nvme-rdma-transport-seam-gate.sh" "blockvolume_rdma_public_refusal=true" "phase118_public_refusal_documented"
require_grep "scripts/run-phase118-nvme-rdma-transport-seam-gate.sh" "rdma_listener_implemented=false" "phase118_no_rdma_listener"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "Status: **non-claim**" "rdma_boundary_doc_exists"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "Host Capability Inputs" "rdma_host_capability_inputs_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "Volume-Server Capability Inputs" "rdma_volume_server_capability_inputs_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "The missing product work is a real NVMe-oF/RDMA target path" "rdma_transport_product_gap_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "Standalone live I/O gate" "required_live_io_gate_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "Kubernetes publish/attach gate" "required_k8s_publish_gate_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "External RDMA work under" "external_rdma_evidence_separated"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "no acceleration or SLO claim" "rdma_perf_non_claim_documented"
require_grep "docs/releases/nvme-rdma-capability-boundary.md" "read-only capability probe" "next_capability_probe_documented"
require_grep "docs/releases/README.md" "NVMe/RDMA Capability Boundary" "release_index_links_rdma_boundary_doc"
require_grep "docs/releases/nvme-tcp-supported-lab.md" "RoCE or NVMe/RDMA data path" "nvme_tcp_doc_keeps_rdma_non_claim"
require_grep "docs/roadmap.md" "Phase 157 keeps RoCE/NVMe-RDMA as a product non-claim" "roadmap_phase157_boundary_documented"
require_grep "internal/docs/product-roadmap.md" "Phase 157 keeps RoCE/NVMe-RDMA as a product non-claim" "product_roadmap_phase157_boundary_documented"
write_summary "rdma_host_capability_inputs_documented=true"
write_summary "rdma_volume_server_capability_inputs_documented=true"
write_summary "rdma_transport_product_gap_documented=true"
write_summary "required_live_io_gate_documented=true"
write_summary "required_k8s_publish_gate_documented=true"
write_summary "phase157_decision=keep_nvme_rdma_non_claim_until_product_transport_gates"
write_summary "next_recommendation=phase158_nvme_rdma_volume_capability_probe"
write_summary "cleanup_status=ok"
write_summary "phase157_nvme_rdma_capability_boundary_status=ok"