Restore is created with --master and fills on access (no restore driver, no background copy); its source snapshot stays a dependent for the target's life. Fork and template retirement are not in this release. The documented show, snapshots and snapshot-delete commands get the required --master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 KiB
Seaweed Block User Capabilities (Kubernetes)
Use this when: you operate the Kubernetes alpha and need to know what it does today, which read-only operations commands exist, and what its status vocabulary means.
This page covers Kubernetes block volumes. Agent workspace disks (chunk
snapshots, restores and host moves, a proof of concept) are described in the
README and the
standalone deployment guide. Feature status is in
Kubernetes status; the exact release evidence is in
releases/README.md.
Primary User Loop
The supported alpha loop is:
Helm install
-> create a Kubernetes PVC
-> mount the PVC in a writer pod
-> verify the same data from a replacement reader pod
-> inspect status/report/dashboard/support evidence
-> uninstall and verify zero residue
The quickstart command path is in
quickstart-kubernetes.md.
Core Capabilities
Day-1 Helm Install And First PVC
Users can generate Helm values from the current Kubernetes cluster, install the Seaweed Block alpha stack, create the first PVC, run a writer pod, run a replacement reader pod, and verify persisted data.
Expected summary fields:
first_volume_status=ok
writer_verified=true
reader_verified=true
inventory_status=ok
status_report=status/report/index.html
cleanup_status=ok
Standard Kubernetes PVC Workflow
The normal volume creation path is Kubernetes PVC creation:
kubectl apply -f pvc.yaml
-> CSI dynamic provisioning
-> iSCSI target
-> app pod mounts the PVC through persistentVolumeClaim
The current default filesystem path is ext4 through the CSI mount flow.
Multi-Volume Lab Path
The gated lab path validates three RF=3 PVC-backed volumes at the same time:
- three PVCs bind and mount,
- each volume has its own primary and publish target,
- ManagedVolume reports each volume independently,
- cross-volume authority mixups are rejected by the gate.
This is a lab-gated capability, not a broad scale claim.
NVMe/TCP Supported-Lab Path
The source-gated NVMe/TCP path now has Kubernetes CSI evidence for:
- protocol selection through generated Helm values;
- one PVC with multiple NVMe frontend paths for one NQN/NSID;
- multiple PVCs with distinct NVMe identities and no cross-volume mixup;
- lifecycle soak with repeated stage/unstage and zero NVMe residue;
- status surfaces that expose protocol, NQN, namespace ID, address, and path count;
- one observed path loss projected as
blocked/nvme_multipath_path_missing, never falseReady=True; - 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; - 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. Public image claims still require matching seaweed-block and
seaweed-block-csi images to pass the NVMe release smoke.
Recovery And Failover Gates
The current alpha has gated recovery evidence for:
- CSI reattach recovery: primary blockvolume stops, authority promotes a surviving replica, a replacement workload pod reads the same PVC data.
- Mounted transparent failover on the proven Stage-2 path: the same mounted writer pod continues through iSCSI ALUA/dm-multipath when the primary path fails.
- Interleaved multi-volume failover: two volumes fail over independently while an untouched third volume remains stable.
The broad claim remains narrow: these are supported lab gates, not production HA or broad RTO/SLO commitments.
Returned-Replica ACK Eligibility Executor
The returned-replica path now has a beta-candidate executor gate for one narrow authority fact:
SwBlockReplicaEligibility.status.ackEligible=true
This gate runs only after live evidence shows:
- the old primary returned as a non-primary replica,
- the old primary remains frontend-fenced,
- the current primary remains unchanged,
- the returned replica covers the required durable frontier,
- the target identity matches exactly one volume/replica.
The executor writes the narrow SwBlockReplicaEligibility.status target. It
does not rewrite broad SwBlockVolume.status, publish a frontend, start
rebuild/catch-up traffic, change primary authority, or perform failback.
Restart Persistence
With the hostPath-backed alpha persistence path, QA gates verify:
- data written before restart remains readable after k3s/product restart,
- a promoted RF=3 primary does not roll back to an old primary after restart,
- epoch and publish target do not regress,
- multiple volumes remain distinct after restart.
Read-Only Operations
Port-forward blockmaster when reading live state:
kubectl -n kube-system port-forward deploy/sw-blockmaster 9333:9333
| Command | Use |
|---|---|
sw-block ops cluster --master-api 127.0.0.1:9333 -o json |
Cluster snapshot. |
sw-block ops volumes --master-api 127.0.0.1:9333 |
Volume list. |
sw-block ops status --volume <id> --master <addr> --status-addr <addr> --out <dir> |
Focused live status bundle. |
sw-block ops describe volume <id> --namespace default --master 127.0.0.1:9333 |
Volume detail. |
sw-block ops timeline volume --from-bundle <dir> <id> -o jsonl |
Volume event timeline from a bundle. |
sw-block ops explain volume --from-bundle <dir> <id> |
Human-readable explanation and reason code. |
sw-block ops report --master-api 127.0.0.1:9333 --out <dir> |
Static HTML/JSON/text report. |
sw-block ops dashboard --master-api 127.0.0.1:9333 --listen 127.0.0.1:9334 |
Local read-only dashboard. |
sw-block ops inventory --namespace default --master 127.0.0.1:9333 --out <dir> |
Replica-level support inventory. |
Report output includes:
index.html
summary.txt
cluster-evidence.json
timeline.jsonl
operator-snapshot.json
operator-snapshot.json is a read-only status projection. By itself it is not
a controller and it does not permit mutations.
Kubernetes-Native Status And Events
The optional operator-status path can publish the same read-only model into Kubernetes:
SwBlockCluster.statusSwBlockVolume.status- Kubernetes Conditions
- Kubernetes Events
The controller is status/events-only. Its ServiceAccount is constrained to CRD
read, CRD /status write, and Event create. It does not patch CRD spec, create
PVCs, mutate workloads, own finalizers, run cleanup, or execute upgrades.
Current status surfaces include:
- volume readiness and stable reason codes,
- node readiness and node blockers,
- support evidence references,
- cleanup-required and delete-safety visibility,
- safe read-only/dry-run/scripted next-step hints,
- install drift for current versus desired chart/app/image identity.
Install drift is visibility only. It can report ok, mismatch, or unknown;
it does not run Helm, kubectl, upgrade, or rollback commands.
Support Bundle Replay
Support artifacts can be collected and replayed offline:
bash scripts/collect-helm-support-bundle.sh "$PWD"
sw-block ops report --from-bundle <bundle-or-artifact-dir> --out /tmp/sw-block-report
sw-block ops explain volume <volume-id> --from-bundle <bundle-or-artifact-dir>
sw-block ops dashboard --from-bundle <bundle-or-artifact-dir> --listen 127.0.0.1:9334
This is intended to avoid SSH log spelunking. A cold reviewer should be able to understand cluster state, volume state, conditions, reason codes, and suggested read-only/dry-run actions from the bundle.
Status Vocabulary
The current status model is negative-first:
Ready=True reason=first_volume_verifiedmeans current evidence supports a ready claim.Blocked=True reason=csi_node_image_pull_failedand similar reason codes identify known blockers.EvidenceStale=TrueorReady=Unknownmeans evidence is stale, missing, or still reconverging; the product should not claim ready.CleanupRequired=Truemeans residue evidence exists; the operator suggests scripted verification but does not clean automatically.install_drift_mismatchmeans current install identity differs from desired evidence; the operator reports the mismatch but does not execute upgrade or rollback.ack_eligibility_recordedonSwBlockReplicaEligibility.statusmeans the authority executor recorded the ACK eligibility result after terminal returned-replica evidence. It is not a rebuild or failback completion signal.- Cluster counters include
ready_volume_count,blocked_volume_count, andstale_volume_count.
Cleanup
The cleanup commands and the expected clean output are in the
quickstart. scripts/verify-helm-cleanup.sh
checks:
- Helm and Kubernetes resources,
- iSCSI sessions,
- iSCSI node DB records,
- dm-multipath maps,
dmsetupdevices,- product processes,
- hostPath residue.
Recommended Learning Path
- Run the quickstart: install, first PVC, writer/reader, cleanup.
- Open the local read-only dashboard.
- Create multiple PVCs and inspect
ManagedVolumeentries. - Collect a support bundle and replay it offline.
- Run restart or failover gates in a lab/TestOps environment if you are evaluating recovery behavior.
- Intentionally break a non-production lab path, such as a bad CSI image tag,
and verify the status surface reports
Blockedinstead of falseReady.
Explicit Non-Claims
The full list is in what you should not expect yet. In addition:
- The current bounded mutations are limited to lifecycle-owner finalizer ownership and authority-executor ACK eligibility target status. There is no promote, repair, rebuild, failback, delete, backup, restore, or cleanup mutation through UI/API/operator.
- No NVMe ANA parity for the transparent failover path.
- No performance, RTO, RPO, or SLO claim.