phase48: close returned replica live evidence gate

This commit is contained in:
pingqiu committed 2026-06-20 11:21:22 -07:00
1 parent aebc738305
commit 819ca344ee
6 files changed
+392 -112

No files matched your search

+7 -1
View File
@@ -140,7 +140,13 @@ Recommended order from here:
`authority.reintegrate_returned_replica` is allowed only as a dry-run,
non-mutating action when exact fencing and frontier evidence is present.
This is not automatic failback or rebuild execution.
5. Add backup/restore and NVMe ANA parity after they can reuse the same action
5. Phase 48: returned-replica live evidence close. **Closed 2026-06-20, QA PASS**
(`internal/docs/finished-plans/phase48_finishedplan_returned_replica_live_evidence.md`).
The live iSCSI returned-replica scenario now emits same-run managed-volume
evidence proving r1 remains fenced, r2 remains the primary, and the returned
replica covers the required frontier before any future executor mutates
authority or storage state.
6. Add backup/restore and NVMe ANA parity after they can reuse the same action
owner, evidence, and status model rather than creating another isolated
control plane.
+73 -109
View File
@@ -1,159 +1,123 @@
# Current Plan: Phase 47 Returned-Replica Executor Admission
# Current Plan: Phase 48 Returned-Replica Live Evidence Close
Status: active.
Status: complete; QA PASS.
Working branch: `phase47-returned-replica-executor-gate`
Working branch: `phase48-returned-replica-live-evidence`
Decision note: v0.5 release smoke remains intentionally skipped. Do not mark
v0.5 released until matching public images are published and the pinned-image
smoke is run.
Previous product phase: Phase 46 is closed in
`internal/docs/finished-plans/phase46_finishedplan_returned_replica_reintegration_productization.md`.
Previous product phase: Phase 47 is closed in
`internal/docs/finished-plans/phase47_finishedplan_returned_replica_executor_admission.md`.
Finished plan:
`internal/docs/finished-plans/phase48_finishedplan_returned_replica_live_evidence.md`.
## Product Goal
Move returned-replica reintegration from a purely rejected product hint to an
admitted dry-run executor decision when, and only when, the evidence proves the
returned replica is safe to consider:
Close the remaining returned-replica evidence gap before any mutating executor:
```text
returned replica observed
-> non-primary frontend/ACK path remains fenced
-> durable frontier is known
-> durable frontier covers the required frontier
-> product surfaces show a dry-run allowed action
-> no data-plane mutation executes in this phase
real iSCSI returned-replica run
-> r2 remains the sole frontend-ready primary
-> returned r1 remains frontend/ACK fenced
-> r1 durable frontier is observed
-> required frontier is derived from the live primary evidence
-> report/explain/dashboard can replay the same run as dry-run allowed
-> no rebuild/failback/ACK/frontend mutation executes
```
This phase is the executor-admission bridge. It does **not** implement automatic
failback, rebuild traffic, replica ACK eligibility mutation, or production HA
claims.
Phase 47 admitted `authority.reintegrate_returned_replica` only as a dry-run
action, but the live iSCSI scenario did not emit the managed-volume evidence
needed to prove the dry-run action from the same run. Phase 48 makes the live
gate produce and validate that evidence.
## Why This Is Next
Phase 46 made returned replicas visible and fenced. The next risk is turning
that visibility into an action without repeating the earlier operation-layer
failure mode:
Skipping directly from Phase 47 to a mutating executor would repeat the failure
mode we have been removing:
```text
semantic model looks correct
but the live code lacks the exact evidence or boundary
product surface says an action is allowed
but the live scenario that drove the storage path did not carry the exact facts
```
Phase 47 therefore starts by tightening the action evaluator and schema/API
regression gates before any executor is allowed to mutate storage state.
The next executor phase must start from same-run live evidence, not a synthetic
bundle plus a separate storage smoke.
## Scope Contract
| In | Out |
|---|---|
| dry-run admission for `authority.reintegrate_returned_replica` | automatic failback |
| exact returned-replica safety facts | broad rebuild executor |
| rejection on missing frontier coverage or unsafe frontend readiness | ACK eligibility mutation |
| CRD/report/dashboard/explain agreement | backup/snapshot/restore |
| schema/RBAC regression gate for status/action DTOs | NVMe ANA parity |
| TestOps returned-replica rerun | release-image publication |
| live returned-replica evidence bundle from the iSCSI scenario | automatic failback |
| required frontier derived from live durable primary evidence | rebuild traffic |
| returned replica durable frontier compared to required frontier | ACK eligibility mutation |
| report/operator-snapshot/dashboard/explain replay from same run | frontend publication change |
| TestOps assertions for dry-run allowed action from live evidence | release-image publication |
## D1: Dry-Run Admission Contract
## D1: Scenario Evidence Emission
Goal: replace blanket policy-disabled rejection with an evidence-gated dry-run
decision for returned-replica reintegration.
Goal: extend `iscsi-returned-replica-chain.yaml` so the live run emits a
`product-observation/cluster-evidence.json` bundle after r1 returns.
Acceptance:
```text
[x] `authority.reintegrate_returned_replica` remains mode=dry_run
[x] mutation_allowed remains false
[x] action is allowed only when returned replica is frontend fenced
[x] action is allowed only when durable frontier covers required frontier
[x] frontend-ready returned replica is rejected
[x] behind/missing frontier is rejected
[x] report/explain/dashboard/CRD surfaces show the same decision
[x] sw-block binary is built with blockmaster/blockvolume
[x] bundle contains r2 as primary/frontend-ready
[x] bundle contains returned r1 as frontend-fenced/non-healthy
[x] bundle contains required_frontier_known=true
[x] required_frontier_lsn comes from live r2 durable status
[x] returned r1 durable_lsn >= required_frontier_lsn
```
Implementation note: the first slice changes only the evaluator/contract. It
does not execute catch-up/rebuild/failback.
## D2: Same-Run Report Replay
Evidence: `TestOpsReturnedReplicaFromBundleSurfacesAcrossReportExplainDashboard`
and `go test ./core/ops` validate the dry-run allowed decision and rejection
paths.
## D2: Schema / RBAC Regression Gate
Goal: stop repeating live-only CRD/RBAC failures from Phases 35-42.
Goal: run `sw-block ops report --from-bundle` against the same live scenario
artifacts and assert the Phase 47 action decision.
Acceptance:
```text
[x] schema-aware API validates SwBlockVolume status payloads
[x] returned-replica action DTO uses the same enum/casing as the CRD
[x] operator-status remains status/events-only
[x] lifecycle-owner remains finalizer-only where enabled
[x] no main-object/spec/storage/workload mutation is added
```
Implementation note: `TestPhase40D1KubernetesStatusClientConformsToCRDSchemaAndRBAC`
now includes the Phase 47 `authority.reintegrate_returned_replica` allowed
dry-run payload and validates it against the CRD schema-aware mock. The live
server-side dry-run gate `returned-replica-status-schema-rbac-chain.yaml`
passed as run `20260620-101008-dbca`.
## D3: Product Surface Rerun
Goal: ensure D1's dry-run admission is visible and not overstated.
Acceptance:
```text
[x] report summary shows `decision=allowed` for the safe fenced returned replica
[x] explain shows the same allowed dry-run action
[x] dashboard/operator-snapshot shows the same action contract
[x] CRD status allowedActions uses camelCase and validates against the CRD
[x] unsafe/behind returned replica still has no false Ready=True
```
Evidence: `TestOpsReturnedReplicaFromBundleSurfacesAcrossReportExplainDashboard`
drives report, explain, dashboard/operator-snapshot, and CRD DTOs from the same
returned-replica bundle.
## D4: Live Returned-Replica Gate
Goal: rerun the real returned-replica scenario against the new action decision.
Acceptance:
```text
[x] component gate passes
[x] iSCSI returned-replica chain passes
[x] r2 remains sole primary/frontend-ready replica
[x] returned r1 remains frontend/ACK fenced
[x] action decision is dry-run allowed only for safe reintegration evidence
[x] summary shows returned r1 state=fenced reason=returned_replica_frontend_fenced
[x] summary shows authority.reintegrate_returned_replica decision=allowed
[x] action remains mode=dry_run mutation_allowed=false
[x] report is produced from the live run directory, not a synthetic fixture
[x] cleanup verifier reports zero residue
```
Evidence: component run `20260619-155251-ac1e` passed 16/16. iSCSI returned
chain run `20260619-155300-ba6d` passed 57/57 and proved r2 remained
primary/frontend-ready while returned r1 stayed non-primary/frontend-fenced.
The action decision assertion is covered by D3 because the live iSCSI scenario
does not yet emit a managed-volume report bundle with required-frontier
evidence.
## D3: Product Surface Parity
## D5: Close / Future Executor Decision
Goal: decide whether the next phase may wire a real executor.
Goal: ensure the live-derived bundle remains consumable by product surfaces.
Acceptance:
```text
[x] QA sign-off states exactly what is allowed and what remains non-claim
[x] finished plan records the evidence gate and no-mutation boundary
[x] roadmap names the next possible executor slice separately
[x] operator-snapshot carries replica_reintegrations[] for r1
[x] operator-snapshot carries the dry-run allowed action
[x] dashboard replay returns the same operator-snapshot
[x] explain output includes returned-replica state and action decision
```
Only after D5 should a later phase consider a real mutating executor for
catch-up/rebuild/failback.
Implementation may be either scenario-level assertions or a small wrapper gate
that replays the collected bundle after the iSCSI scenario.
Implementation note: Phase 47 is QA-validated for the dry-run admission slice.
It admits only a dry-run, non-mutating returned-replica reintegration action.
The next executor slice must separately gate any authority/storage mutation.
## D4: Close / Executor Readiness Decision
Goal: decide whether the next phase is allowed to design a real mutating
executor.
Acceptance:
```text
[x] QA sign-off states same-run live evidence status
[x] finished plan records the no-mutation boundary
[x] roadmap separates "executor admission" from "executor execution"
[x] next phase is explicitly scoped if mutation is proposed
```
Only after D4 should a later phase consider a bounded executor for
catch-up/rebuild/failback. That later phase must define owner, admission/RBAC,
preconditions, terminal evidence, rollback behavior, and multi-volume isolation
before enabling any mutation.
@@ -0,0 +1,74 @@
# Phase 48 Finished Plan: Returned-Replica Live Evidence Close
Status: complete; QA PASS.
Branch: `phase48-returned-replica-live-evidence`
## Goal
Close the live-evidence gap left by Phase 47. The returned-replica dry-run
action must be proven from the same live iSCSI scenario that exercises the
returned replica, not only from a synthetic bundle.
## What Changed
`testops/scenarios/iscsi-returned-replica-chain.yaml` now:
- builds `sw-block` along with `blockmaster` and `blockvolume`,
- derives a `product-observation/cluster-evidence.json` from live r1/r2 status
and durable-status artifacts after r1 returns,
- sets `required_frontier_lsn` from r2's live durable frontier,
- asserts r1's durable frontier covers that required frontier,
- runs `sw-block ops report --from-bundle` against the same run directory,
- runs `sw-block ops explain volume --from-bundle` against the same evidence,
- runs `sw-block ops dashboard --from-bundle` and captures
`/operator-snapshot.json`,
- asserts the dry-run returned-replica reintegration action appears on all
replayed surfaces.
## Evidence
| Gate | Evidence | Result |
|---|---|---|
| Local YAML validation | `swblock validate testops/scenarios/iscsi-returned-replica-chain.yaml` | PASS |
| Local product-surface test | `go test -count=1 ./cmd/sw-block -run TestOpsReturnedReplicaFromBundleSurfacesAcrossReportExplainDashboard` | PASS |
| Local ops tests | `go test -count=1 ./core/ops` | PASS |
| Live same-run report replay | `20260620-111650-7d43` | PASS, 64/64 |
| Live report/explain/dashboard replay | `20260620-111821-99ce` | PASS, 68/68 |
## Product Contract
The live run proves:
```text
r2 remains primary and frontend-ready
r1 returns as non-primary and frontend-fenced
r1 is not ACK/frontend eligible
r1 durable frontier is known
required frontier is known from r2 durable evidence
r1 durable frontier covers required frontier
authority.reintegrate_returned_replica is decision=allowed only as dry_run
```
The phase does not execute:
```text
automatic failback
rebuild traffic
ACK eligibility mutation
frontend publication mutation
storage repair
backup/restore
```
## Next Possible Phase
A future mutating returned-replica executor is now eligible for design, but not
implementation-by-default. It must define:
- owner executor and admission/RBAC boundary,
- exact preconditions and terminal evidence,
- failure rollback/hold behavior,
- multi-volume isolation,
- no false Ready/Recovered claims during mutation,
- QA gates that prove both hold and release paths.
@@ -562,7 +562,11 @@ product risk. The recommended order is:
present
(`internal/docs/finished-plans/phase47_finishedplan_returned_replica_executor_admission.md`).
It is the bridge toward a future executor, not automatic failback.
11. **Backup/snapshot/restore and NVMe ANA parity.**
11. **Phase 48: returned-replica live evidence close.** Closed.
The live iSCSI returned-replica gate emits same-run managed-volume
evidence for required frontier coverage and replay it through report/status
surfaces before any mutating returned-replica executor is proposed.
12. **Backup/snapshot/restore and NVMe ANA parity.**
Important, but they should reuse the status/action model rather than create
another isolated control plane.
@@ -630,6 +634,9 @@ Approximate engineering effort if scope remains tight:
`authority.reintegrate_returned_replica` dry-run/non-mutating while proving
exact fencing/frontier evidence and schema/RBAC conformance, including a live
Kubernetes status-subresource server-side dry-run gate.
- Phase 48 Returned-Replica Live Evidence Close is closed. It connects the
live iSCSI returned-replica run to the same managed-volume evidence/action
surfaces used by Phase 47, without enabling rebuild/failback mutation.
- Phase 41-44 are the Operation Layer v0.5 release train: lifecycle-owner
foundation, real API/admission proof, first bounded finalizer mutation, and
delete lifecycle close gate.
@@ -0,0 +1,96 @@
# Phase 48 Returned-Replica Live Evidence QA Sign-off
Status: PASS.
Validated branch: `phase48-returned-replica-live-evidence`.
## Gate
Phase 48 closes the Phase 47 carry-forward: the live iSCSI returned-replica
scenario now emits same-run managed-volume evidence and replays it through the
product surfaces. The phase does not add rebuild, failback, frontend
publication, ACK eligibility, or storage mutation.
## Runs
| Gate | Run | Result |
|---|---:|---|
| D1/D2 live evidence + report replay | `20260620-111650-7d43` | PASS, 64/64 |
| D1-D3 live evidence + report/explain/dashboard replay | `20260620-111821-99ce` | PASS, 68/68 |
## Evidence
The final run extends `iscsi-returned-replica-chain.yaml` after the live
failover/return path:
```text
r2 remains AuthorityRole=primary
r2 remains FrontendPrimaryReady=true
r1 returns as authority_non_primary=true
r1 FrontendPrimaryReady=false
r1 Healthy=false
r1 durable recovered and stays supporting/fenced
required_frontier_lsn is derived from r2 durable status
r1_durable_lsn >= required_frontier_lsn
```
The generated same-run bundle contains:
```text
product-observation/cluster-evidence.json
returned-replica-live-evidence-summary.txt
report/summary.txt
report/operator-snapshot.json
explain.txt
dashboard-operator-snapshot.json
```
Required assertions passed:
```text
frontier_covered=true
managed_volume_returned_replica=v1 replica=r1 state=fenced reason=returned_replica_frontend_fenced
managed_volume_action=authority.reintegrate_returned_replica mode=dry_run side_effect=authority_mutating executor=authority_recovery_executor decision=allowed
```
The explain surface also carries:
```text
managed_volume_action authority.reintegrate_returned_replica mode=dry_run
```
The dashboard operator snapshot carries:
```text
"type": "authority.reintegrate_returned_replica"
```
## Boundary
The action remains:
```text
mode=dry_run
mutation_allowed=false
owner_executor=authority_recovery_executor
```
No automatic returned-replica failback, rebuild traffic, ACK eligibility change,
or frontend publication is executed.
## Cleanup
The final run ended clean:
```text
active iSCSI sessions: 0
matched iSCSI node records: 0
blockmaster/blockvolume processes: 0
```
## Verdict
Phase 48 PASS. The live returned-replica storage path now produces the same
evidence/action decision that Phase 47 previously proved through synthetic
product-surface replay. A future mutating executor can use this as its evidence
starting point, but must still be separately scoped and gated.
@@ -49,7 +49,7 @@ phases:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockvolume ./cmd/blockvolume"
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockvolume ./cmd/blockvolume && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ./cmd/sw-block"
- action: exec
node: m02
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/git.sha && git status --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/git.status && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockvolume.version.txt"
@@ -243,6 +243,139 @@ phases:
- action: assert_greater
actual: "{{ r2_durable_operational_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 2m
cmd: |
ROOT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover
mkdir -p "$ROOT/product-observation" "$ROOT/report"
python3 - "$ROOT" <<'PY'
import datetime, json, pathlib, sys
root = pathlib.Path(sys.argv[1])
r1 = json.loads((root / 'status-r1-returned.json').read_text())
r2 = json.loads((root / 'status-r2-after-r1-return.json').read_text())
dr1 = json.loads((root / 'status-durable-r1-returned.json').read_text())['Volumes'][0]
dr2 = json.loads((root / 'status-durable-r2-primary-after-r1-return.json').read_text())['Volumes'][0]
required = int(dr2.get('DurableLSN') or 0)
r1_durable = int(dr1.get('DurableLSN') or 0)
cluster = {
'schema_version': '1.0',
'captured_at': datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z'),
'product_revision': 'returned-replica-live-gate',
'status': 'recovering',
'volumes': [{
'volume_id': 'v1',
'namespace': 'testops',
'pvc_name': 'iscsi-returned-replica-chain',
'replication_factor': 2,
'ack_profile': 'sync-quorum',
'status': 'recovering',
'reason': 'returned_replica_frontend_fenced',
'primary_replica': 'r2',
'primary_node': 'm02',
'publish_target': '127.0.0.1:3281',
'epoch': int(r2.get('Epoch') or 0),
'endpoint_version': int(r2.get('EndpointVersion') or 0),
'required_frontier_known': required > 0,
'required_frontier_lsn': required,
'replicas': [{
'replica_id': 'r1',
'server_id': 's1',
'kubernetes_node': 'm02',
'observed': True,
'role': 'returned',
'replication_role': str(r1.get('ReplicationRole') or 'replica_ready'),
'durable_latched': bool(dr1.get('Latched')),
'durable_frontier_known': bool(dr1.get('FrontierKnown')),
'durable_frontier_lsn': r1_durable,
'healthy': bool(r1.get('Healthy')),
'frontend_primary_ready': bool(r1.get('FrontendPrimaryReady')),
'frontend_protocol': 'iscsi',
'frontend_addr': '127.0.0.1:3280',
'status_addr': '127.0.0.1:19603',
'stale_primary_fenced': True,
'support_bundle_path': 'status-r1-returned.json'
}, {
'replica_id': 'r2',
'server_id': 's2',
'kubernetes_node': 'm02',
'observed': True,
'role': 'primary',
'replication_role': str(r2.get('ReplicationRole') or 'none'),
'durable_latched': bool(dr2.get('Latched')),
'durable_frontier_known': bool(dr2.get('FrontierKnown')),
'durable_frontier_lsn': required,
'healthy': bool(r2.get('Healthy')),
'frontend_primary_ready': bool(r2.get('FrontendPrimaryReady')),
'frontend_protocol': 'iscsi',
'frontend_addr': '127.0.0.1:3281',
'status_addr': '127.0.0.1:19613'
}]
}],
'non_claims': ['no automatic returned-replica failback or rebuild mutation executed']
}
(root / 'product-observation' / 'cluster-evidence.json').write_text(json.dumps(cluster, indent=2) + '\n')
(root / 'returned-replica-live-evidence-summary.txt').write_text('\n'.join([
'returned_replica_live_evidence_status=ok',
f'required_frontier_lsn={required}',
f'r1_durable_lsn={r1_durable}',
f'r2_durable_lsn={required}',
f'frontier_covered={str(r1_durable >= required).lower()}',
]) + '\n')
PY
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops report --from-bundle "$ROOT" --out "$ROOT/report" > "$ROOT/report.stdout.txt" 2> "$ROOT/report.stderr.txt"
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops explain volume --from-bundle "$ROOT" v1 > "$ROOT/explain.txt" 2> "$ROOT/explain.stderr.txt"
port=19487
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops dashboard --from-bundle "$ROOT" --listen "127.0.0.1:${port}" --serve-duration 8s > "$ROOT/dashboard.stdout.txt" 2> "$ROOT/dashboard.stderr.txt" &
dashboard_pid=$!
for _ in $(seq 1 80); do
if curl -fsS "http://127.0.0.1:${port}/operator-snapshot.json" > "$ROOT/dashboard-operator-snapshot.json" 2> "$ROOT/dashboard-curl.stderr.txt"; then
break
fi
sleep 0.1
done
test -s "$ROOT/dashboard-operator-snapshot.json"
wait "$dashboard_pid" || true
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/returned-replica-live-evidence-summary.txt"
pattern: "^frontier_covered=true$"
save_as: returned_live_frontier_covered_count
- action: assert_greater
actual: "{{ returned_live_frontier_covered_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/report/summary.txt"
pattern: "managed_volume_returned_replica=v1 replica=r1 state=fenced reason=returned_replica_frontend_fenced"
save_as: returned_live_projection_count
- action: assert_greater
actual: "{{ returned_live_projection_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/report/summary.txt"
pattern: "managed_volume_action=authority.reintegrate_returned_replica mode=dry_run side_effect=authority_mutating executor=authority_recovery_executor decision=allowed"
save_as: returned_live_action_allowed_count
- action: assert_greater
actual: "{{ returned_live_action_allowed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/explain.txt"
pattern: "managed_volume_action authority.reintegrate_returned_replica mode=dry_run"
save_as: returned_live_explain_action_count
- action: assert_greater
actual: "{{ returned_live_explain_action_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/dashboard-operator-snapshot.json"
pattern: "\"type\": \"authority.reintegrate_returned_replica\""
save_as: returned_live_dashboard_action_count
- action: assert_greater
actual: "{{ returned_live_dashboard_action_count }}"
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"