From f52f3e484c9d4ac6ba1e9a88bcf8a83daa26dcb7 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Fri, 12 Jun 2026 15:23:10 -0700 Subject: [PATCH] phase39: record d4 d5 status-only pass --- seaweed-block/internal/docs/current-plan.md | 17 ++++--- ...4-d5-finalizer-delete-safety-qa-signoff.md | 45 +++++++++++++++++++ ...olume-delete-safety-status-isolation-qa.md | 7 ++- 3 files changed, 61 insertions(+), 8 deletions(-) diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index 7211381ff8..97fb00abf9 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -135,7 +135,7 @@ kubectl auth can-i boundary sweep: status/events yes, finalizers/spec/workloads Goal: prove residue or insufficient evidence becomes blocked delete-safety status with non-mutating next steps. -Status: enum fix dev-complete; QA rerun pending. +Status: QA PASS on `f167f9a`. Acceptance: @@ -159,7 +159,7 @@ live CRD status/event check if lab is available Goal: prove clean evidence becomes releasable delete-safety status without claiming that operator-status removes finalizers or completes deletion. -Status: ready for QA after status-only pivot. +Status: QA PASS on status-only path. Acceptance: @@ -182,7 +182,7 @@ cleanup verifier on m01/m02/tp01 if lab is healthy Goal: prove delete-safety for one volume does not affect unrelated volumes. -Status: pending. +Status: ready for QA; restore `tp01` first for 3-node validation. Acceptance: @@ -280,6 +280,12 @@ QA strict rerun from clean lab `scripted` even though blocked delete-safety emits `observe.verify_cleanup mode=scripted`. Added `scripted` to the volume allowedActions mode enum and a schema regression test. D4 live rerun is pending. +- 92%: D4 re-run on `f167f9a` passed. The blocked path now writes + `deleteSafety.state=blocked`, `decision=rejected`, + `CleanupRequired=True`, and `observe.verify_cleanup mode=scripted + mutationAllowed=false` with `finalizer_patches=0`. D4 and D5 both pass on the + status-only path. Proceed to D6 multi-volume status isolation after `tp01` is + restored if the gate exercises three nodes. ## Prerequisites / Risks @@ -314,7 +320,6 @@ Rejected paths: ## Next Step -Ask QA to re-run D4 from -`internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa.md`. -D5 already passed on the status-only path. After D4 passes, run D6 with +Run D6 with `internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md`. +Restore `tp01` first if D6 uses the 3-node RF=3 lab. diff --git a/seaweed-block/internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa-signoff.md b/seaweed-block/internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa-signoff.md index c5aff4e845..e760dbf4fb 100644 --- a/seaweed-block/internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa-signoff.md +++ b/seaweed-block/internal/docs/qa-assignments/phase39-d4-d5-finalizer-delete-safety-qa-signoff.md @@ -331,3 +331,48 @@ action) 422s and never lands. Add `scripted` to that enum, re-run D4, **then** D multi-volume status isolation. Recommend the live/envtest regression for the status writer once more — it would have caught this 422 (and the prior 404/403) before handoff. + +--- + +## D4 RE-RUN (`f167f9a`) — PASS + +`f167f9a phase39: allow scripted volume actions` adds `scripted` to the +`SwBlockVolume.status.allowedActions[].mode` enum (now `read_only, dry_run, +scripted`, mirroring the cluster `safeNextSteps` enum). Re-ran D4 live (re-imported +the existing image — binary unchanged — and re-installed with the updated CRD): + +```text +operator_status=write_status ... volumes=1 events=3 finalizer_patches=0 mutation_allowed=false EXIT=0 +SwBlockVolume.status.deleteSafety: state=blocked decision=rejected reason=iscsi_node_records_present +condition CleanupRequired: True / iscsi_node_records_present +allowedActions[observe.verify_cleanup]: mode=scripted mutationAllowed=false +metadata.finalizers: (empty) Ready=True conditions: 0 +idempotent: 3 reconciles -> state stays blocked, 2 distinct Events (bounded, not per-reconcile growth) +no finalizer-added/released Events +final cleanup verifier: cleanup_status=ok, residue 0 +``` + +All D4 status-only criteria are met: `blocked`/`rejected` with the verifier +reason, `CleanupRequired=True`, the `observe.verify_cleanup` action surfaces with +`mode=scripted mutationAllowed=false` (no longer 422), no `Ready=True`, +`finalizer_patches=0`, no finalizer Events, bounded Events on repeat, and no +storage/workload/host mutation. PASS. + +### Final Phase 39 D4/D5 status (status-only path) + +| Gate | Result | +|---|---| +| RBAC boundary (status-only, no finalizers) | PASS | +| D4 blocked delete-safety status | **PASS** (`f167f9a`) | +| D5 clean delete-safety status | PASS | +| Final cleanup verifier | PASS | +| Lab: tp01 | still `NotReady`/unreachable | + +**D4 and D5 both pass on the status-only path.** The operator surfaces +delete-safety (`blocked`/`releasable`, decision, `CleanupRequired`, the scripted +verify_cleanup action, `finalizerReleaseAllowed` as a fact) and emits Events, +with **zero finalizer/spec/storage/workload mutation** and an RBAC boundary that +proves it. **Phase 39 D4/D5 can close; proceed to D6 multi-volume status +isolation** (restore tp01 first if D6 exercises multiple nodes). Still recommend +adding the live/envtest status-writer regression — it would have caught the +404/403/422 chain before each handoff. diff --git a/seaweed-block/internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md b/seaweed-block/internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md index 75c6ffe855..5466d620ab 100644 --- a/seaweed-block/internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md +++ b/seaweed-block/internal/docs/qa-assignments/phase39-d6-multi-volume-delete-safety-status-isolation-qa.md @@ -1,7 +1,10 @@ # Phase 39 D6 QA Assignment: Multi-Volume Delete-Safety Status Isolation -Status: pending; run only after D4/D5 status-boundary validation passes on -`1630de2` or newer. +Status: ready for QA. D4/D5 status-boundary validation passed on `f167f9a`. + +Required source floor: + +- `f167f9a phase39: allow scripted volume actions` ## Goal