phase40: close operator foundation release

This commit is contained in:
pingqiu committed 2026-06-14 08:46:10 -07:00
1 parent 7c250c21f3
commit a7483b13f0
11 files changed
+286 -61

No files matched your search

+3 -3
View File
@@ -87,8 +87,8 @@ export PATH="$PWD:$PATH"
sw-block ops generate-helm-values \
--out values.day1.yaml \
--image ghcr.io/seaweedfs/seaweed-block:sha-6260e46fd3be \
--csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-6260e46fd3be
--image ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b \
--csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
helm install sw-block charts/seaweed-block \
--namespace kube-system \
@@ -115,7 +115,7 @@ status_report=status/report/index.html
cleanup_status=ok
```
Current validated alpha image tag: `sha-6260e46fd3be`.
Current validated alpha image tag: `sha-dc2972d0059b`.
Mutable `:alpha` is a smoke/demo tag only; it can drift from the source tree.
+7 -7
View File
@@ -88,8 +88,8 @@ From the repository root:
export KUBECONFIG="${KUBECONFIG:-/etc/rancher/k3s/k3s.yaml}"
sw-block ops generate-helm-values \
--out values.day1.yaml \
--image ghcr.io/seaweedfs/seaweed-block:sha-6260e46fd3be \
--csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-6260e46fd3be
--image ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b \
--csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
```
The `KUBECONFIG` fallback above is the common k3s path. Non-k3s users should
@@ -138,17 +138,17 @@ sw-block ops generate-helm-values \
```
Current validated alpha image tag:
`sha-6260e46fd3be`.
`sha-dc2972d0059b`.
Published image digests:
```text
seaweed-block
index: sha256:ef9c60f82c36f22360b10faafd32caf807f98ac0ea86c0365c0d0836e5f67110
linux/amd64: sha256:36481cbc1fc98fafdfa386823e0e5906785cb6f35748ef698ff1cec39bb40464
index: sha256:b8da5ca4e2bbe2f0f630fee0468790c444362615d68807a1be31fd237c84928f
linux/amd64: sha256:677f6321ea5199b14792345b8691358860bb9ca7376f4e4a2f3a7c0113d5db9b
seaweed-block-csi
index: sha256:b160ceee874dc6743074ef6b6735ccf05914c1de5951972922f6d3779bc73592
linux/amd64: sha256:82e41b7ef92ad8db38b6927e334cc1d564b1012ad916e9bde2e882cece680be8
index: sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6
linux/amd64: sha256:1fc636a4e0e63cc8cbee39e6775053c5d1aba7213ca9182a084e1bb6fe71474c
```
Mutable `:alpha` is a smoke/demo tag only. Do not use it as release evidence
+2 -2
View File
@@ -13,7 +13,7 @@ is still outside the supported boundary.
- [v0.3.4 Alpha — Status Surface Hardening And Strict New-User Path](v0.3.4-alpha.md)
- [v0.3.5 Alpha — Failure-Path Evidence And Cleanup Hardening](v0.3.5-alpha.md)
- [v0.3.6 Alpha — Test Realism And Dirty-Failure Hardening](v0.3.6-alpha.md)
- [v0.4 Beta Candidate — Kubernetes-Native Read-Only Operator Foundation](v0.4-beta-candidate.md)
- [v0.4 Beta — Kubernetes-Native Read-Only Operator Foundation](v0.4-beta-candidate.md)
## Version Boundary
@@ -50,7 +50,7 @@ is still outside the supported boundary.
live status endpoint unreachable, restart convergence, and real V3 SmartWAL
corruption gates prove no false `Ready=True` is projected from weak or dirty
evidence.
- `v0.4-beta-candidate` adds a Kubernetes-native read-only status foundation and
- `v0.4-beta` adds a Kubernetes-native read-only status foundation and
actionability layer: `SwBlockCluster` and `SwBlockVolume` CRDs, status-only
reconciliation, Conditions, Events, node readiness, support evidence refs,
cleanup/delete-safety visibility, install drift visibility, safe next-step
@@ -1,11 +1,11 @@
# v0.4 Beta Candidate - Kubernetes-Native Read-Only Operator Foundation
# v0.4 Beta - Kubernetes-Native Read-Only Operator Foundation
Status: beta-candidate release note for Phases 35-40. Immutable release image
digest is pending final release packaging.
Status: release-clear beta note for Phases 35-40. QA D6 passed on
2026-06-14 against the published `sha-dc2972d0059b` images.
## Summary
Seaweed Block v0.4 beta candidate adds Kubernetes-native read-only visibility
Seaweed Block v0.4 beta adds Kubernetes-native read-only visibility
and actionable status on top of the Helm/PVC/read-only-ops path:
```text
@@ -83,7 +83,7 @@ actions.
| Phase 38 action-model executable contract | `phase38-action-model-executable-contract-qa-signoff.md` | PASS |
| Phase 39 D4/D5 delete-safety status | `phase39-d4-d5-finalizer-delete-safety-qa-signoff.md` | PASS |
| Phase 39 D6 multi-volume delete-safety isolation | `phase39-d6-multi-volume-delete-safety-status-isolation-qa-signoff.md` | PASS |
| Phase 40 D1-D6 operator production hardening | `current-plan.md`, `phase40-d4-status-api-conformance-qa.md`, `phase40-d6-release-candidate-qa.md`, `phase40-d6-release-candidate-qa-signoff.md` | G1 published-image rerun PASS; G2 on `sha-dc2972d0059b` pending |
| Phase 40 D1-D6 operator production hardening | `current-plan.md`, `phase40-d4-status-api-conformance-qa.md`, `phase40-d6-release-candidate-qa.md`, `phase40-d6-release-candidate-qa-signoff.md` | PASS |
Final Phase 35 close:
@@ -93,9 +93,32 @@ Final Phase 36 close:
- `internal/docs/finished-plans/phase36_finishedplan_productized_operations_actionability.md`
## Release Images
Use immutable tags for release validation:
```text
ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b
ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
```
Published digests:
```text
seaweed-block
index: sha256:b8da5ca4e2bbe2f0f630fee0468790c444362615d68807a1be31fd237c84928f
linux/amd64: sha256:677f6321ea5199b14792345b8691358860bb9ca7376f4e4a2f3a7c0113d5db9b
seaweed-block-csi
index: sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6
linux/amd64: sha256:1fc636a4e0e63cc8cbee39e6775053c5d1aba7213ca9182a084e1bb6fe71474c
```
Published by GitHub Actions run `27490827782` from commit
`dc2972d0059beffb2447ab8546ceb65e646a7b66`.
## Current Claim
Seaweed Block v0.4 beta candidate may claim:
Seaweed Block v0.4 beta may claim:
- CRDs for `SwBlockCluster` and `SwBlockVolume` exist with status
subresources.
@@ -138,11 +161,6 @@ Seaweed Block v0.4 beta candidate may claim:
## Known Follow-Ups
- Complete final Phase 40 D6 G2 lab QA against the fresh release images:
`ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b`
(`sha256:b8da5ca4e2bbe2f0f630fee0468790c444362615d68807a1be31fd237c84928f`)
and `ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b`
(`sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6`).
- Document loopback publish targets as single-node/local-consumer only.
- Keep cleanup verifier strict for force-delete residue such as stale iSCSI node
DB records.
+4 -8
View File
@@ -101,17 +101,13 @@ preserve that model rather than add isolated scripts or separate status systems.
Recommended order from here:
1. Finish and release the operator-status foundation as one release-sized
slice. This includes real CRD/RBAC status-writer conformance tests,
stale-status polish, bounded Events, install drift status, and release-claim
alignment.
2. Cut a release after the operator-status foundation passes QA. This release
should claim status/events-only visibility, not lifecycle mutation.
3. Add finalizer ownership in a later lifecycle-owner slice. Current finding:
1. Operator-status foundation release: complete in v0.4 beta. It claims
status/events-only visibility, not lifecycle mutation.
2. Add finalizer ownership in a later lifecycle-owner slice. Current finding:
CRD finalizers cannot be protected by `swblockvolumes/finalizers` RBAC alone,
so operator-status remains status/events-only instead of taking main
`patch swblockvolumes`.
4. Add returned-replica rebuild/failback, backup/restore, and NVMe ANA parity
3. Add returned-replica rebuild/failback, backup/restore, and NVMe ANA parity
only after the status/action model stays stable.
## Future Non-Kubernetes Adapters
+25 -20
View File
@@ -1,6 +1,6 @@
# Current Plan: Phase 40 - Operator Production Hardening
Status: active, 94% complete. Started on 2026-06-13.
Status: closed, 100% complete. Started on 2026-06-13; closed on 2026-06-14.
Branch: `phase33-testops-failure-hardening`
@@ -69,7 +69,7 @@ finalizer mutation, promotion/fencing/rebuild/failback, or upgrade execution.
Goal: catch CRD schema and RBAC defects before live QA.
Status: dev-complete; QA/internal review pending.
Status: PASS.
Acceptance:
@@ -95,7 +95,7 @@ helm template with operatorStatus.create=true dryRun=false
Goal: remove known confusing status leftovers without changing product scope.
Status: dev-complete; QA/internal review pending.
Status: PASS.
Acceptance:
@@ -121,7 +121,7 @@ event identity regression
Goal: make install drift visible before implementing upgrade execution.
Status: dev-complete; QA/internal review pending.
Status: PASS.
Acceptance:
@@ -146,7 +146,7 @@ helm template/lint
Goal: turn the live-only failures from Phases 35-39 into repeatable gates.
Status: dev-complete; QA/internal review pending.
Status: PASS.
Acceptance:
@@ -172,7 +172,7 @@ QA assignment with explicit pass/fail evidence paths
Goal: prepare a coherent release boundary for the status-only operator
foundation.
Status: dev-complete; QA/PM review pending.
Status: PASS.
Acceptance:
@@ -199,21 +199,20 @@ QA minimal new-user walkthrough if release digest is available
Goal: prove the release candidate from a user and QA perspective.
Status: local gate passed; published-image G1 rerun passed; fresh release image
published; G2 pending.
Status: PASS.
Acceptance:
```text
[x] fresh Helm install from documented values
[x] first PVC writer/reader passes
[ ] operator-status CRDs show healthy volume status and Events
[ ] negative status scenario shows no false Ready=True
[ ] cleanup leaves zero residue
[x] operator-status CRDs show healthy volume status and Events
[x] negative status scenario shows no false Ready=True
[x] cleanup leaves zero residue
[x] conformance harness passes
[x] local chart render omits published-image-incompatible launcher flags by
default
[ ] docs and claims match the tested image
[x] docs and claims match the tested image
```
Verification:
@@ -236,11 +235,11 @@ and Phase 41 can safely start as a separate mutating lifecycle-owner track.
Acceptance:
```text
[ ] D1-D6 pass
[ ] operator-status remains status/events-only
[ ] known Phase 39 follow-ups are either fixed or explicitly carried forward
[ ] release/no-release decision is recorded
[ ] Phase 41 entry criteria are listed
[x] D1-D6 pass
[x] operator-status remains status/events-only
[x] known Phase 39 follow-ups are either fixed or explicitly carried forward
[x] release/no-release decision is recorded
[x] Phase 41 entry criteria are listed
```
Verification:
@@ -317,6 +316,12 @@ release PR or explicit hold note
`seaweed-block@sha256:b8da5ca4e2bbe2f0f630fee0468790c444362615d68807a1be31fd237c84928f`
and
`seaweed-block-csi@sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6`.
- 100%: QA reran D6 G2 against the fresh release image
`sha-dc2972d0059b`. The shipped binary published live
`SwBlockCluster.status`, `SwBlockVolume.status`, and a Kubernetes Event, while
the operator-status ServiceAccount remained status/events-only with no main
CRD, finalizer, pod, PVC, StorageClass, or delete mutation power. D6 is PASS
and no QA release blocker remains.
## Prerequisites / Risks
@@ -330,6 +335,6 @@ release PR or explicit hold note
## Next Step
Ask QA to run D6 G2 against `sha-dc2972d0059b`. Do not cut the release until
live operator-status CRD status, Events, and the status/events-only RBAC
boundary pass on the shipped binary.
Phase 40 is closed. Next phase should start as Phase 41 for lifecycle-owner
design and the first bounded mutating path, using the status/events-only release
as the stable baseline.
@@ -0,0 +1,159 @@
# Phase 40 Finished Plan: Operator Production Hardening
Status: closed on 2026-06-14.
Branch: `phase33-testops-failure-hardening`
## Outcome
Phase 40 closes the status/events-only operator foundation as a release-ready
boundary. The product can now ship a coherent v0.4 beta slice:
```text
Helm + PVC + read-only/status-only operator status + Events + diagnostics +
delete-safety/install-drift visibility. No lifecycle mutation.
```
The main problem addressed by this phase was not a missing user feature; it was
release trust. Phases 35-39 repeatedly found schema/RBAC defects only in live QA.
Phase 40 added release-candidate gates and conformance checks to catch those
classes earlier, then closed the chart/image skew found by QA.
## Delivered
- Status API conformance gate for `SwBlockCluster.status` and
`SwBlockVolume.status` payload shape:
- casing drift,
- enum drift,
- wrong endpoint usage,
- RBAC broadening,
- delete-safety status.
- Status correctness polish:
- stale `deleteSafety` clearing,
- single effective node `Ready` condition,
- bounded/stable Event identity preserved.
- Read-only install drift visibility:
- chart/app/operator image identity,
- current/desired/missing/mismatched status,
- report/dashboard/operator-snapshot/CRD agreement,
- no upgrade execution.
- Release claim alignment:
- README, quickstart, release note, roadmap, and QA assignments describe the
status/events-only operator foundation and explicit non-claims.
- Release candidate gates:
- local release gate script,
- TestOps status API conformance scenario,
- D6 QA assignment and sign-off.
- Chart/image compatibility fix:
- `--launcher-durable-impl` is gated by
`compat.launcherDurableImplFlag=false` by default,
- non-default `blockmaster.durableImpl` fails fast unless the compat flag is
enabled,
- local RC gate asserts the default chart render omits the incompatible flag.
## Release Images
Published by GitHub Actions run `27490827782` from commit
`dc2972d0059beffb2447ab8546ceb65e646a7b66`.
```text
ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b
ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
```
Published digests:
```text
seaweed-block
index: sha256:b8da5ca4e2bbe2f0f630fee0468790c444362615d68807a1be31fd237c84928f
linux/amd64: sha256:677f6321ea5199b14792345b8691358860bb9ca7376f4e4a2f3a7c0113d5db9b
seaweed-block-csi
index: sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6
linux/amd64: sha256:1fc636a4e0e63cc8cbee39e6775053c5d1aba7213ca9182a084e1bb6fe71474c
```
## QA Evidence
Primary D6 close:
- `internal/docs/qa-assignments/phase40-d6-release-candidate-qa-signoff.md`
Result:
- Local release gate: PASS.
- G1 first-volume with published image: PASS.
- G2 operator-status CRD/Event/RBAC with fresh release image: PASS.
- G3 negative status: PASS.
- G4 status API conformance: PASS.
- G5 cleanup residue: PASS.
Important QA sequence:
- Initial D6 held because the chart passed `--launcher-durable-impl` to
published images that did not support that flag.
- The chart compatibility fix resolved the blocker.
- QA reran G1 against the published `sha-6260e46fd3be` image and confirmed
first-volume still works.
- Fresh images were published from `dc2972d0059b`.
- QA ran G2 against `sha-dc2972d0059b` and confirmed live CRD status, Events,
and the status/events-only RBAC boundary on the shipped binary.
Supporting evidence:
- `internal/docs/qa-assignments/phase40-d4-status-api-conformance-qa.md`
- `internal/docs/qa-assignments/phase40-d6-release-candidate-qa.md`
- `docs/releases/v0.4-beta-candidate.md`
## Non-Claims
Phase 40 does not claim:
- production readiness,
- mutating Kubernetes operator lifecycle,
- automatic `SwBlockVolume` object creation or ownership,
- finalizer ownership or finalizer add/remove,
- delete execution,
- automatic cleanup,
- automatic support-bundle collection or upload,
- upgrade or rollback execution,
- promote, repair, rebuild, failback, delete, backup, restore, or cleanup
mutation through UI/API/operator,
- returned-replica rebuild or automated failback,
- NVMe ANA parity expansion,
- production dashboard,
- performance, RTO, RPO, or SLO guarantees.
## Carry-Forwards
1. **Real envtest/live-apiserver status-writer harness.**
The current conformance gate is schema-aware and useful, but still uses a
mock server. A real apiserver + real RBAC harness remains the highest-leverage
way to shift live-only CRD/RBAC defects left.
2. **`swblock -env` flag ordering.**
Runner flags after the scenario path can be silently ignored. Fix the runner
or correct all runbooks to put `-env` before the scenario path.
3. **Parameterized support-bundle import nodes.**
`helm-support-bundle-diagnostics-chain` hardcodes a tp01 import path; make it
env-overridable so one lab node being down does not block unrelated negative
status validation.
4. **Restore `tp01`.**
Lab infra remained `NotReady`/unreachable during the release cycle. Restore
before RF=3 live multi-node work.
5. **Loopback publish-target documentation.**
Document loopback publish targets as single-node/local-consumer only.
## Phase 41 Entry Criteria
Phase 41 should start from the v0.4 beta status/events-only baseline and should
not weaken that boundary.
Recommended next scope:
- lifecycle-owner design,
- CR object ownership and finalizer strategy,
- first bounded mutating path with explicit action/precondition/executor/evidence
contract,
- real envtest/live-apiserver regression before any new mutating RBAC ships.
Do not start with NVMe ANA parity, backup/restore, rebuild/failback, or broad
mutation until the lifecycle-owner boundary is explicit and testable.
@@ -1,9 +1,11 @@
# QA Sign-off — Phase 40 D6 Release Candidate Gate
Verdict: **Blocker RESOLVED — chart-flag gate verified.** First filed HOLD on
`9a8df78`; re-validated on `5f0566e` (see Re-validation below). The published-image
first-volume gate (G1) now passes. One residual confirmation remains before a full
release PASS (G2 operator-status claim on the actual release image).
Verdict: **PASS — release-clear from the QA gate.** First filed HOLD on `9a8df78`
(chart-ahead-of-image flag skew); chart-flag gate verified on `5f0566e` with G1
against published images; and the final blocker — G2 operator-status live
CRD/Event/RBAC on the **shipped release image `sha-dc2972d0059b`** — now passes
(see "G2 on the fresh release image" below). All D6 gates (Local, G1–G5) pass on
the shipped release artifacts; no QA release blocker remains.
## Re-validation — 2026-06-13, commit `5f0566e phase40: gate durable impl chart flag`
@@ -67,6 +69,51 @@ seaweed-block-csi:
sha256:b5942cd68d28aecdfebec1f1e5ec55a9cafe746169fee3b6c35916c93fffcaa6
```
### G2 on the fresh release image — PASS (2026-06-14)
Ran the operator-status live write-mode path against the shipped release images
(`sha-dc2972d0059b`, pulled into m01+m02 k3s) on the gated chart (`5f0566e`, lab
tree; chart unchanged through `340e05f`). Image preflight: the shipped blockmaster
binary defines **both** `--launcher-durable-root` and `--launcher-durable-impl`
(fully current), and `sw-block ops` exposes `operator-status`.
```text
install: helm install ... -f day1.yaml(image=sha-dc2972d0059b)
--set operatorStatus.create=true --set operatorStatus.dryRun=false
--set operatorStatus.interval=15s --wait
blockmaster: 1/1 Running (no CrashLoopBackOff on the gated chart)
first volume: first_volume_status=ok writer_verified=true reader_verified=true
(pvc sw-block-example-pvc / volume pvc-3344346b-...)
live CRD status (patched by the shipped operator-status loop):
SwBlockCluster sw-block: readyVolumeCount=1 volumeCount=1 blocked=0
SwBlockVolume sw-block-example-pvc: status=ready Ready=True reason=first_volume_verified
Event: Normal first_volume_verified swblockvolume/sw-block-example-pvc
"managed volume is ready for the documented path"
RBAC (can-i as system:serviceaccount:kube-system:sw-block-seaweed-block-operator-status):
patch swblockvolumes --subresource=status => yes
patch swblockclusters --subresource=status => yes
create events => yes
patch swblockvolumes (main object) => no
patch swblockvolumes --subresource=finalizers => no
patch pods => no
patch persistentvolumeclaims => no
update storageclasses => no
delete swblockvolumes => no
```
The shipped release binary publishes live CRD status + the ready Event with the
exact status/events-only RBAC boundary — no schema/casing/enum/endpoint defects,
no spec/finalizer/storage/workload/delete mutation power. The Phases 35–39
operator-status fixes are present in the published image. Cleanup verified:
`cleanup_status=ok`, helm 0 / pods 0.
**Final verdict: all D6 gates pass on the shipped release artifacts.** The chart
(`5f0566e`) installs and runs the documented first-volume path on the published
images (G1), and the operator-status read-only/status-only CRD + Event claim holds
on the shipped binary (G2). No release blocker remains from the QA gate.
---
## Original finding (commit `9a8df78`, superseded by the Re-validation above)
@@ -20,8 +20,8 @@ env:
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-6260e46fd3be"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-6260e46fd3be"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
topology:
nodes:
@@ -19,8 +19,8 @@ env:
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-6260e46fd3be"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-6260e46fd3be"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
topology:
nodes:
@@ -14,8 +14,8 @@ env:
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-6260e46fd3be"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-6260e46fd3be"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
topology:
nodes: