seaweed-block: keep only the runner scenarios this tree uses (#13418)

Removes lab-only runner scenarios and suites from seaweed-block/, keeps the scenarios this tree's CI uses with environment placeholders, and guards every artifact-root use before any cleanup. Includes the maintainer's follow-ups from #13419 and #13423.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ping QiuandClaude Opus 5.5 authored and GitHub committed 2026-12-05 03:20:55 -08:00
1 parent f92efd4437
commit e17e30b4aa
183 files changed
+1253 -23940

No files matched your search

@@ -439,6 +439,9 @@ Use this checklist when changing the feature.
| `same-node-alpha-attach-chain.yaml` | loopback same-node accepted path |
| `same-node-alpha-attach-negative-chain.yaml` | cross-node loopback blocked as unsupported |
The last three run only against the project's lab and are kept in a private test repository; the first three
are in `testops/scenarios/`.
The runner must not pass a Stage 2 gate by grepping only lines it wrote itself.
It needs independent evidence: pod UID, host sessions, multipath map, RTPG
state, stale-I/O probe, and cleanup verifier.
@@ -85,7 +85,6 @@ Prefer gates that compare at least two surfaces:
| Area | Path |
|---|---|
| scenario definitions | `testops/scenarios/` |
| suites | `testops/suites/` |
| runner contracts | `internal/docs/ref/testops-runner-binary-contract.md` |
| control/data contract | `internal/docs/ref/testops-control-data-contract.md` |
| QA sign-offs | `internal/docs/qa-assignments/` |
+3
View File
@@ -27,6 +27,9 @@ injection.
| Cleanup | `cleanup-residue-chain.yaml` and cleanup verifier | zero-residue contract |
| Protocol | `iscsi-*`, `nvme-*` | frontend-specific gates |
Scenarios that run against the project's lab are kept in a private test repository. This repository keeps
the ones its own tests and scripts use; [testops/README.md](../../testops/README.md) lists them and the settings each needs.
## Release Evidence
Release claims should point to:
@@ -1164,11 +1164,11 @@ Approximate engineering effort if scope remains tight:
baseline and corrects stale audit wording: ANA log/Identify/provider and CSI
single-path NVMe stage/unstage are present. Phase 100 closed the Kubernetes
CSI NVMe multipath attach follow-up for the supported lab path.
- Operation milestone release readiness is active and blocked only on matching
published images. Run `scripts/run-operation-milestone-release-readiness.ps1`
plus the published-image Day-1 smoke before marking the operation milestone
released. Development has moved ahead in parallel; this does not mark the
operation milestone released.
- Operation milestone release readiness is blocked only on matching published
images. Its readiness script ran against the project lab and is kept outside
this repository with the lab scenarios; run it and the published-image Day-1
smoke there before marking the operation milestone released. Development has
moved ahead in parallel; this does not mark the operation milestone released.
- Phase 100 Kubernetes CSI NVMe Multipath Attach is closed. It implements and
gates the path from dynamic PVC `protocol=nvme` and `replicationFactor=2` to
master NVMe frontend grouping, CSI `nvmeAddrs` publish context, NodeStage
@@ -88,25 +88,27 @@ Default output:
Validate a product-owned scenario:
```bash
swblock validate testops/scenarios/csi-rf1-durable-restart-chain.yaml
swblock validate testops/scenarios/nvme-p5-protocol-component-gate.yaml
```
Run a product-owned scenario against m02:
Run a product-owned scenario against a test node (every setting is required;
testops/README.md lists them):
```bash
swblock run testops/scenarios/csi-rf1-durable-restart-chain.yaml \
--env product_root=/tmp/seaweed_block \
--env ssh_key=C:/work/dev_server/testdev_key
swblock run testops/scenarios/nvme-p5-protocol-component-gate.yaml \
--env product_root=/path/to/seaweed-block \
--env node_host=<node address> \
--env node_user=<ssh user> \
--env ssh_key=/path/to/key \
--env artifact_root=/path/to/shared/artifacts
```
Run the full protocol release gate:
Run the full protocol release gate (the four protocol chains in order):
```bash
swblock suite \
--results-dir <evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native \
--env product_root=/tmp/seaweed-block-nvme-p4l \
--env ssh_key=C:/work/dev_server/testdev_key \
C:/work/seaweed_block/testops/suites/protocol-release-gate.yaml
SW_BLOCK_SSH_KEY=/path/to/key SW_BLOCK_NODE_HOST=<node address> \
SW_BLOCK_NODE_USER=<ssh user> SW_BLOCK_NODE_ARTIFACT_ROOT=/path/to/shared/artifacts \
bash scripts/testops-run-protocol-release-gate.sh
```
Validate a finished protocol release gate bundle:
@@ -0,0 +1,73 @@
package scripts_test
import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
)
func TestReleaseGateRefusesArtifactRootOutsideAllowlist(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("bash script")
}
bash, err := exec.LookPath("bash")
if err != nil {
t.Skip("bash not available")
}
script := filepath.Join(repoRoot(t), "scripts", "testops-run-protocol-release-gate.sh")
run := func(root string) (string, string, error) {
artifacts := filepath.Join(t.TempDir(), "gate")
cmd := exec.Command(bash, script, t.TempDir())
cmd.Env = append(os.Environ(),
"SW_BLOCK_SSH_KEY=/k",
"SW_BLOCK_NODE_HOST=192.0.2.10",
"SW_BLOCK_NODE_USER=tester",
"SW_BLOCK_NODE_ARTIFACT_ROOT="+root,
"SW_BLOCK_ARTIFACT_DIR="+artifacts,
"SWBLOCK_CMD=/nonexistent-swblock",
)
out, err := cmd.CombinedOutput()
return string(out), artifacts, err
}
const refusal = "must be an absolute path other than /"
marker := filepath.Join(t.TempDir(), "substituted")
for _, root := range []string{
"/srv/test artifacts",
"/srv/test\tartifacts",
"/",
"relative/dir",
"/srv/*",
"/srv/'$(touch " + marker + ")'",
"/srv/x\n",
} {
out, artifacts, err := run(root)
if err == nil {
t.Fatalf("artifact root %q accepted; output:\n%s", root, out)
}
if !strings.Contains(out, refusal) {
t.Fatalf("artifact root %q: unexpected output:\n%s", root, out)
}
if _, err := os.Stat(artifacts); !os.IsNotExist(err) {
t.Fatalf("artifact root %q: %s created before the check (stat err %v)", root, artifacts, err)
}
}
if _, err := os.Stat(marker); !os.IsNotExist(err) {
t.Fatalf("a command substitution in the artifact root ran (stat err %v)", err)
}
if out, _, _ := run("/srv/evidence-2/block_v1.1"); strings.Contains(out, refusal) {
t.Fatalf("plain absolute artifact root refused:\n%s", out)
}
ps, err := os.ReadFile(filepath.Join(repoRoot(t), "scripts", "testops-run-protocol-release-gate.ps1"))
if err != nil {
t.Fatal(err)
}
check := strings.Index(string(ps), `$NodeArtifactRoot -cnotmatch '^/[A-Za-z0-9._/-]+\z'`)
mkdir := strings.Index(string(ps), "New-Item -ItemType Directory")
if check < 0 || mkdir < 0 || check > mkdir {
t.Fatalf(".ps1 must refuse a NodeArtifactRoot outside the allowlist before it creates directories (check at %d, New-Item at %d)", check, mkdir)
}
}
@@ -1,155 +0,0 @@
param(
[string]$ProductRoot = (Get-Location).Path,
[string]$ArtifactDir = "",
[string]$ReleaseImage = $env:SW_BLOCK_RELEASE_IMAGE,
[string]$ReleaseCSIImage = $env:SW_BLOCK_CSI_RELEASE_IMAGE
)
$ErrorActionPreference = "Stop"
if ([string]::IsNullOrWhiteSpace($ArtifactDir)) {
$stamp = (Get-Date).ToUniversalTime().ToString("yyyyMMddTHHmmssZ")
$ArtifactDir = Join-Path $ProductRoot "results\operation-milestone-release-readiness-$stamp"
}
New-Item -ItemType Directory -Force -Path $ArtifactDir | Out-Null
$summary = Join-Path $ArtifactDir "operation-milestone-release-readiness-summary.txt"
$result = Join-Path $ArtifactDir "result.json"
Set-Content -Path $summary -Value "operation_milestone_release_readiness_status=running"
function Add-Summary {
param([string]$Line)
Add-Content -Path $summary -Value $Line
}
function Parse-ImageRef {
param([string]$Image)
if ($Image -match '^(?<repo>.+)@(?<digest>sha256:[0-9a-fA-F]+)$') {
return [ordered]@{
repository = $Matches.repo
tag = ""
digest = $Matches.digest
}
}
$lastColon = $Image.LastIndexOf(':')
$lastSlash = $Image.LastIndexOf('/')
if ($lastColon -le $lastSlash) {
throw "image must include an explicit tag or digest: $Image"
}
return [ordered]@{
repository = $Image.Substring(0, $lastColon)
tag = $Image.Substring($lastColon + 1)
digest = ""
}
}
function Invoke-Step {
param(
[string]$Name,
[string]$FilePath,
[string[]]$Arguments
)
$stdout = Join-Path $ArtifactDir "$Name.stdout.txt"
$stderr = Join-Path $ArtifactDir "$Name.stderr.txt"
$process = Start-Process -FilePath $FilePath -ArgumentList $Arguments -WorkingDirectory $ProductRoot -NoNewWindow -Wait -PassThru -RedirectStandardOutput $stdout -RedirectStandardError $stderr
if ($process.ExitCode -eq 0) {
Add-Summary "$Name=ok"
return $true
}
Add-Summary "$Name=failed"
return $false
}
if ([string]::IsNullOrWhiteSpace($ReleaseImage) -or [string]::IsNullOrWhiteSpace($ReleaseCSIImage)) {
Add-Summary "operation_milestone_release_readiness_status=blocked_missing_release_images"
Add-Summary "required_env=SW_BLOCK_RELEASE_IMAGE,SW_BLOCK_CSI_RELEASE_IMAGE"
Add-Summary "example_SW_BLOCK_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block:sha-<commit>"
Add-Summary "example_SW_BLOCK_CSI_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block-csi:sha-<same-commit>"
[ordered]@{
schema_version = "1.0"
scenario = "operation-milestone-release-readiness"
status = "blocked"
reason = "missing_release_images"
artifact_dir = $ArtifactDir
} | ConvertTo-Json -Depth 4 | Set-Content -Path $result
exit 2
}
$status = "ok"
$image = Parse-ImageRef $ReleaseImage
$csiImage = Parse-ImageRef $ReleaseCSIImage
Add-Summary "release_image=$ReleaseImage"
Add-Summary "release_csi_image=$ReleaseCSIImage"
if (-not (Invoke-Step -Name "docker_manifest_release_image" -FilePath "docker" -Arguments @("manifest", "inspect", $ReleaseImage))) {
$status = "failed"
}
if (-not (Invoke-Step -Name "docker_manifest_release_csi_image" -FilePath "docker" -Arguments @("manifest", "inspect", $ReleaseCSIImage))) {
$status = "failed"
}
if (-not (Invoke-Step -Name "go_test_release_scope" -FilePath "go" -Arguments @("test", "./core/ops", "./cmd/sw-block", "./cmd/blockcsi", "./cmd/blockmaster", "./cmd/blockvolume", "./scripts", "-count=1"))) {
$status = "failed"
}
if (-not (Invoke-Step -Name "helm_lint" -FilePath "helm" -Arguments @("lint", "charts/seaweed-block"))) {
$status = "failed"
}
$templateArgs = @(
"template", "sw-block", "charts/seaweed-block",
"--namespace", "kube-system",
"--include-crds",
"--set", "image.repository=$($image.repository)",
"--set", "csiImage.repository=$($csiImage.repository)",
"--set", "image.pullPolicy=Always",
"--set", "csiImage.pullPolicy=Always",
"--set", "operatorStatus.create=true",
"--set", "operatorStatus.dryRun=false",
"--set", "lifecycleOwner.create=true",
"--set", "lifecycleOwner.dryRun=false",
"--set", "lifecycleOwner.admission.create=true"
)
if ($image.digest) {
$templateArgs += @("--set", "image.digest=$($image.digest)")
} else {
$templateArgs += @("--set", "image.tag=$($image.tag)")
}
if ($csiImage.digest) {
$templateArgs += @("--set", "csiImage.digest=$($csiImage.digest)")
} else {
$templateArgs += @("--set", "csiImage.tag=$($csiImage.tag)")
}
if (-not (Invoke-Step -Name "helm_template_operation_components" -FilePath "helm" -Arguments $templateArgs)) {
$status = "failed"
}
if (-not (Invoke-Step -Name "validate_day1_published_image_scenario" -FilePath "C:\work\swblock.exe" -Arguments @("validate", "testops\scenarios\helm-first-volume-via-sw-block-cli-chain.yaml"))) {
$status = "failed"
}
if (-not (Invoke-Step -Name "validate_phase98_operation_close_scenario" -FilePath "C:\work\swblock.exe" -Arguments @("validate", "testops\scenarios\failback-frontend-workload-close-chain.yaml"))) {
$status = "failed"
}
if (-not (Invoke-Step -Name "git_diff_check" -FilePath "git" -Arguments @("diff", "--check"))) {
$status = "failed"
}
Add-Summary "published_image_day1_lab_required=true"
Add-Summary "published_image_operator_lifecycle_lab_required=true"
Add-Summary "source_gated_phase98_regression_required=true"
Add-Summary "nvme_not_in_release_claim=true"
Add-Summary "operation_milestone_release_readiness_status=$status"
[ordered]@{
schema_version = "1.0"
scenario = "operation-milestone-release-readiness"
status = $status
release_image = $ReleaseImage
release_csi_image = $ReleaseCSIImage
artifact_dir = $ArtifactDir
lab_qa_required = $true
} | ConvertTo-Json -Depth 4 | Set-Content -Path $result
if ($status -ne "ok") {
exit 1
}
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Parse commands AND env parameters, then execute every complete guarded action
# with cleanup stubs. Requires Go and a POSIX shell; never contacts a cluster.
# Usage: bash scripts/testops-artifact-root-guard-test.sh [scenario dir]
set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd)
dir=$(cd "${1:-$here/../testops/scenarios}" && pwd)
go_cmd=${GO:-go}
if [ "$("$go_cmd" env GOOS)" = windows ]; then
echo 'artifact-root controls require a POSIX Go runtime (for example, in WSL)' >&2
exit 2
fi
cd "$here/.."
TESTOPS_SCENARIO_DIR="$dir" "$go_cmd" test ./scripts -run '^TestTestopsArtifactRootGuards$' -count=1
@@ -1,14 +1,22 @@
param(
[string]$ProductRepoRoot = (Get-Location).Path,
[string]$RunnerRoot = "C:\work\seaweedfs\learn\sw-test-runner-standalone",
[string]$RunnerRoot = "",
[string]$RemoteProductRoot = "/tmp/seaweed-block-nvme-p4l",
[string]$SshKey = "C:\work\dev_server\testdev_key",
[Parameter(Mandatory = $true)][string]$SshKey,
[Parameter(Mandatory = $true)][string]$NodeHost,
[Parameter(Mandatory = $true)][string]$NodeUser,
[Parameter(Mandatory = $true)][string]$NodeArtifactRoot,
[string]$ArtifactRoot = "",
[string]$RunId = ""
)
$ErrorActionPreference = "Stop"
# The scenarios put artifact_root into shell commands as raw text.
if ($NodeArtifactRoot -cnotmatch '^/[A-Za-z0-9._/-]+\z') {
throw "NodeArtifactRoot must be an absolute path other than / using only A-Za-z0-9._/-: $NodeArtifactRoot"
}
if ([string]::IsNullOrWhiteSpace($RunId)) {
$RunId = "protocol-release-gate-" + (Get-Date).ToUniversalTime().ToString("yyyyMMddTHHmmssZ")
}
@@ -23,7 +31,7 @@ $ProductCommit = "unknown"
$RunnerCommit = "unknown"
try { $ProductCommit = (& git -C $ProductRepoRoot rev-parse HEAD).Trim() } catch {}
try {
if (Test-Path $RunnerRoot) {
if ($RunnerRoot -and (Test-Path $RunnerRoot)) {
$RunnerCommit = (& git -C $RunnerRoot rev-parse HEAD).Trim()
}
} catch {}
@@ -200,13 +208,16 @@ function Invoke-Chain {
"run",
"--env", "product_root=$RemoteProductRoot",
"--env", "ssh_key=$SshKey",
"--env", "node_host=$NodeHost",
"--env", "node_user=$NodeUser",
"--env", "artifact_root=$NodeArtifactRoot",
"--results-dir", $stepResults,
$scenarioPath
)
Set-Content -Path (Join-Path $stepDir "swblock.command.txt") -Value ("swblock " + ($swblockArgs -join " "))
$rc = 0
try {
if (Test-Path $RunnerRoot) {
if ($RunnerRoot -and (Test-Path $RunnerRoot)) {
$rc = Invoke-NativeRedirect -FilePath "go" -Arguments (@("run", "./cmd/swblock") + $swblockArgs) -WorkingDirectory $RunnerRoot -StdoutPath $stdout -StderrPath $stderr
} else {
$rc = Invoke-NativeRedirect -FilePath "swblock" -Arguments $swblockArgs -WorkingDirectory $ProductRepoRoot -StdoutPath $stdout -StderrPath $stderr
@@ -6,7 +6,16 @@ RUN_ID="${SW_BLOCK_RUN_ID:-protocol-release-gate-$(date -u +%Y%m%dT%H%M%SZ)}"
ARTIFACT_ROOT="${SW_BLOCK_ARTIFACT_DIR:-$ROOT/results/$RUN_ID}"
RESULTS_ROOT="${SW_BLOCK_RESULTS_DIR:-$ARTIFACT_ROOT/runs}"
REMOTE_PRODUCT_ROOT="${SW_BLOCK_REMOTE_PRODUCT_ROOT:-/tmp/seaweed-block-nvme-p4l}"
SSH_KEY="${SW_BLOCK_SSH_KEY:-C:\\work\\dev_server\\testdev_key}"
# The test node and its access: required, with no default host, user, key or share.
SSH_KEY="${SW_BLOCK_SSH_KEY:?set SW_BLOCK_SSH_KEY to the private key for the test node}"
NODE_HOST="${SW_BLOCK_NODE_HOST:?set SW_BLOCK_NODE_HOST to the test node address}"
NODE_USER="${SW_BLOCK_NODE_USER:?set SW_BLOCK_NODE_USER to the ssh user on the test node}"
NODE_ARTIFACT_ROOT="${SW_BLOCK_NODE_ARTIFACT_ROOT:?set SW_BLOCK_NODE_ARTIFACT_ROOT to the shared artifact directory on the test node}"
# The scenarios put artifact_root into shell commands as raw text.
if [[ ! "$NODE_ARTIFACT_ROOT" =~ ^/[A-Za-z0-9._/-]+$ ]]; then
echo "SW_BLOCK_NODE_ARTIFACT_ROOT must be an absolute path other than / using only A-Za-z0-9._/-: $NODE_ARTIFACT_ROOT" >&2
exit 2
fi
SWBLOCK_CMD="${SWBLOCK_CMD:-swblock}"
SWBLOCK_RUNNER_ROOT="${SWBLOCK_RUNNER_ROOT:-}"
SUITE_STARTED_EPOCH="$(date -u +%s)"
@@ -167,6 +176,9 @@ run_chain() {
run_swblock run \
--env "product_root=$REMOTE_PRODUCT_ROOT" \
--env "ssh_key=$SSH_KEY" \
--env "node_host=$NODE_HOST" \
--env "node_user=$NODE_USER" \
--env "artifact_root=$NODE_ARTIFACT_ROOT" \
--results-dir "$step_results" \
"$ROOT/$scenario" \
>"$step_dir/swblock.stdout.log" \
@@ -0,0 +1,190 @@
package scripts_test
import (
"context"
"errors"
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"
"sort"
"strings"
"testing"
"time"
"gopkg.in/yaml.v3"
)
type artifactRootScenario struct {
Env map[string]string
Phases []struct {
Name string
Always bool
Actions []map[string]string
}
}
// Exercise whole action copies, including the runner's quoted environment
// prefix. No real cleanup executable is reachable in the test's stub PATH.
func TestTestopsArtifactRootGuards(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("POSIX shell controls")
}
dir := os.Getenv("TESTOPS_SCENARIO_DIR")
if dir == "" {
dir = filepath.Join(repoRoot(t), "testops", "scenarios")
}
files, err := filepath.Glob(filepath.Join(dir, "*.yaml"))
if err != nil {
t.Fatal(err)
}
guarded, uninstalls := 0, 0
for _, path := range files {
raw, err := os.ReadFile(path)
if err != nil {
t.Fatal(err)
}
var scenario artifactRootScenario
if err := yaml.Unmarshal(raw, &scenario); err != nil {
t.Fatalf("%s: %v", path, err)
}
if _, exists := scenario.Env["artifact_root"]; !exists {
continue
}
for _, phase := range scenario.Phases {
for index, action := range phase.Actions {
cmd := action["cmd"]
if action["action"] != "exec" {
continue
}
usesRoot := strings.Contains(cmd, "{{ artifact_root }}")
for key, value := range action {
if strings.HasPrefix(key, "env.") && strings.Contains(value, "{{ artifact_root }}") {
usesRoot = true
}
}
needsGuard := usesRoot && (phase.Always || strings.Contains(cmd, "rm -") || strings.Contains(cmd, "case "))
if !needsGuard {
continue
}
guarded++
if phase.Always && strings.Contains(cmd, "uninstall-k8s-alpha.sh") {
uninstalls++
}
name := fmt.Sprintf("%s/%s/%d", filepath.Base(path), phase.Name, index)
t.Run(name, func(t *testing.T) { checkArtifactRootAction(t, action) })
}
}
}
if guarded < 24 || uninstalls != 6 {
t.Fatalf("coverage: guarded actions=%d, always uninstalls=%d; want >=24 and 6", guarded, uninstalls)
}
}
func checkArtifactRootAction(t *testing.T, action map[string]string) {
t.Helper()
work := t.TempDir()
bin := filepath.Join(work, "bin")
if err := os.Mkdir(bin, 0o755); err != nil {
t.Fatal(err)
}
if _, overridesPath := action["env.PATH"]; overridesPath {
t.Fatal("cleanup controls must retain their stub-only PATH")
}
if err := os.Symlink("/bin/sh", filepath.Join(bin, "sh")); err != nil {
t.Fatal(err)
}
if err := os.Symlink("/bin/cat", filepath.Join(bin, "cat")); err != nil {
t.Fatal(err)
}
// Make the uncordon branch real in the supported-root control.
nodeFile := filepath.Join(work, "g15d-k8s", "guard-test-node-loss-survival", "demo", "cordoned-primary-node.txt")
if err := os.MkdirAll(filepath.Dir(nodeFile), 0o755); err != nil {
t.Fatal(err)
}
if err := os.WriteFile(nodeFile, []byte("node-test\n"), 0o644); err != nil {
t.Fatal(err)
}
trace := filepath.Join(work, "cleanup-started")
for _, name := range []string{"rm", "mkdir", "kubectl", "helm", "sudo", "nvme", "iscsiadm", "bash", "touch", "go"} {
stub := "#!/bin/sh\nprintf '%s %s\\n' '" + name + "' \"$*\" >> \"$GUARD_TRACE\"\nexit 0\n"
if err := os.WriteFile(filepath.Join(bin, name), []byte(stub), 0o755); err != nil {
t.Fatal(err)
}
}
bad := []string{"", "/", "relative/dir", "/srv/with space", "/srv/*", "/srv/x\n", "/srv/'$(touch injected)'", "/srv/x'; touch injected; '"}
for index, root := range bad {
t.Run(fmt.Sprintf("invalid-%d", index), func(t *testing.T) {
_ = os.Remove(trace)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, "bash", "-c", renderArtifactRootAction(action, root, work))
cmd.Dir = work
cmd.Env = append(os.Environ(), "PATH="+bin, "GUARD_TRACE="+trace)
out, err := cmd.CombinedOutput()
if ctx.Err() != nil {
t.Fatalf("invalid-root control expired: %v; %s", ctx.Err(), out)
}
var exit *exec.ExitError
if !errors.As(err, &exit) {
t.Fatalf("invalid-root command did not complete with a refusal: %v; %s", err, out)
}
if exit.ExitCode() != 2 {
t.Errorf("invalid root %q: exit=%d want2; %s", root, exit.ExitCode(), out)
}
if raw, readErr := os.ReadFile(trace); readErr == nil || !os.IsNotExist(readErr) {
t.Fatalf("invalid root %q started cleanup: %q (read=%v)", root, raw, readErr)
}
})
}
// A real supported path must reach the original action, not a blanket
// refusal. Every complete body must finish and leave a command witness.
_ = os.Remove(trace)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
cmd := exec.CommandContext(ctx, "bash", "-c", renderArtifactRootAction(action, work, work))
cmd.Dir = work
cmd.Env = append(os.Environ(), "PATH="+bin, "GUARD_TRACE="+trace)
out, err := cmd.CombinedOutput()
if ctx.Err() != nil || err != nil {
t.Fatalf("supported root command did not complete: %v (context=%v); %s", err, ctx.Err(), out)
}
witness, err := os.ReadFile(trace)
if err != nil || len(witness) == 0 {
t.Fatalf("supported root did not reach its action: %v; %s", err, out)
}
for _, target := range []string{"scripts/run-phase129-nvme-k8s-mounted-restage-gate.sh", "scripts/uninstall-k8s-alpha.sh"} {
if strings.Contains(action["cmd"], target) && !strings.Contains(string(witness), "bash "+target+" ") {
t.Fatalf("missing script witness %s: %s", target, witness)
}
}
if strings.Contains(action["cmd"], "kubectl uncordon") {
for _, target := range []string{"kubectl uncordon node-test", "kubectl get node node-test"} {
if !strings.Contains(string(witness), target) {
t.Fatalf("missing node-file witness %s: %s", target, witness)
}
}
}
}
func renderArtifactRootAction(action map[string]string, root, product string) string {
render := strings.NewReplacer("{{ artifact_root }}", root, "{{ product_root }}", product, "{{ run_id }}", "guard-test")
var keys []string
for key := range action {
if strings.HasPrefix(key, "env.") {
keys = append(keys, key)
}
}
sort.Strings(keys)
var prefix strings.Builder
for _, key := range keys {
fmt.Fprintf(&prefix, "%s=%s ", strings.TrimPrefix(key, "env."), artifactShellQuote(render.Replace(action[key])))
}
// The runner applies env.* to the complete command through sh -c.
return prefix.String() + "sh -c " + artifactShellQuote(render.Replace(action["cmd"]))
}
func artifactShellQuote(value string) string {
return "'" + strings.ReplaceAll(value, "'", "'\\''") + "'"
}
+4 -1
View File
@@ -8,7 +8,10 @@ DELETE_ALL_BLOCKVOLUMES="${SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES:-0}"
CHAP_SECRET_NAME="${SW_BLOCK_ISCSI_CHAP_SECRET_NAME:-sw-block-iscsi-chap}"
STORAGECLASS_NAME="${SW_BLOCK_STORAGECLASS_NAME:-sw-block-dynamic}"
mkdir -p "$ARTIFACT_DIR"
if ! mkdir -p "$ARTIFACT_DIR" 2>/dev/null; then
printf '[alpha-uninstall] cannot create %s; refusing cleanup\n' "$ARTIFACT_DIR" >&2
exit 2
fi
if [[ -z "${KUBECONFIG:-}" && -f /etc/rancher/k3s/k3s.yaml ]]; then
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
@@ -2,7 +2,9 @@ package scripts_test
import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
)
@@ -28,6 +30,52 @@ func TestUninstallK8sAlphaDeletesSeaweedISCSINodeRecords(t *testing.T) {
}
}
func TestUninstallK8sAlphaRefusesBeforeCleanupWhenArtifactDirCannotBeCreated(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("bash script")
}
bash, err := exec.LookPath("bash")
if err != nil {
t.Skip("bash not available")
}
work := t.TempDir()
bin := filepath.Join(work, "bin")
if err := os.Mkdir(bin, 0o755); err != nil {
t.Fatal(err)
}
calls := filepath.Join(work, "calls.log")
for _, name := range []string{"kubectl", "iscsiadm", "helm", "sudo", "nvme"} {
stub := "#!/bin/sh\necho \"" + name + " $*\" >> \"" + calls + "\"\nexit 0\n"
if err := os.WriteFile(filepath.Join(bin, name), []byte(stub), 0o755); err != nil {
t.Fatal(err)
}
}
blocker := filepath.Join(work, "not-a-dir")
if err := os.WriteFile(blocker, nil, 0o644); err != nil {
t.Fatal(err)
}
cmd := exec.Command(bash, filepath.Join(repoRoot(t), "scripts", "uninstall-k8s-alpha.sh"), repoRoot(t))
cmd.Env = append(os.Environ(),
"PATH="+bin+string(os.PathListSeparator)+os.Getenv("PATH"),
"SW_BLOCK_ARTIFACT_DIR="+filepath.Join(blocker, "cleanup"),
"TMPDIR="+work,
)
if out, err := cmd.CombinedOutput(); err == nil {
t.Fatalf("uninstall continued without its artifact directory:\n%s", out)
}
if log, err := os.ReadFile(calls); !os.IsNotExist(err) {
t.Fatalf("uninstall started cleanup without its artifact directory: %q (read=%v)", log, err)
}
good := exec.Command(bash, filepath.Join(repoRoot(t), "scripts", "uninstall-k8s-alpha.sh"), repoRoot(t))
good.Env = append(os.Environ(), "PATH="+bin+string(os.PathListSeparator)+os.Getenv("PATH"), "SW_BLOCK_ARTIFACT_DIR="+filepath.Join(work, "artifacts"), "TMPDIR="+work)
if out, err := good.CombinedOutput(); err != nil {
t.Fatalf("valid artifact directory refused: %v\n%s", err, out)
}
if log, err := os.ReadFile(calls); err != nil || !strings.Contains(string(log), "kubectl delete") {
t.Fatalf("valid artifact directory did not reach cleanup: %q (%v)", log, err)
}
}
func TestFailureSnapshotScriptCapturesRequiredEvidenceLayers(t *testing.T) {
root := repoRoot(t)
raw, err := os.ReadFile(filepath.Join(root, "scripts", "collect-k8s-failure-snapshot.sh"))
+47 -271
View File
@@ -1,78 +1,65 @@
# V3 TestOps Scenarios
# TestOps scenarios
This directory holds product-owned scenario content for the standalone
`sw-test-runner` stack.
This directory holds runner scenarios for the `swblock` binary of `sw-test-runner`.
The product owns the test intent: which scripts represent a gate, what each
artifact proves, and what cleanup must hold. The runner owns orchestration:
target cleanup, command execution, run-bundle layout and artifact collection.
The intended boundary is:
The scenarios kept here are the ones this repository's tests or scripts use:
`cmd/blockcsi/g15d_manifest_test.go` checks the contents of some of them, and
scripts under `scripts/` run others.
- Product repo owns the test intent: which scripts or checks represent the
product gate, what artifacts prove each hop, and what cleanup must be true.
- Standalone runner owns orchestration: target cleanup, command execution,
build/import coordination, progress checks, run-bundle layout, and artifact
collection.
- QA can run the same YAML locally or from CI; developers can run it before
pushing to avoid stale-image / stale-process / scattered-artifact loops.
## Running a scenario
## Runner Binary
`swblock` is the `sw-test-runner` binary used for Seaweed Block / V3 tests.
- Source repo: `pingqiu/sw-test-runner`
- Source path: `cmd/swblock/main.go`
- Build command from the runner repo:
```bash
go build -o swblock ./cmd/swblock
```
- Windows QA convention: `C:\work\swblock.exe`
- Linux controller convention: put `swblock` on `PATH`, or set a shell alias to
the built binary.
`swblock` is not built from this product repo. If a developer only has
`seaweed_block` checked out, runner-native scenarios can still be authored and
statically reviewed here, but `swblock validate`, `swblock run`, and
`swblock suite` require the external runner binary.
Convenience build helpers are available when the runner source is accessible:
```powershell
.\internal\tools\build-swblock.ps1
```
`swblock` is built from the runner's source (`go build -o swblock ./cmd/swblock`),
not from this repository. Check a scenario before running it:
```bash
bash internal/tools/build-swblock.sh
swblock validate testops/scenarios/nvme-p5-protocol-component-gate.yaml
```
They build into `.tools/swblock(.exe)`, write `.tools/swblock.path`, and print
the final binary path.
Apart from `helm-multi-volume-rf3-app-spread-failover-chain.yaml`, which still targets
the project's lab, no scenario names a host, user, key or share. Each one reads them
from its `env` block, where they are empty, so set every one on the command line:
Related runner binaries share the same engine but link different product/action
sets:
- `swblock`: V3 / Seaweed Block product pack.
- `weedblock`: V2 product pack.
- `cmd/sw-test-runner`: kitchen-sink/dev binary.
Recommended local check before running scenarios:
| Setting | Meaning |
| --- | --- |
| `product_root` | this repository's checkout on the test node |
| `node_host` | address of the test node |
| `node_user` | ssh user on the test node |
| `ssh_key` | private key for `node_user`, on the controller |
| `artifact_root` | shared directory for run artifacts, as the test node sees it; an absolute path other than `/` using only `A-Za-z0-9._/-` |
| `import_nodes` | every other k3s node, for the image import (`nvme-tcp-status-surface-evidence-chain`, `nvme-tcp-cross-node-multivolume-lifecycle-soak-chain`); without it only the test node gets the images |
| `node_ssh_key` | key path on the test node for the image import (those two chains and `node-loss-survival-rf3-reattach-chain`) |
```bash
swblock list
swblock validate testops/scenarios/csi-rf1-durable-restart-chain.yaml
swblock run \
-env product_root=/path/to/seaweed-block \
-env node_host=192.0.2.10 \
-env node_user=tester \
-env ssh_key=/path/to/key \
-env artifact_root=/path/to/shared/artifacts \
testops/scenarios/nvme-p5-protocol-component-gate.yaml
```
## Which Gate To Run
Destructive and artifact-dependent always actions validate the root independently,
before cleanup starts. The value reaches the guard through the runner's quoted
`env.SW_BLOCK_ARTIFACT_ROOT` parameter, rather than being rendered into shell
syntax. This also protects a direct `swblock run` when an earlier phase fails.
Uninstall refuses cleanup if its artifact directory cannot be created.
Use the smallest gate that can prove the contract you changed.
Check every complete guard/action copy locally, with cleanup stubs and no cluster:
`bash scripts/testops-artifact-root-guard-test.sh` (requires Go on a POSIX system).
| Change type | Default gate | Why |
| --- | --- | --- |
| Package-local logic, parser, renderer, state-machine helper | `go test -count=1 ./<touched-package>` | Fastest feedback; no m02 or runner dependency. |
| CSI protocol propagation, lifecycle persistence, launcher render shape | `swblock run testops/scenarios/nvme-p5-protocol-component-gate.yaml` | Proves the known NVMe/iSCSI protocol-shape contracts with a runner bundle in seconds. |
| RF=1 restart contract, durable-root/status manifest shape | `swblock run testops/scenarios/csi-rf1-durable-restart-component-gate.yaml` | Proves restart/recovery contract shape without a full K8s restart. |
| Operations read-only volume status report shape | `swblock run testops/scenarios/operations-volume-status-report-component-gate.yaml` | Proves schema, frontend identity, unavailable fields, and residue copy behavior without starting product processes. |
| Kernel initiator, k3s, mounted filesystem, failover, or stale-session behavior | The matching child chain, for example `nvme-p5-csi-protocol-chain` or `csi-rf1-durable-restart-chain` | These require real Linux/K8s/initiator behavior. |
| Milestone readiness or cross-protocol release confidence | `swblock suite testops/suites/beta-hardening-gate.yaml` plus `swblock validate-bundle --profile beta-hardening` | Slow, evidence-heavy gate. Use for release/milestone claims, not first debugging. |
## Which gate to run
Use the smallest gate that proves the contract you changed.
| Change type | Gate |
| --- | --- |
| Package-local logic, parser, renderer, state-machine helper | `go test -count=1 ./<touched-package>` |
| CSI protocol propagation, lifecycle persistence, launcher render shape | `nvme-p5-protocol-component-gate` |
| Kernel initiator, k3s, mounted filesystem, failover or stale-session behaviour | the matching chain, for example `nvme-p5-csi-protocol-chain`, `nvme-p4-multipath-failover-chain` or `iscsi-p6-alua-failover-chain` |
**Node loss (`node-loss-survival-rf3-reattach-chain`).** This release claims no automatic promotion on node loss:
the gate cordons the primary's node and stops it, requires that no other replica is promoted during the hold
@@ -83,214 +70,3 @@ data. Manual failover (a `SwBlockReplicaFailback` handled by the failback execut
(`core/host/master/failback_runtime_test.go`), `TestFailbackAuthorityRuntimeAdapterRejectsStaleExpectedCurrent`
(`core/ops/failback_authority_runtime_adapter_test.go`) and `TestFailbackExecutorInvokesRuntimeWhenExplicitlyEnabled`
(`core/ops/failback_executor_controller_test.go`).
Default ownership:
- Developers run unit/component tests, fast runner-native component gates, and
single-child chains while iterating.
- QA runs full-suite repeatability, long soak, ambiguous lab failures, and
independent milestone validation.
- If QA would only execute a single known command and return stdout, run it
yourself and reserve QA for scenario design or trust-critical validation.
Example:
```bash
swblock run \
-env product_root=/path/to/seaweed_block/on/m02 \
-env ssh_key=/path/to/testdev_key/on/controller \
testops/scenarios/nvme-p5-csi-protocol-chain.yaml
```
Fast component gates are available for developer loops before running the
heavier K8s or initiator paths. For example, the NVMe-P5 protocol component
gate pins CSI protocol extraction, lifecycle protocol planning, and launcher
protocol persistence/planning, plus launcher NVMe/iSCSI manifest shape without
launching k3s:
```bash
swblock run \
-env product_root=/path/to/seaweed_block/on/m02 \
-env ssh_key=/path/to/testdev_key/on/controller \
testops/scenarios/nvme-p5-protocol-component-gate.yaml
```
The RF=1 durable restart path also has a component gate that checks restart
wrapper shape, generated hostPath/status manifest behavior, master frontend
projection, and durable status lineage without doing the full K8s restart:
```bash
swblock run \
-env product_root=/path/to/seaweed_block/on/m02 \
-env ssh_key=/path/to/testdev_key/on/controller \
testops/scenarios/csi-rf1-durable-restart-component-gate.yaml
```
The first operations-layer status report contract has its own component gate.
It is read-only, does not start product processes, and is not a block/data
snapshot:
```bash
swblock run \
-env product_root=/path/to/seaweed_block/on/m02 \
-env ssh_key=/path/to/testdev_key/on/controller \
testops/scenarios/operations-volume-status-report-component-gate.yaml
```
The same runner-native shape is used for the longer iSCSI P8 soak:
```bash
swblock run \
-env product_root=/path/to/seaweed_block/on/m02 \
-env ssh_key=/path/to/testdev_key/on/controller \
testops/scenarios/iscsi-p8-compat-soak-chain.yaml
```
The scenario still shells out to existing bash payloads. That is deliberate:
the first migration step is to move orchestration and evidence collection into
the runner without rewriting the product smoke tests.
## Protocol Release Gate
The product-owned release gate composes the current protocol chains:
- `iscsi-p6-alua-failover-chain`
- `nvme-p4-multipath-failover-chain`
- `nvme-p5-csi-protocol-chain`
- `iscsi-p8-compat-soak-chain`
The primary operator path is the runner-native suite command. Run it from the
controller, pointing it at the remote product checkout on m02:
```powershell
swblock suite `
--results-dir <evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native `
--env product_root=/tmp/seaweed-block-nvme-p4l `
--env ssh_key=C:/work/dev_server/testdev_key `
C:/work/seaweed_block/testops/suites/protocol-release-gate.yaml
```
Validate the bundle before manual artifact review:
```powershell
swblock validate-bundle --profile protocol-release-gate `
<evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native/<run-id>
```
QA close evidence:
- product commit: `033028e74c1ac3bc06f19c0563bc2e6a0495af59`,
- runner commit: `3c1b6603aefcf4c1bf0b22f9a9c081a67e786d8d`,
- suite run: `20260509-151531-9c6c`,
- result: PASS, validated by `swblock validate-bundle --profile
protocol-release-gate`.
The older wrappers remain available for compatibility and local debugging. The
PowerShell wrapper supports both Windows PowerShell 5.1 and PowerShell 7+;
native runner stderr is captured into the child artifact directory instead of
being treated as a PowerShell exception.
```powershell
.\scripts\testops-run-protocol-release-gate.ps1 `
-RunnerRoot C:\work\seaweedfs\learn\sw-test-runner-standalone `
-RemoteProductRoot /tmp/seaweed-block-nvme-p4l `
-SshKey C:\work\dev_server\testdev_key `
-ArtifactRoot C:\work\tmp\protocol-release-gate-$(Get-Date -Format yyyyMMddTHHmmssZ)
```
Linux / Git Bash controllers can use the bash wrapper:
```bash
SWBLOCK_RUNNER_ROOT=/c/work/seaweedfs/learn/sw-test-runner-standalone \
SW_BLOCK_REMOTE_PRODUCT_ROOT=/tmp/seaweed-block-nvme-p4l \
SW_BLOCK_SSH_KEY='C:\work\dev_server\testdev_key' \
SW_BLOCK_ARTIFACT_DIR=/c/work/tmp/protocol-release-gate-$(date -u +%Y%m%dT%H%M%SZ) \
bash scripts/testops-run-protocol-release-gate.sh "$PWD"
```
The suite writes a top-level `result.json` and `status.json` with
`started_at`, `ended_at`, `wall_clock_s`, child run IDs, per-child PASS/FAIL,
and artifact pointers. Each child bundle still owns its own `status.json`,
`result.json`, `scenario.yaml`, and collected remote artifacts under
`<suite-artifact>/<step>/runs/<child-run-id>/`.
After a run, validate the suite bundle offline before manual artifact review:
```powershell
.\scripts\testops-validate-latest-protocol-release-gate.ps1 `
-RunnerRoot C:\work\seaweedfs\learn\sw-test-runner-standalone `
-ArtifactRoot C:\work\tmp\protocol-release-gate-20260509T000000Z `
-ExpectCommit 033028e74c1ac3bc06f19c0563bc2e6a0495af59
```
Linux / Git Bash:
```bash
SWBLOCK_RUNNER_ROOT=/c/work/seaweedfs/learn/sw-test-runner-standalone \
SW_BLOCK_ARTIFACT_DIR=/c/work/tmp/protocol-release-gate-20260509T000000Z \
SW_BLOCK_EXPECT_COMMIT=033028e74c1ac3bc06f19c0563bc2e6a0495af59 \
bash scripts/testops-validate-latest-protocol-release-gate.sh "$PWD"
```
The wrapper calls the platform validator profile:
```bash
swblock validate-bundle --profile protocol-release-gate \
--expect-commit 033028e74c1ac3bc06f19c0563bc2e6a0495af59 \
/path/to/protocol-release-gate-artifact
```
The older product-specific Python checker remains available for local
debugging but is no longer the primary operator path:
```bash
python3 scripts/testops-validate-protocol-release-gate.py \
/path/to/protocol-release-gate-artifact \
--expect-product-commit 033028e74c1ac3bc06f19c0563bc2e6a0495af59
```
Use `--allow-fail` when validating the schema of an intentionally failed or
cancelled run; without it the checker requires all four child chains to be
`pass` with complete phase counts.
## Beta Hardening Gate
`testops/suites/beta-hardening-gate.yaml` is the seed suite for the current
beta-hardening plan. It composes the protocol release children plus the new
component/restart/reintegration gates:
- `iscsi-p6-alua-failover-chain`
- `nvme-p4-multipath-failover-chain`
- `nvme-p5-csi-protocol-chain`
- `iscsi-p8-compat-soak-chain`
- `csi-lifecycle-component-gate`
- `csi-rf1-durable-restart-chain`
- `operations-status-diagnostics-chain`
- `returned-replica-component-gate`
- `iscsi-returned-replica-chain`
- `cleanup-residue-chain`
Run shape:
```powershell
swblock suite `
--results-dir <evidence-store>/g15d-k8s/testops-runs/beta-hardening-gate `
--env product_root=/tmp/seaweed-block-plan-roadmap-refresh-devrun `
--env ssh_key=C:/work/dev_server/testdev_key `
C:/work/seaweed_block/testops/suites/beta-hardening-gate.yaml
```
Repeatability evidence:
- product commit:
`8822f20e91c2b88727ead9e49f9bf75eec28c791`
- runner commit:
`cf65daaf2ce5cf500e1efa48b411f7cb66dbac0b`
- run 1: `20260511-031605-8258`, PASS, `21m46s`,
`validate-bundle --profile beta-hardening` VALID.
- run 2: `20260511-040412-ac38`, PASS, `22m55s`,
`validate-bundle --profile beta-hardening` VALID.
- no manual cleanup between runs; final residue audit clean.
Use this suite for milestone readiness or release-candidate confidence. Do not
use it as the first debug loop for a package-level change.
@@ -1,80 +0,0 @@
# Runner-native Phase 67 gate: caught-up rebuild to ACK eligibility publication.
name: ack-eligibility-publication-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: ack_eligibility_publication_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication bash scripts/run-phase67-ack-eligibility-publication-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^phase67_ack_eligibility_publication_status=ok$"
save_as: phase67_ok
- action: assert_greater
actual: "{{ phase67_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^ack_publication_after_caught_up=true$"
save_as: ack_after_caught_up
- action: assert_greater
actual: "{{ ack_after_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^ack_publication_requires_rebuild_caught_up=true$"
save_as: requires_caught_up
- action: assert_greater
actual: "{{ requires_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^ack_publication_rejects_running_rebuild=true$"
save_as: rejects_running
- action: assert_greater
actual: "{{ rejects_running }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^ack_publication_rejects_unexpected_publication_allowed=true$"
save_as: rejects_unexpected_policy
- action: assert_greater
actual: "{{ rejects_unexpected_policy }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication"
name: "remote-phases"
ignore_error: true
@@ -10,42 +10,46 @@ timeout: 24m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/activation /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/activation $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: activate_alpha_stack
actions:
- action: exec
node: m02
node: node-a
timeout: 12m
cmd: "cd {{ product_root }} && bash scripts/activate-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/activation"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/activation"
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
@@ -53,81 +57,81 @@ phases:
- name: first_volume_user_loop
actions:
- action: exec
node: m02
node: node-a
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
- name: first_volume_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
pattern: "^pvc=sw-block-example-pvc$"
save_as: pvc_count
- action: assert_greater
actual: "{{ pvc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
pattern: "^writer_verified=true$"
save_as: writer_verified_count
- action: assert_greater
actual: "{{ writer_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
pattern: "^reader_verified=true$"
save_as: reader_verified_count
- action: assert_greater
actual: "{{ reader_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/writer.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/writer.log"
pattern: "/data/demo.bin: OK"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/reader.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: basic_cleanup_count
- action: assert_greater
actual: "{{ basic_cleanup_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/cluster-evidence.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/cluster-evidence.json"
pattern: "\"volumes\""
save_as: cluster_volumes_count
- action: assert_greater
actual: "{{ cluster_volumes_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/inventory/volume-inventory-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-example-pvc"
save_as: inventory_pvc_count
- action: assert_greater
@@ -138,14 +142,15 @@ phases:
always: true
actions:
- action: exec
node: m02
node: node-a
timeout: 5m
cmd: "kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
@@ -7,8 +7,11 @@
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# -env product_root=/path/to/seaweed_block/on/node-a \
# -env ssh_key=/path/to/ssh/key/on/controller \
# -env node_host=192.0.2.10 \
# -env node_user=tester \
# -env artifact_root=/path/to/shared/artifacts \
# testops/scenarios/activation-day1-install-chain.yaml
name: activation-day1-install-chain
@@ -16,127 +19,131 @@ timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1 && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1 && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1/activation $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: activate_alpha_stack
actions:
- action: exec
node: m02
node: node-a
timeout: 12m
cmd: "cd {{ product_root }} && bash scripts/activate-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation"
env.SW_BLOCK_ACTIVATION_IMPORT_K3S: "1"
- name: activation_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^activation_status=ok$"
save_as: activation_ok_count
- action: assert_greater
actual: "{{ activation_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^master_ready_replicas=1$"
save_as: master_ready_count
- action: assert_greater
actual: "{{ master_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^csi_controller_ready_replicas=1$"
save_as: csi_controller_ready_count
- action: assert_greater
actual: "{{ csi_controller_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^csi_node_ready=[1-9][0-9]*/[1-9][0-9]*$"
save_as: csi_node_ready_count
- action: assert_greater
actual: "{{ csi_node_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^storageclass=sw-block-dynamic$"
save_as: storageclass_count
- action: assert_greater
actual: "{{ storageclass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^storageclass_provider=block.csi.seaweedfs.com$"
save_as: storageclass_provider_count
- action: assert_greater
actual: "{{ storageclass_provider_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^protocol=iscsi$"
save_as: protocol_count
- action: assert_greater
actual: "{{ protocol_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "^ack_profile=best-effort$"
save_as: ack_profile_count
- action: assert_greater
actual: "{{ ack_profile_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "next_create_volume=kubectl apply -f examples/kubernetes/basic-app/storageclass-pvc.yaml"
save_as: next_create_volume_count
- action: assert_greater
actual: "{{ next_create_volume_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
pattern: "non_claims=alpha_only,no_backup_restore,no_upgrade_safety,no_mutating_dashboard_actions,no_broad_performance_slo"
save_as: non_claims_count
- action: assert_greater
actual: "{{ non_claims_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/readiness.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/readiness.txt"
pattern: "sw-block-csi-node"
save_as: readiness_csi_node_count
- action: assert_greater
@@ -147,20 +154,21 @@ phases:
always: true
actions:
- action: exec
node: m02
node: node-a
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup/delete-storageclass.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/cleanup/delete-storageclass.log"
pattern: "sw-block-dynamic"
save_as: storageclass_cleanup_count
- action: assert_greater
@@ -1,168 +0,0 @@
# Runner-native Phase 54 D4 gate: authority-executor ACK eligibility call-site.
name: authority-executor-callsite-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_callsite_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite bash scripts/run-phase54-authority-executor-callsite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^phase54_authority_executor_callsite_status=ok$"
save_as: phase54_callsite_ok
- action: assert_greater
actual: "{{ phase54_callsite_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^target_missing_mutation_attempts=0$"
save_as: target_missing_no_mutation
- action: assert_greater
actual: "{{ target_missing_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^target_missing_created_targets=0$"
save_as: target_missing_no_create
- action: assert_greater
actual: "{{ target_missing_no_create }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^terminal_missing_mutation_attempts=0$"
save_as: terminal_missing_no_mutation
- action: assert_greater
actual: "{{ terminal_missing_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^terminal_missing_target_reason_absent=$"
save_as: terminal_missing_no_status
- action: assert_greater
actual: "{{ terminal_missing_no_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_mutation_attempts=1$"
save_as: complete_one_mutation
- action: assert_greater
actual: "{{ complete_one_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_ack_eligibility_mutation_attempts=1$"
save_as: complete_one_ack_mutation
- action: assert_greater
actual: "{{ complete_one_ack_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_reason=ack_eligibility_recorded$"
save_as: complete_reason
- action: assert_greater
actual: "{{ complete_reason }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_ack_eligible=true$"
save_as: complete_ack_eligible
- action: assert_greater
actual: "{{ complete_ack_eligible }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_frontend_fenced=true$"
save_as: complete_frontend_fenced
- action: assert_greater
actual: "{{ complete_frontend_fenced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_primary_unchanged=true$"
save_as: complete_primary_unchanged
- action: assert_greater
actual: "{{ complete_primary_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_frontier_covered=true$"
save_as: complete_frontier_covered
- action: assert_greater
actual: "{{ complete_frontier_covered }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_no_cross_volume=true$"
save_as: complete_no_cross_volume
- action: assert_greater
actual: "{{ complete_no_cross_volume }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_swblockvolume_ack_still_false=false$"
save_as: complete_source_unchanged
- action: assert_greater
actual: "{{ complete_source_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^complete_target_nonclaims_ok=true$"
save_as: complete_nonclaims
- action: assert_greater
actual: "{{ complete_nonclaims }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: boundary_volume_status_denied
- action: assert_greater
actual: "{{ boundary_volume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: boundary_events_denied
- action: assert_greater
actual: "{{ boundary_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite"
name: "remote-phases"
ignore_error: true
@@ -1,128 +0,0 @@
# Runner-native Phase 62 gate: authority-executor HTTP rebuild runtime transport.
name: authority-executor-http-runtime-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_http_runtime_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime bash scripts/run-phase62-authority-executor-http-runtime-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^phase62_authority_executor_http_runtime_status=ok$"
save_as: phase62_ok
- action: assert_greater
actual: "{{ phase62_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^http_runtime_posts_request=true$"
save_as: posts_request
- action: assert_greater
actual: "{{ posts_request }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^http_runtime_decodes_terminal_frontier=true$"
save_as: decodes_frontier
- action: assert_greater
actual: "{{ decodes_frontier }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^cli_rebuild_runtime_url_enabled=true$"
save_as: cli_enabled
- action: assert_greater
actual: "{{ cli_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^cli_rebuild_runtime_url_requires_rebuild_traffic=true$"
save_as: cli_guard
- action: assert_greater
actual: "{{ cli_guard }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^rebuild_status_running_written=true$"
save_as: running_written
- action: assert_greater
actual: "{{ running_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^rebuild_status_caught_up_written=true$"
save_as: caught_up_written
- action: assert_greater
actual: "{{ caught_up_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^rebuild_status_blocked_on_runtime_failure=true$"
save_as: blocked_written
- action: assert_greater
actual: "{{ blocked_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^planned_status_preserved_without_runtime=true$"
save_as: planned_preserved
- action: assert_greater
actual: "{{ planned_preserved }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^blockvolume_runtime_endpoint_wired=false$"
save_as: endpoint_not_wired
- action: assert_greater
actual: "{{ endpoint_not_wired }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
pattern: "^failback_allowed=false$"
save_as: no_failback
- action: assert_greater
actual: "{{ no_failback }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime"
name: "remote-phases"
ignore_error: true
@@ -1,166 +0,0 @@
# Runner-native Phase 54 D7 gate: live returned-replica close with bounded ACK eligibility execution.
name: authority-executor-live-close-chain
timeout: 22m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-phase54-live-close/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: authority_executor_live_close_gate
actions:
- action: exec
node: m02
timeout: 18m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close bash scripts/run-phase54-authority-executor-live-close-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^phase54_authority_executor_live_close_status=ok$"
save_as: phase54_live_close_ok
- action: assert_greater
actual: "{{ phase54_live_close_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^previous_primary_frontend_fenced=true$"
save_as: previous_primary_fenced
- action: assert_greater
actual: "{{ previous_primary_fenced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^current_primary_unchanged=true$"
save_as: current_primary_unchanged
- action: assert_greater
actual: "{{ current_primary_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^durable_frontier_covered=true$"
save_as: durable_frontier_covered
- action: assert_greater
actual: "{{ durable_frontier_covered }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^executor_ack_mutation_attempts=1$"
save_as: one_ack_mutation
- action: assert_greater
actual: "{{ one_ack_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_reason=ack_eligibility_recorded$"
save_as: target_ack_recorded
- action: assert_greater
actual: "{{ target_ack_recorded }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_ack_eligible=true$"
save_as: target_ack_eligible
- action: assert_greater
actual: "{{ target_ack_eligible }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_frontend_fenced=true$"
save_as: target_frontend_fenced
- action: assert_greater
actual: "{{ target_frontend_fenced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_primary_unchanged=true$"
save_as: target_primary_unchanged
- action: assert_greater
actual: "{{ target_primary_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_frontier_covered=true$"
save_as: target_frontier_covered
- action: assert_greater
actual: "{{ target_frontier_covered }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_no_cross_volume=true$"
save_as: target_no_cross_volume
- action: assert_greater
actual: "{{ target_no_cross_volume }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^source_ack_still_false=false$"
save_as: source_ack_unchanged
- action: assert_greater
actual: "{{ source_ack_unchanged }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
pattern: "^target_nonclaims_ok=true$"
save_as: target_nonclaims_ok
- action: assert_greater
actual: "{{ target_nonclaims_ok }}"
threshold: "0"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-phase54-live-close/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close"
name: "remote-phases"
ignore_error: true
@@ -1,152 +0,0 @@
# Runner-native Phase 54 D6 gate: authority-executor multi-volume isolation.
name: authority-executor-multivolume-chain
timeout: 10m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_multivolume_gate
actions:
- action: exec
node: m02
timeout: 9m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume bash scripts/run-phase54-authority-executor-multivolume-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^phase54_authority_executor_multivolume_status=ok$"
save_as: phase54_multivolume_ok
- action: assert_greater
actual: "{{ phase54_multivolume_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^multivolume_contracts=4$"
save_as: multivolume_contracts
- action: assert_greater
actual: "{{ multivolume_contracts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^multivolume_mutation_attempts=2$"
save_as: multivolume_two_mutations
- action: assert_greater
actual: "{{ multivolume_two_mutations }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^multivolume_ack_mutation_attempts=2$"
save_as: multivolume_two_ack_mutations
- action: assert_greater
actual: "{{ multivolume_two_ack_mutations }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^multivolume_terminal_missing=1$"
save_as: multivolume_one_terminal_missing
- action: assert_greater
actual: "{{ multivolume_one_terminal_missing }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^multivolume_target_missing=1$"
save_as: multivolume_one_target_missing
- action: assert_greater
actual: "{{ multivolume_one_target_missing }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^eligible_a_reason=ack_eligibility_recorded$"
save_as: eligible_a_written
- action: assert_greater
actual: "{{ eligible_a_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^eligible_b_reason=ack_eligibility_recorded$"
save_as: eligible_b_written
- action: assert_greater
actual: "{{ eligible_b_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^blocked_c_reason_absent=$"
save_as: blocked_c_held
- action: assert_greater
actual: "{{ blocked_c_held }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^mismatch_e_reason_absent=$"
save_as: mismatch_e_held
- action: assert_greater
actual: "{{ mismatch_e_held }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^no_contract_d_target_count=0$"
save_as: no_contract_d_no_target
- action: assert_greater
actual: "{{ no_contract_d_no_target }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^eligible_written_count=2$"
save_as: exactly_two_written
- action: assert_greater
actual: "{{ exactly_two_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^cross_contamination_count=0$"
save_as: no_cross_contamination
- action: assert_greater
actual: "{{ no_cross_contamination }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: boundary_volume_status_denied
- action: assert_greater
actual: "{{ boundary_volume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: boundary_events_denied
- action: assert_greater
actual: "{{ boundary_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume"
name: "remote-phases"
ignore_error: true
@@ -1,128 +0,0 @@
# Runner-native Phase 54 D5 gate: authority-executor negative/hold matrix.
name: authority-executor-negative-chain
timeout: 10m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_negative_gate
actions:
- action: exec
node: m02
timeout: 9m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative bash scripts/run-phase54-authority-executor-negative-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^phase54_authority_executor_negative_status=ok$"
save_as: phase54_negative_ok
- action: assert_greater
actual: "{{ phase54_negative_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^blocked-preflight_mutation_attempts=0$"
save_as: blocked_preflight_no_mutation
- action: assert_greater
actual: "{{ blocked_preflight_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^stale-frontier_mutation_attempts=0$"
save_as: stale_frontier_no_mutation
- action: assert_greater
actual: "{{ stale_frontier_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^unsafe-frontend_mutation_attempts=0$"
save_as: unsafe_frontend_no_mutation
- action: assert_greater
actual: "{{ unsafe_frontend_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^ambiguous_target_mutation_attempts=0$"
save_as: ambiguous_no_mutation
- action: assert_greater
actual: "{{ ambiguous_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^identity_mismatch_mutation_attempts=0$"
save_as: identity_mismatch_no_mutation
- action: assert_greater
actual: "{{ identity_mismatch_no_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^partial_mutation_attempts=1$"
save_as: partial_one_mutation
- action: assert_greater
actual: "{{ partial_one_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^partial_terminal_missing=1$"
save_as: partial_one_hold
- action: assert_greater
actual: "{{ partial_one_hold }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^partial_a_reason=ack_eligibility_recorded$"
save_as: partial_a_written
- action: assert_greater
actual: "{{ partial_a_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^partial_b_reason_absent=$"
save_as: partial_b_held
- action: assert_greater
actual: "{{ partial_b_held }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: boundary_volume_status_denied
- action: assert_greater
actual: "{{ boundary_volume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: boundary_events_denied
- action: assert_greater
actual: "{{ boundary_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative"
name: "remote-phases"
ignore_error: true
@@ -1,72 +0,0 @@
# Runner-native Phase 53 gate: authority-executor RBAC boundary.
name: authority-executor-rbac-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_rbac_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac bash scripts/run-phase53-authority-executor-rbac-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
pattern: "^phase53_authority_executor_rbac_status=ok$"
save_as: phase53_rbac_ok
- action: assert_greater
actual: "{{ phase53_rbac_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
pattern: "^authority_executor_get_swblockvolumes_allowed=yes$"
save_as: phase53_get_allowed
- action: assert_greater
actual: "{{ phase53_get_allowed }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
pattern: "^authority_executor_patch_swblockvolumes_denied=no$"
save_as: phase53_patch_denied
- action: assert_greater
actual: "{{ phase53_patch_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
pattern: "^authority_executor_patch_status_denied=no$"
save_as: phase53_status_denied
- action: assert_greater
actual: "{{ phase53_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
pattern: "^authority_executor_create_events_denied=no$"
save_as: phase53_events_denied
- action: assert_greater
actual: "{{ phase53_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac"
name: "remote-phases"
ignore_error: true
@@ -1,128 +0,0 @@
# Runner-native Phase 57 gate: authority-executor rebuild target RBAC boundary.
name: authority-executor-rebuild-target-rbac-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_rebuild_target_rbac_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac bash scripts/run-phase57-authority-executor-rebuild-target-rbac-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^phase57_authority_executor_rebuild_target_rbac_status=ok$"
save_as: phase57_rbac_ok
- action: assert_greater
actual: "{{ phase57_rbac_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^default_patch_swblockreplicarebuilds_status_denied=no$"
save_as: default_rebuild_status_denied
- action: assert_greater
actual: "{{ default_rebuild_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^exec_patch_swblockreplicarebuilds_status_allowed=yes$"
save_as: exec_rebuild_status_allowed
- action: assert_greater
actual: "{{ exec_rebuild_status_allowed }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^exec_patch_swblockreplicarebuilds_main_denied=no$"
save_as: exec_rebuild_main_denied
- action: assert_greater
actual: "{{ exec_rebuild_main_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: exec_swblockvolume_status_denied
- action: assert_greater
actual: "{{ exec_swblockvolume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^exec_patch_swblockreplicaeligibilities_status_denied=no$"
save_as: exec_eligibility_status_denied
- action: assert_greater
actual: "{{ exec_eligibility_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: exec_events_denied
- action: assert_greater
actual: "{{ exec_events_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^default_rebuild_status_patch_runtime_denied=true$"
save_as: default_runtime_patch_denied
- action: assert_greater
actual: "{{ default_runtime_patch_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^runtime_rebuild_status_state=planned$"
save_as: runtime_state_planned
- action: assert_greater
actual: "{{ runtime_state_planned }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^runtime_rebuild_status_reason=rebuild_progress_planned$"
save_as: runtime_reason_planned
- action: assert_greater
actual: "{{ runtime_reason_planned }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^runtime_rebuild_traffic_started=false$"
save_as: runtime_no_traffic
- action: assert_greater
actual: "{{ runtime_no_traffic }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
pattern: "^runtime_no_frontend_publication=true$"
save_as: runtime_no_frontend_publication
- action: assert_greater
actual: "{{ runtime_no_frontend_publication }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac"
name: "remote-phases"
ignore_error: true
@@ -1,136 +0,0 @@
# Runner-native Phase 61 gate: authority-executor rebuild runtime call-site.
name: authority-executor-runtime-callsite-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_runtime_callsite_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite bash scripts/run-phase61-authority-executor-runtime-callsite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^phase61_authority_executor_runtime_callsite_status=ok$"
save_as: phase61_ok
- action: assert_greater
actual: "{{ phase61_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^planned_without_runtime_test=true$"
save_as: planned_preserved
- action: assert_greater
actual: "{{ planned_preserved }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^runtime_callsite_caught_up_test=true$"
save_as: runtime_caught_up
- action: assert_greater
actual: "{{ runtime_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^runtime_failure_blocked_test=true$"
save_as: runtime_blocked
- action: assert_greater
actual: "{{ runtime_blocked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^runtime_callsite_invoked=true$"
save_as: callsite_invoked
- action: assert_greater
actual: "{{ callsite_invoked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^rebuild_status_running_written=true$"
save_as: running_written
- action: assert_greater
actual: "{{ running_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^rebuild_status_caught_up_written=true$"
save_as: caught_up_written
- action: assert_greater
actual: "{{ caught_up_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^rebuild_status_blocked_on_runtime_failure=true$"
save_as: blocked_written
- action: assert_greater
actual: "{{ blocked_written }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^rebuild_traffic_started_when_runtime_invoked=true$"
save_as: traffic_started
- action: assert_greater
actual: "{{ traffic_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^durable_frontier_caught_up_after_runtime=true$"
save_as: frontier_caught_up
- action: assert_greater
actual: "{{ frontier_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^blockvolume_rpc_wired=false$"
save_as: rpc_not_wired
- action: assert_greater
actual: "{{ rpc_not_wired }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
pattern: "^failback_allowed=false$"
save_as: no_failback
- action: assert_greater
actual: "{{ no_failback }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite"
name: "remote-phases"
ignore_error: true
@@ -1,80 +0,0 @@
# Runner-native Phase 54 D3 gate: authority-executor ACK target RBAC boundary.
name: authority-executor-target-rbac-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: authority_executor_target_rbac_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac bash scripts/run-phase54-authority-executor-target-rbac-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^phase54_authority_executor_target_rbac_status=ok$"
save_as: phase54_rbac_ok
- action: assert_greater
actual: "{{ phase54_rbac_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^default_patch_swblockreplicaeligibilities_status_denied=no$"
save_as: default_target_status_denied
- action: assert_greater
actual: "{{ default_target_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^exec_patch_swblockreplicaeligibilities_status_allowed=yes$"
save_as: exec_target_status_allowed
- action: assert_greater
actual: "{{ exec_target_status_allowed }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^exec_patch_swblockreplicaeligibilities_main_denied=no$"
save_as: exec_target_main_denied
- action: assert_greater
actual: "{{ exec_target_main_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
save_as: exec_swblockvolume_status_denied
- action: assert_greater
actual: "{{ exec_swblockvolume_status_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
pattern: "^exec_create_events_denied=no$"
save_as: exec_events_denied
- action: assert_greater
actual: "{{ exec_events_denied }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 64 gate: blockvolume runtime rebuild start endpoint.
name: blockvolume-runtime-endpoint-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: blockvolume_runtime_endpoint_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint bash scripts/run-phase64-blockvolume-runtime-endpoint-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^phase64_blockvolume_runtime_endpoint_status=ok$"
save_as: phase64_ok
- action: assert_greater
actual: "{{ phase64_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^runtime_state_started_supported=true$"
save_as: started_supported
- action: assert_greater
actual: "{{ started_supported }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^authority_executor_started_result_not_blocked=true$"
save_as: started_not_blocked
- action: assert_greater
actual: "{{ started_not_blocked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^blockvolume_runtime_endpoint_opt_in=true$"
save_as: opt_in
- action: assert_greater
actual: "{{ opt_in }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^blockvolume_runtime_endpoint_posts_started=true$"
save_as: posts_started
- action: assert_greater
actual: "{{ posts_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^blockvolume_runtime_endpoint_requires_primary=true$"
save_as: requires_primary
- action: assert_greater
actual: "{{ requires_primary }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^replication_runtime_rejects_lineage_drift=true$"
save_as: rejects_drift
- action: assert_greater
actual: "{{ rejects_drift }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
pattern: "^runtime_endpoint_terminal_frontier_claimed=false$"
save_as: no_terminal_claim
- action: assert_greater
actual: "{{ no_terminal_claim }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint"
name: "remote-phases"
ignore_error: true
@@ -1,72 +0,0 @@
# Runner-native Phase 66 gate: caught-up publication preflight surface.
name: caught-up-publication-preflight-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: publication_preflight_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight bash scripts/run-phase66-caught-up-publication-preflight-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
pattern: "^phase66_caught_up_publication_preflight_status=ok$"
save_as: phase66_ok
- action: assert_greater
actual: "{{ phase66_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
pattern: "^publication_decision_schema_locked=true$"
save_as: schema_locked
- action: assert_greater
actual: "{{ schema_locked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
pattern: "^publication_blocked_until_caught_up=true$"
save_as: blocked_until_caught_up
- action: assert_greater
actual: "{{ blocked_until_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
pattern: "^publication_disabled_after_caught_up=true$"
save_as: disabled_after_caught_up
- action: assert_greater
actual: "{{ disabled_after_caught_up }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
pattern: "^publication_mutation_allowed=false$"
save_as: mutation_false
- action: assert_greater
actual: "{{ mutation_false }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight"
name: "remote-phases"
ignore_error: true
@@ -1,88 +0,0 @@
# Runner-native cleanup residue audit.
#
# Goal:
# Prove the lab is clean before the next workload starts. This is not an
# install/uninstall functional test; it is a repeatability guard for beta
# suites that should fail when stale iSCSI/NVMe/K8s/process state leaks from
# earlier children.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/cleanup-residue-chain.yaml
name: cleanup-residue-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: host_protocol_residue
actions:
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/uninstall /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build"
- action: exec
node: m02
cmd: "cd {{ product_root }} && if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status; else echo no-git-worktree > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.sha; : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status; fi"
- action: exec
node: m02
cmd: "command -v iscsiadm >/dev/null && (sudo -n iscsiadm -m session > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/iscsi-sessions.after-cleanup.txt 2>&1 || grep -q 'No active sessions' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/iscsi-sessions.after-cleanup.txt)"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: exec
node: m02
cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/verify-cleanup bash scripts/verify-helm-cleanup.sh {{ product_root }}"
- action: exec
node: m02
cmd: "sudo nvme list-subsys -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.json 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.err && ! grep -Ei 'nqn\\.[^[:space:]\"}]*seaweedfs|nqn\\.[^[:space:]\"}]*sw-block|nqn\\.[^[:space:]\"}]*weedblock' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.json"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: kubernetes_residue
actions:
- action: exec
node: m02
cmd: "bash -e -c 'kubectl get deploy,daemonset,statefulset,pod,svc,pvc,pv -A -o name > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.err; kubectl get storageclass,csidriver -o name >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt 2>> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.err; if grep -E \"(sw-block|seaweed-block|block\\.csi\\.seaweedfs\\.com)\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-residue.after-cleanup.txt; then exit 1; fi'"
- name: hostpath_residue
actions:
- action: exec
node: m02
cmd: "if sudo test -d /var/lib/sw-block; then sudo find /var/lib/sw-block -maxdepth 1 -mindepth 1 -print > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath.all.txt; sudo find /var/lib/sw-block -maxdepth 1 -mindepth 1 -type d -name 'testops-*' -print > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt; else : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath.all.txt; : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt; fi; test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: exec
node: m02
cmd: "kubectl delete storageclass sw-block sw-block-example sw-block-dynamic sw-block-dynamic-nvme --ignore-not-found=true > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/delete-storageclasses.log 2>&1 || true"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
unmount: "/tmp/sw-block-iscsi-os/mnt,/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt,/tmp/sw-block-nvme-failover/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue"
name: "remote-phases"
ignore_error: true
@@ -1,340 +0,0 @@
# Runner-native cluster operations inventory chain.
#
# Goal:
# Prove that an operator can discover the live alpha Kubernetes volume from
# the cluster itself, not from TestOps artifacts, and collect nested
# per-replica status bundles through sw-block ops inventory.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/cluster-ops-inventory-chain.yaml
name: cluster-ops-inventory-chain
timeout: 22m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: live_volume_boundary
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_STOP_AFTER=blockvolume-ready SW_BLOCK_DEMO_KEEP_ON_STOP=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/controlled-stop.exit_code; test \"$rc\" -eq 42'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/run.log"
pattern: "\\[app-demo\\] controlled stop after blockvolume ready"
save_as: controlled_stop_count
- action: assert_greater
actual: "{{ controlled_stop_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/generated-blockvolume.yaml"
pattern: "--status-addr="
save_as: generated_status_addr_count
- action: assert_greater
actual: "{{ generated_status_addr_count }}"
threshold: "0"
- name: second_volume_boundary
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-pvc.yaml <<'YAML'\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n name: sw-block-demo-pvc-2\n namespace: default\nspec:\n accessModes:\n - ReadWriteOnce\n storageClassName: sw-block-dynamic\n resources:\n requests:\n storage: 1Mi\nYAML\nkubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nkubectl -n default wait --for=jsonpath='{.status.phase}'=Bound pvc/sw-block-demo-pvc-2 --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nfor i in $(seq 1 120); do count=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2 && break; sleep 1; done\ncount=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2\nkubectl -n default wait --for=condition=available deploy -l app=sw-blockvolume --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nkubectl -n kube-system exec deploy/sw-blockmaster -c blockmaster -- sh -c 'cat /manifests/*.yaml' > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume-generated-blockvolume.yaml 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume-generated-blockvolume.err\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/product-owned-blockvolumes.after-second-pvc.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log"
pattern: "persistentvolumeclaim/sw-block-demo-pvc-2 created"
save_as: second_pvc_created_count
- action: assert_greater
actual: "{{ second_pvc_created_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/product-owned-blockvolumes.after-second-pvc.txt"
pattern: "^sw-blockvolume-"
save_as: second_volume_ready_count
- action: assert_greater
actual: "{{ second_volume_ready_count }}"
threshold: "1"
- action: exec
node: m02
cmd: "test ! -e /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume/apply.log"
- name: inventory_live_cluster
actions:
- action: exec
node: m02
timeout: 4m
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; find \"$OUT/volumes\" -name ops-status-bundle.json -exec cat {} \\; > \"$OUT/nested-ops-status-bundles.json\" 2>/dev/null || true; exit \"$rc\"'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/exit_code.txt"
pattern: "^0$"
save_as: inventory_exit_zero_count
- action: assert_greater
actual: "{{ inventory_exit_zero_count }}"
threshold: "0"
- name: inventory_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "^inventory_status: \\(ok\\|unhealthy\\)$"
save_as: inventory_status_count
- action: assert_greater
actual: "{{ inventory_status_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "^volumes: total=2 ok=[0-2] unhealthy=[0-2] invalid=0$"
save_as: two_volume_count
- action: assert_greater
actual: "{{ two_volume_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "rf=1 desired=1 observed=1"
save_as: two_observed_volume_count
- action: assert_greater
actual: "{{ two_observed_volume_count }}"
threshold: "1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "protocols=iscsi"
save_as: two_iscsi_protocol_count
- action: assert_greater
actual: "{{ two_iscsi_protocol_count }}"
threshold: "1"
- action: exec
node: m02
cmd: "! grep -q 'generated_deployment_missing\\|observed_replicas=0 desired_replicas=1\\|replica_slot_missing' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
- action: exec
node: m02
cmd: "! grep -q 'replica_unhealthy' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
- action: exec
node: m02
cmd: "! grep -E 'replica: .*status=ok .*epoch=0 endpoint_version=0' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
- action: exec
node: m02
cmd: "! grep -q 'ops_status=unhealthy reason=authority_not_assigned epoch=' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "lifecycle_owner=pvc-owner-ref"
save_as: lifecycle_owner_count
- action: assert_greater
actual: "{{ lifecycle_owner_count }}"
threshold: "1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc"
save_as: pvc_owner_ref_count
- action: assert_greater
actual: "{{ pvc_owner_ref_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc-2"
save_as: second_pvc_owner_ref_count
- action: assert_greater
actual: "{{ second_pvc_owner_ref_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-demo-pvc"
save_as: pvc_identity_count
- action: assert_greater
actual: "{{ pvc_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-demo-pvc-2"
save_as: second_pvc_identity_count
- action: assert_greater
actual: "{{ second_pvc_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
pattern: "support_bundle=volumes/"
save_as: replica_support_bundle_count
- action: assert_greater
actual: "{{ replica_support_bundle_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
pattern: "\"pvc_name\": \"sw-block-demo-pvc\""
save_as: json_pvc_count
- action: assert_greater
actual: "{{ json_pvc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
pattern: "\"pvc_name\": \"sw-block-demo-pvc-2\""
save_as: json_second_pvc_count
- action: assert_greater
actual: "{{ json_second_pvc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
pattern: "\"status_address\": \"127.0.0.1:"
save_as: json_status_addr_count
- action: assert_greater
actual: "{{ json_status_addr_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/nested-ops-status-bundles.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: nested_status_bundle_count
- action: assert_greater
actual: "{{ nested_status_bundle_count }}"
threshold: "0"
- name: scoped_delete_inventory
actions:
- action: exec
node: m02
timeout: 4m
cmd: "kubectl -n default delete pvc sw-block-demo-pvc-2 --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/delete-second-pvc.log 2>&1\nfor i in $(seq 1 120); do if ! kubectl -n default get deploy -l app=sw-blockvolume -o jsonpath='{range .items[*]}{.metadata.ownerReferences[0].name}{\"\\n\"}{end}' 2>/dev/null | grep -q '^sw-block-demo-pvc-2$'; then break; fi; sleep 1; done\nif kubectl -n default get deploy -l app=sw-blockvolume -o jsonpath='{range .items[*]}{.metadata.ownerReferences[0].name}{\"\\n\"}{end}' 2>/dev/null | grep -q '^sw-block-demo-pvc-2$'; then echo 'second PVC-owned deployment still present after delete' >&2; exit 1; fi\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/blockvolumes.after-delete-second-pvc.txt"
- action: exec
node: m02
timeout: 4m
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; exit \"$rc\"'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
pattern: "^volumes: total=1 ok=[0-1] unhealthy=[0-1] invalid=0$"
save_as: one_volume_after_delete_count
- action: assert_greater
actual: "{{ one_volume_after_delete_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
pattern: "pvc=sw-block-demo-pvc"
save_as: surviving_pvc_count
- action: assert_greater
actual: "{{ surviving_pvc_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'pvc=sw-block-demo-pvc-2\\|owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc-2\\|generated_deployment_missing\\|orphan-blockvolume-deploy' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-demo-pvc-2 --ignore-not-found=true --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/delete-second-pvc.log 2>&1 || true"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory"
name: "remote-phases"
ignore_error: true
@@ -1,94 +0,0 @@
# Runner-native CSI lifecycle component gate.
#
# Goal:
# Run the fast CSI controller/node component tests that pin publish,
# stage, unpublish, unstage, and reattach semantics without requiring a
# privileged Linux initiator or Kubernetes workload.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/csi-lifecycle-component-gate.yaml
name: csi-lifecycle-component-gate
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build"
- name: pin_build
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.status"
- name: csi_component_tests
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -v ./core/csi | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
pattern: "--- PASS: TestG15e_CSIReattachUsesFreshPublishTargetAfterUnstage"
save_as: reattach_component_count
- action: assert_greater
actual: "{{ reattach_component_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
pattern: "--- PASS: TestNodeStage_FailsClosedOnStaleLoggedInSessionWithoutStagedIdentity"
save_as: stale_session_component_count
- action: assert_greater
actual: "{{ stale_session_component_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
pattern: "--- PASS: TestNodeStageUnstage_RepeatedCyclesLeaveNoLocalState"
save_as: repeated_cycle_component_count
- action: assert_greater
actual: "{{ repeated_cycle_component_count }}"
threshold: "0"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component"
name: "remote-phases"
ignore_error: true
@@ -1,278 +0,0 @@
# Runner-native RF=1 durable blockvolume restart chain.
#
# Goal:
# clean target -> build/import alpha images -> run dynamic PVC with durable
# generated blockvolume hostPath state -> restart generated blockvolume
# Deployment -> verify replacement app pod reads pre-restart bytes -> collect.
#
# Expected invocation from sw-test-runner-standalone:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/csi-rf1-durable-restart-chain.yaml
name: csi-rf1-durable-restart-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: pin_image_id_count
- action: assert_greater
actual: "{{ pin_image_id_count }}"
threshold: "0"
- name: durable_blockvolume_restart
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-k8s-blockvolume-restart.sh {{ product_root }}"
env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build/alpha-images.env"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart"
env.SW_BLOCK_LAUNCHER_STATE_HOSTPATH: "/var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
env.SW_BLOCK_COLLECT_INVENTORY_AFTER_RESTART: "1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/run.log"
pattern: "\\[app-demo\\] PASS:"
save_as: app_pass_count
- action: assert_greater
actual: "{{ app_pass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/run.log"
pattern: "restart_blockvolume_before_reader=1"
save_as: restart_mode_count
- action: assert_greater
actual: "{{ restart_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/block-stack.rendered.yaml"
pattern: "--launcher-status"
save_as: launcher_status_count
- action: assert_greater
actual: "{{ launcher_status_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/block-stack.rendered.yaml"
pattern: "--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
save_as: launcher_state_hostpath_count
- action: assert_greater
actual: "{{ launcher_state_hostpath_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
pattern: "hostPath:"
save_as: generated_hostpath_count
- action: assert_greater
actual: "{{ generated_hostpath_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
pattern: "type: DirectoryOrCreate"
save_as: generated_hostpath_type_count
- action: assert_greater
actual: "{{ generated_hostpath_type_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
pattern: "--status-addr=127.0.0.1:"
save_as: generated_status_addr_count
- action: assert_greater
actual: "{{ generated_status_addr_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "awk 'BEGIN{in_volumes=0;in_state=0;bad=0} /^[[:space:]]*volumes:[[:space:]]*$/{in_volumes=1;next} in_volumes && /^[^[:space:]]/{in_volumes=0;in_state=0} in_volumes && /^[[:space:]]*-[[:space:]]*name:[[:space:]]*state[[:space:]]*$/{in_state=1;next} in_state && /^[[:space:]]*-[[:space:]]*name:[[:space:]]*/{in_state=0} in_state && /emptyDir:/{bad=1} END{exit bad}' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.before-restart.tsv && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.after-restart.tsv && ! cmp -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.before-restart.tsv /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.after-restart.tsv"
- action: exec
node: m02
cmd: "! grep -q 'iqn.2026-05.io.seaweedfs' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/iscsi-sessions.before-blockvolume-restart.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/restart-blockvolume-status.log"
pattern: "successfully rolled out"
save_as: blockvolume_rollout_count
- action: assert_greater
actual: "{{ blockvolume_rollout_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/reader.describe.before-delete.txt"
pattern: "Status: Succeeded"
save_as: reader_succeeded_describe_count
- action: assert_greater
actual: "{{ reader_succeeded_describe_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
pattern: "\"ReplicaID\"[[:space:]]*:[[:space:]]*\"r1\""
save_as: durable_status_replica_count
- action: assert_greater
actual: "{{ durable_status_replica_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
pattern: "\"Epoch\"[[:space:]]*:[[:space:]]*[1-9][0-9]*"
save_as: durable_status_epoch_count
- action: assert_greater
actual: "{{ durable_status_epoch_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
pattern: "\"Latched\"[[:space:]]*:[[:space:]]*true"
save_as: durable_status_latched_count
- action: assert_greater
actual: "{{ durable_status_latched_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
pattern: "\"Operational\"[[:space:]]*:[[:space:]]*true"
save_as: durable_status_operational_count
- action: assert_greater
actual: "{{ durable_status_operational_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-generated.after-restart.log"
pattern: "\"phase\":\"iscsi-listening\""
save_as: blockvolume_iscsi_listening_count
- action: assert_greater
actual: "{{ blockvolume_iscsi_listening_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/lifecycle-volumes.after-blockvolume-restart.json"
pattern: "\"protocol\"[[:space:]]*:[[:space:]]*\"iscsi\""
save_as: lifecycle_after_restart_protocol_count
- action: assert_greater
actual: "{{ lifecycle_after_restart_protocol_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
pattern: "^volume: .*pvc=sw-block-demo-pvc .*protocols=iscsi"
save_as: inventory_after_restart_volume_count
- action: assert_greater
actual: "{{ inventory_after_restart_volume_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
pattern: "^replica: .*support_bundle=volumes/"
save_as: inventory_after_restart_support_bundle_count
- action: assert_greater
actual: "{{ inventory_after_restart_support_bundle_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
pattern: "lifecycle_owner=pvc-owner-ref owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc"
save_as: inventory_after_restart_owner_ref_count
- action: assert_greater
actual: "{{ inventory_after_restart_owner_ref_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/nested-ops-status-bundles.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: nested_ops_status_bundle_count
- action: assert_greater
actual: "{{ nested_ops_status_bundle_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "find /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volumes -name volume-status-summary.txt -exec grep -q '^durable_entry: .*latched=true .*operational=true' {} \\; -print | grep -q ."
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- action: exec
node: m02
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain"
name: "remote-phases"
ignore_error: true
@@ -1,120 +0,0 @@
# Runner-native RF=1 durable restart component gate.
#
# Goal:
# Pin the cheap contracts behind csi-rf1-durable-restart-chain without
# launching k3s: restart wrapper shape, generated hostPath/status manifests,
# master frontend status projection, and durable status endpoint lineage.
# The full csi-rf1-durable-restart-chain remains the end-to-end proof for
# pod restart, reattach timing, and mounted data continuity.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/csi-rf1-durable-restart-component-gate.yaml
name: csi-rf1-durable-restart-component-gate
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build"
- name: pin_build
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.status"
- name: restart_component_tests
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -json -run \"^(TestCSIRF1DurableRestartScripts_PinBlockvolumeRestartContract|TestG15d_K8sRenderer_CanUseHostPathStateVolume|TestG15d_K8sRenderer_DurableHostPathPreservesOwnerRefAndStatus|TestG15d_K8sRenderer_CanOptIntoBlockVolumeStatusEndpoint|TestStatusFrontendsForAssignedLine_ReturnsObservedFrontendFacts|TestStatusServer_DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage)$\" ./internal/testops ./core/host/master ./core/host/volume ./core/launcher | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestCSIRF1DurableRestartScripts_PinBlockvolumeRestartContract\""
save_as: restart_wrapper_shape_count
- action: assert_greater
actual: "{{ restart_wrapper_shape_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_CanUseHostPathStateVolume\""
save_as: hostpath_render_count
- action: assert_greater
actual: "{{ hostpath_render_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_DurableHostPathPreservesOwnerRefAndStatus\""
save_as: hostpath_owner_ref_status_count
- action: assert_greater
actual: "{{ hostpath_owner_ref_status_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_CanOptIntoBlockVolumeStatusEndpoint\""
save_as: status_render_count
- action: assert_greater
actual: "{{ status_render_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusFrontendsForAssignedLine_ReturnsObservedFrontendFacts\""
save_as: master_frontend_projection_count
- action: assert_greater
actual: "{{ master_frontend_projection_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage\""
save_as: durable_status_lineage_count
- action: assert_greater
actual: "{{ durable_status_lineage_count }}"
threshold: "0"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component"
name: "remote-phases"
ignore_error: true
@@ -1,140 +0,0 @@
# Runner-native RF=1 durable restart partial-state chain.
#
# Goal:
# Prove that a controlled post-restart blockvolume outage produces an
# actionable inventory bundle instead of a silent reader timeout.
name: csi-rf1-durable-restart-failure-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: pin_image_id_count
- action: assert_greater
actual: "{{ pin_image_id_count }}"
threshold: "0"
- name: durable_hostpath_unwritable
actions:
- action: exec
node: m02
timeout: 12m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/proc/sw-block-testops-{{ run_id }} SW_BLOCK_COLLECT_INVENTORY_ON_FAILURE=1 bash scripts/run-k8s-blockvolume-restart.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/exit_code.txt; test \"$rc\" -ne 0'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/run.log"
pattern: "launcher_state_hostpath=/proc/sw-block-testops-{{ run_id }}"
save_as: bad_hostpath_count
- action: assert_greater
actual: "{{ bad_hostpath_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/exit_code.txt"
pattern: "^[1-9][0-9]*$"
save_as: failed_exit_count
- action: assert_greater
actual: "{{ failed_exit_count }}"
threshold: "0"
- name: failure_bundle_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
pattern: "^inventory_status: unhealthy$"
save_as: inventory_unhealthy_count
- action: assert_greater
actual: "{{ inventory_unhealthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
pattern: "pvc=sw-block-demo-pvc"
save_as: pvc_row_count
- action: assert_greater
actual: "{{ pvc_row_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
pattern: "generated_deployment_missing\\|observed_replicas=0 desired_replicas=1\\|replica_degraded=r1 status=unhealthy\\|ops_status=unhealthy"
save_as: actionable_issue_count
- action: assert_greater
actual: "{{ actionable_issue_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/ops-inventory-bundle.json"
pattern: "\"command\": \"sw-block ops inventory\""
save_as: inventory_bundle_count
- action: assert_greater
actual: "{{ inventory_bundle_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
pattern: "collection_error: ops_status:"
save_as: collection_error_count
- action: assert_greater
actual: "{{ collection_error_count }}"
threshold: "0"
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure"
name: "remote-phases"
ignore_error: true
@@ -1,97 +0,0 @@
name: data-plane-address-capability-chain
timeout: 10m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: run_gate
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address bash scripts/run-phase121-data-plane-address-capability-gate.sh {{ product_root }}"
- name: assert_summary
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^phase121_data_plane_address_capability_status=ok$"
save_as: phase121_status_ok
- action: assert_greater
actual: "{{ phase121_status_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^management_ip_m01=192\\.168\\.1\\.181$"
save_as: management_ip_recorded
- action: assert_greater
actual: "{{ management_ip_recorded }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^publish_target_ip_m01=10\\.0\\.0\\.181$"
save_as: data_plane_ip_recorded
- action: assert_greater
actual: "{{ data_plane_ip_recorded }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^publish_target_network_class=100gbe_tcp$"
save_as: network_class_recorded
- action: assert_greater
actual: "{{ network_class_recorded }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^frontend_transport=tcp$"
save_as: tcp_transport
- action: assert_greater
actual: "{{ tcp_transport }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^nvme_rdma_supported=false$"
save_as: rdma_not_supported
- action: assert_greater
actual: "{{ rdma_not_supported }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^internal_ip_not_reused_as_performance_target=true$"
save_as: internal_ip_not_reused
- action: assert_greater
actual: "{{ internal_ip_not_reused }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: cleanup_ok
- action: assert_greater
actual: "{{ cleanup_ok }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address"
name: "remote-phases"
ignore_error: true
@@ -1,115 +0,0 @@
# Runner-native Phase 79 gate: the failback executor can call the
# authority-owned runtime adapter. Execution remains explicit-policy gated, and
# stale expected-current evidence blocks the call-site without a false failback.
name: failback-authority-callsite-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_authority_callsite_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite bash scripts/run-phase79-failback-authority-callsite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^phase79_failback_authority_callsite_status=ok$"
save_as: phase79_ok
- action: assert_greater
actual: "{{ phase79_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^authority_runtime_adapter_invoked_by_executor=true$"
save_as: adapter_invoked
- action: assert_greater
actual: "{{ adapter_invoked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^publisher_authority_line_advanced=true$"
save_as: publisher_advanced
- action: assert_greater
actual: "{{ publisher_advanced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^stale_expected_current_blocks_callsite=true$"
save_as: stale_guard
- action: assert_greater
actual: "{{ stale_guard }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^execution_policy_still_required=true$"
save_as: policy_gate
- action: assert_greater
actual: "{{ policy_gate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^failed_back_status_written=true$"
save_as: failed_back_status
- action: assert_greater
actual: "{{ failed_back_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^runtime_failure_no_false_failback=true$"
save_as: no_false_failback
- action: assert_greater
actual: "{{ no_false_failback }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite"
name: "remote-phases"
ignore_error: true
@@ -1,125 +0,0 @@
# Runner-native Phase 78 gate: failback has a first authority-owned runtime
# seam. It mints authority reassignment through Publisher.apply only after
# expected-current and terminal-evidence guards pass. Default behavior remains
# disabled and non-mutating.
name: failback-authority-runtime-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_authority_runtime_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime bash scripts/run-phase78-failback-authority-runtime-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^phase78_failback_authority_runtime_status=ok$"
save_as: phase78_ok
- action: assert_greater
actual: "{{ phase78_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^authority_failback_reassign_minted=true$"
save_as: reassign_minted
- action: assert_greater
actual: "{{ reassign_minted }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^stale_expected_current_rejected=true$"
save_as: stale_guard
- action: assert_greater
actual: "{{ stale_guard }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^terminal_preconditions_required=true$"
save_as: terminal_guard
- action: assert_greater
actual: "{{ terminal_guard }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^failback_target_endpoint_fields=true$"
save_as: endpoint_fields
- action: assert_greater
actual: "{{ endpoint_fields }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^failback_target_expected_current_fields=true$"
save_as: expected_current_fields
- action: assert_greater
actual: "{{ expected_current_fields }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^executable_failback_requires_authority_endpoint=true$"
save_as: executable_requires_endpoint
- action: assert_greater
actual: "{{ executable_requires_endpoint }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^explicit_runtime_authority_mutation_allowed=true$"
save_as: authority_mutation
- action: assert_greater
actual: "{{ authority_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime"
name: "remote-phases"
ignore_error: true
@@ -1,106 +0,0 @@
# Runner-native Phase 83 gate: Helm chart wiring for the failback gRPC
# runtime transport. The default chart remains non-mutating; explicit values
# render the blockmaster RPC flag plus executor execution/gRPC flags.
name: failback-chart-runtime-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_chart_runtime_gate
actions:
- action: exec
node: m02
timeout: 5m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime bash scripts/run-phase83-failback-chart-runtime-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^phase83_failback_chart_runtime_status=ok$"
save_as: phase83_ok
- action: assert_greater
actual: "{{ phase83_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^default_omits_failback_runtime_rpc=true$"
save_as: default_rpc_off
- action: assert_greater
actual: "{{ default_rpc_off }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^enabled_renders_failback_runtime_rpc=true$"
save_as: enabled_rpc
- action: assert_greater
actual: "{{ enabled_rpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^enabled_renders_failback_grpc_addr=true$"
save_as: enabled_grpc
- action: assert_greater
actual: "{{ enabled_grpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^rejects_execution_with_dry_run=true$"
save_as: rejects_dryrun
- action: assert_greater
actual: "{{ rejects_dryrun }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^rejects_execution_without_policy=true$"
save_as: rejects_policy
- action: assert_greater
actual: "{{ rejects_policy }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^rejects_ambiguous_runtime_transports=true$"
save_as: rejects_ambiguous
- action: assert_greater
actual: "{{ rejects_ambiguous }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
pattern: "^chart_default_remains_non_mutating=true$"
save_as: default_non_mutating
- action: assert_greater
actual: "{{ default_non_mutating }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime"
name: "remote-phases"
ignore_error: true
@@ -1,88 +0,0 @@
# Runner-native Phase 94 gate: full opt-in failback suite renders coherently and
# the executor can call a real blockmaster FailbackService in local test.
# This is not a live Kubernetes install claim.
name: failback-deployed-grpc-smoke-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_deployed_grpc_smoke_gate
actions:
- action: exec
node: m02
timeout: 5m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke bash scripts/run-phase94-failback-deployed-grpc-smoke-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^phase94_failback_deployed_grpc_smoke_status=ok$"
save_as: phase94_ok
- action: assert_greater
actual: "{{ phase94_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^enabled_renders_failback_runtime_rpc=true$"
save_as: runtime_rpc
- action: assert_greater
actual: "{{ runtime_rpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^enabled_target_owner_activates_targets=true$"
save_as: target_activation
- action: assert_greater
actual: "{{ target_activation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^enabled_executor_grpc_runtime=true$"
save_as: executor_grpc
- action: assert_greater
actual: "{{ executor_grpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^executor_grpc_uses_real_master_service=true$"
save_as: real_master_grpc
- action: assert_greater
actual: "{{ real_master_grpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
pattern: "^live_kubernetes_install_claimed=false$"
save_as: no_live_install_claim
- action: assert_greater
actual: "{{ no_live_install_claim }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke"
name: "remote-phases"
ignore_error: true
@@ -1,106 +0,0 @@
# Runner-native Phase 88 gate: returned-replica failback can be packaged as a
# deployable component suite. This is still a chart/RBAC gate, not a live
# authority-mutation claim.
name: failback-deployed-suite-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_deployed_suite_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite bash scripts/run-phase88-failback-deployed-suite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^phase88_failback_deployed_suite_status=ok$"
save_as: phase88_ok
- action: assert_greater
actual: "{{ phase88_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^default_omits_failback_target_owner=true$"
save_as: target_default_off
- action: assert_greater
actual: "{{ target_default_off }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^enabled_renders_failback_target_owner=true$"
save_as: target_owner_enabled
- action: assert_greater
actual: "{{ target_owner_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^enabled_renders_failback_executor=true$"
save_as: executor_enabled
- action: assert_greater
actual: "{{ executor_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^values_schema_covers_failback_suite=true$"
save_as: schema_covers_suite
- action: assert_greater
actual: "{{ schema_covers_suite }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^target_owner_rbac_create_targets_only=true$"
save_as: target_owner_rbac
- action: assert_greater
actual: "{{ target_owner_rbac }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^executor_rbac_status_only=true$"
save_as: executor_rbac
- action: assert_greater
actual: "{{ executor_rbac }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
pattern: "^automatic_failback_claimed=false$"
save_as: no_auto_claim
- action: assert_greater
actual: "{{ no_auto_claim }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite"
name: "remote-phases"
ignore_error: true
@@ -1,60 +0,0 @@
# Runner-native Phase 87 gate: docs agree that returned-replica failback
# runtime is opt-in/source-gated and automatic deployed failback is not claimed.
name: failback-docs-alignment-chain
timeout: 4m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_docs_alignment
actions:
- action: exec
node: m02
timeout: 3m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment bash scripts/run-phase87-failback-docs-alignment-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
pattern: "^phase87_failback_docs_alignment_status=ok$"
save_as: phase87_ok
- action: assert_greater
actual: "{{ phase87_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
pattern: "^automatic_failback_not_claimed=true$"
save_as: no_auto
- action: assert_greater
actual: "{{ no_auto }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
pattern: "^frontend_publication_after_failback_not_claimed=true$"
save_as: no_publication
- action: assert_greater
actual: "{{ no_publication }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment"
name: "remote-phases"
ignore_error: true
@@ -1,115 +0,0 @@
# Runner-native Phase 76 gate: SwBlockReplicaFailback executor writes
# disabled/blocked status only. It does not execute failback, advance authority,
# swap publish targets, publish frontend paths, or mutate storage.
name: failback-executor-boundary-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_executor_boundary_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary bash scripts/run-phase76-failback-executor-boundary-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^phase76_failback_executor_boundary_status=ok$"
save_as: phase76_ok
- action: assert_greater
actual: "{{ phase76_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^failback_executor_writes_disabled_status=true$"
save_as: writes_disabled
- action: assert_greater
actual: "{{ writes_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^failback_executor_dry_run_no_status_write=true$"
save_as: dry_run_no_write
- action: assert_greater
actual: "{{ dry_run_no_write }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^kubernetes_writer_failback_status_subresource=true$"
save_as: status_subresource
- action: assert_greater
actual: "{{ status_subresource }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^failback_executor_rbac_status_only=true$"
save_as: rbac_status_only
- action: assert_greater
actual: "{{ rbac_status_only }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempt
- action: assert_greater
actual: "{{ no_failback_attempt }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^authority_mutation_allowed=false$"
save_as: no_authority_mutation
- action: assert_greater
actual: "{{ no_authority_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary"
name: "remote-phases"
ignore_error: true
@@ -1,115 +0,0 @@
# Runner-native Phase 82 gate: failback executor can use the blockmaster
# FailbackService gRPC runtime transport, still behind explicit execution
# policy. HTTP runtime remains supported; HTTP and gRPC are mutually exclusive.
name: failback-executor-grpc-runtime-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_executor_grpc_runtime_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime bash scripts/run-phase82-failback-executor-grpc-runtime-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^phase82_failback_executor_grpc_runtime_status=ok$"
save_as: phase82_ok
- action: assert_greater
actual: "{{ phase82_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^grpc_runtime_calls_failback_service=true$"
save_as: grpc_calls_service
- action: assert_greater
actual: "{{ grpc_calls_service }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^cmd_grpc_runtime_writes_failed_back_status=true$"
save_as: grpc_status
- action: assert_greater
actual: "{{ grpc_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^cmd_grpc_runtime_requires_enable=true$"
save_as: requires_enable
- action: assert_greater
actual: "{{ requires_enable }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^cmd_rejects_ambiguous_runtime_transports=true$"
save_as: ambiguous_rejected
- action: assert_greater
actual: "{{ ambiguous_rejected }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^cmd_http_runtime_still_supported=true$"
save_as: http_still_supported
- action: assert_greater
actual: "{{ http_still_supported }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^execution_policy_still_required=true$"
save_as: policy_gate
- action: assert_greater
actual: "{{ policy_gate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime"
name: "remote-phases"
ignore_error: true
@@ -1,97 +0,0 @@
# Runner-native Phase 85 gate: failback executor policy safety. Explicit
# execution flags do not cause runtime calls unless a valid executable target
# exists.
name: failback-executor-policy-safety-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_executor_policy_safety
actions:
- action: exec
node: m02
timeout: 5m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety bash scripts/run-phase85-failback-executor-policy-safety-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^phase85_failback_executor_policy_safety_status=ok$"
save_as: phase85_ok
- action: assert_greater
actual: "{{ phase85_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^no_targets_no_runtime_call=true$"
save_as: no_targets
- action: assert_greater
actual: "{{ no_targets }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^invalid_target_no_runtime_call=true$"
save_as: invalid_target
- action: assert_greater
actual: "{{ invalid_target }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^execution_flags_alone_insufficient=true$"
save_as: flags_insufficient
- action: assert_greater
actual: "{{ flags_insufficient }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^runtime_requires_valid_target=true$"
save_as: requires_valid
- action: assert_greater
actual: "{{ requires_valid }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage
- action: assert_greater
actual: "{{ no_storage }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety"
name: "remote-phases"
ignore_error: true
@@ -1,97 +0,0 @@
# Runner-native Phase 96 gate: terminal SwBlockReplicaFailback evidence creates
# a disabled SwBlockFrontendPublication target. This is not a frontend
# publication execution or data-path claim.
name: failback-frontend-publication-target-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_frontend_publication_target_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target bash scripts/run-phase96-failback-frontend-publication-target-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^phase96_failback_frontend_publication_target_status=ok$"
save_as: phase96_ok
- action: assert_greater
actual: "{{ phase96_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^terminal_failed_back_creates_frontend_publication_target=true$"
save_as: target_created
- action: assert_greater
actual: "{{ target_created }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^non_terminal_failback_rejected=true$"
save_as: rejects_non_terminal
- action: assert_greater
actual: "{{ rejects_non_terminal }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^executor_accepts_failback_target_as_disabled=true$"
save_as: executor_disabled
- action: assert_greater
actual: "{{ executor_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_publication_attempts
- action: assert_greater
actual: "{{ no_publication_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempts
- action: assert_greater
actual: "{{ no_failback_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 98 close gate: deployed failback, product-owned frontend
# publication runtime confirmation, post-publication workload I/O, and cleanup.
name: failback-frontend-workload-close-chain
timeout: 35m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_frontend_workload_close_gate
actions:
- action: exec
node: m02
timeout: 34m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close bash scripts/run-phase98-failback-frontend-workload-close-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^phase98_failback_frontend_workload_close_status=ok$"
save_as: phase98_ok
- action: assert_greater
actual: "{{ phase98_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^executor_status_failed_back=true$"
save_as: failback_done
- action: assert_greater
actual: "{{ failback_done }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^frontend_published=true$"
save_as: frontend_published
- action: assert_greater
actual: "{{ frontend_published }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^frontend_publication_failback_started=false$"
save_as: no_second_failback
- action: assert_greater
actual: "{{ no_second_failback }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^post_failback_publication_writer_verified=true$"
save_as: post_writer
- action: assert_greater
actual: "{{ post_writer }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^post_failback_publication_reader_verified=true$"
save_as: post_reader
- action: assert_greater
actual: "{{ post_reader }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: cleanup_ok
- action: assert_greater
actual: "{{ cleanup_ok }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close"
name: "remote-phases"
ignore_error: true
@@ -1,87 +0,0 @@
# Runner-native Phase 86 gate: an explicit gRPC failback runtime address is
# sufficient; the target does not need the legacy HTTP runtimeEndpoint field.
name: failback-grpc-runtime-endpoint-decoupling-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_grpc_runtime_endpoint_decoupling
actions:
- action: exec
node: m02
timeout: 5m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling bash scripts/run-phase86-failback-grpc-runtime-endpoint-decoupling-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^phase86_failback_grpc_runtime_endpoint_decoupling_status=ok$"
save_as: phase86_ok
- action: assert_greater
actual: "{{ phase86_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^grpc_runtime_does_not_require_target_runtime_endpoint=true$"
save_as: grpc_no_endpoint
- action: assert_greater
actual: "{{ grpc_no_endpoint }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^legacy_http_runtime_endpoint_still_supported=true$"
save_as: http_supported
- action: assert_greater
actual: "{{ http_supported }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^real_master_grpc_service_without_target_endpoint=true$"
save_as: real_master
- action: assert_greater
actual: "{{ real_master }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage
- action: assert_greater
actual: "{{ no_storage }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling"
name: "remote-phases"
ignore_error: true
@@ -1,79 +0,0 @@
# Runner-native Phase 93 gate: multi-volume target-owner -> executor handoff
# isolation. Runtime requests must not mix expected-current authority or target
# addresses across volumes.
name: failback-handoff-isolation-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_handoff_isolation_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation bash scripts/run-phase93-failback-handoff-isolation-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
pattern: "^phase93_failback_handoff_isolation_status=ok$"
save_as: phase93_ok
- action: assert_greater
actual: "{{ phase93_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
pattern: "^multi_volume_target_create_count=2$"
save_as: target_count
- action: assert_greater
actual: "{{ target_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
pattern: "^multi_volume_runtime_request_count=2$"
save_as: request_count
- action: assert_greater
actual: "{{ request_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
pattern: "^cross_volume_expected_current_mixup=false$"
save_as: no_expected_current_mixup
- action: assert_greater
actual: "{{ no_expected_current_mixup }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
pattern: "^cross_volume_target_addr_mixup=false$"
save_as: no_target_addr_mixup
- action: assert_greater
actual: "{{ no_target_addr_mixup }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 84 gate: local integrated smoke for failback executor ->
# gRPC runtime -> real blockmaster FailbackService -> master Publisher.
name: failback-integrated-grpc-smoke-chain
timeout: 6m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_integrated_grpc_smoke
actions:
- action: exec
node: m02
timeout: 5m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc bash scripts/run-phase84-failback-integrated-grpc-smoke.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^phase84_failback_integrated_grpc_status=ok$"
save_as: phase84_ok
- action: assert_greater
actual: "{{ phase84_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^service_default_disabled_test=true$"
save_as: default_disabled
- action: assert_greater
actual: "{{ default_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^executor_grpc_uses_real_master_service=true$"
save_as: integrated
- action: assert_greater
actual: "{{ integrated }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^master_publisher_epoch_advanced=true$"
save_as: epoch_advanced
- action: assert_greater
actual: "{{ epoch_advanced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^publish_target_swapped_after_failback=true$"
save_as: target_swapped
- action: assert_greater
actual: "{{ target_swapped }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend
- action: assert_greater
actual: "{{ no_frontend }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage
- action: assert_greater
actual: "{{ no_storage }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc"
name: "remote-phases"
ignore_error: true
@@ -1,124 +0,0 @@
# Runner-native Phase 95 gate: install the failback target-owner/executor
# suite in k3s and drive one real blockmaster gRPC failback authority call
# from an in-cluster executor. This is not a frontend publication claim.
name: failback-live-deployed-suite-chain
timeout: 35m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_live_deployed_suite_gate
actions:
- action: exec
node: m02
timeout: 34m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite bash scripts/run-phase95-failback-live-deployed-suite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^phase95_failback_live_deployed_suite_status=ok$"
save_as: phase95_ok
- action: assert_greater
actual: "{{ phase95_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^helm_install=pass$"
save_as: helm_install_pass
- action: assert_greater
actual: "{{ helm_install_pass }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^first_volume_writer_reader=pass$"
save_as: first_volume_pass
- action: assert_greater
actual: "{{ first_volume_pass }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^failback_target_created=true$"
save_as: target_created
- action: assert_greater
actual: "{{ target_created }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^failback_executor_completed=true$"
save_as: executor_completed
- action: assert_greater
actual: "{{ executor_completed }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^executor_status_failed_back=true$"
save_as: failed_back
- action: assert_greater
actual: "{{ failed_back }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^master_publisher_epoch_advanced=true$"
save_as: epoch_advanced
- action: assert_greater
actual: "{{ epoch_advanced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^publish_target_swapped_after_failback=true$"
save_as: target_swapped
- action: assert_greater
actual: "{{ target_swapped }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^frontend_publication_after_failback_claimed=false$"
save_as: no_frontend_claim
- action: assert_greater
actual: "{{ no_frontend_claim }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: cleanup_ok
- action: assert_greater
actual: "{{ cleanup_ok }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite"
name: "remote-phases"
ignore_error: true
@@ -1,106 +0,0 @@
# Runner-native Phase 77 gate: failback has a typed runtime contract and
# explicit execution-policy gate. Default reconciliation remains disabled; a
# fake runtime can report terminal evidence only in tests.
name: failback-runtime-contract-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_runtime_contract_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract bash scripts/run-phase77-failback-runtime-contract-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^phase77_failback_runtime_contract_status=ok$"
save_as: phase77_ok
- action: assert_greater
actual: "{{ phase77_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^failback_execution_policy_gate=true$"
save_as: policy_gate
- action: assert_greater
actual: "{{ policy_gate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^failback_runtime_invoked_only_when_enabled=true$"
save_as: runtime_gated
- action: assert_greater
actual: "{{ runtime_gated }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^runtime_failure_no_false_failback=true$"
save_as: failure_no_false
- action: assert_greater
actual: "{{ failure_no_false }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^runtime_invalid_terminal_evidence_no_false_failback=true$"
save_as: invalid_no_false
- action: assert_greater
actual: "{{ invalid_no_false }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^http_runtime_contract_posts_request=true$"
save_as: http_contract
- action: assert_greater
actual: "{{ http_contract }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^target_writer_serializes_runtime_fields=true$"
save_as: writer_contract
- action: assert_greater
actual: "{{ writer_contract }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract"
name: "remote-phases"
ignore_error: true
@@ -1,115 +0,0 @@
# Runner-native Phase 81 gate: blockmaster has a FailbackService RPC that is
# registered but disabled by default. Enabling it is explicit and still requires
# expected-current + terminal evidence.
name: failback-service-rpc-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_service_rpc_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc bash scripts/run-phase81-failback-service-rpc-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^phase81_failback_service_rpc_status=ok$"
save_as: phase81_ok
- action: assert_greater
actual: "{{ phase81_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^failback_service_default_disabled=true$"
save_as: default_disabled
- action: assert_greater
actual: "{{ default_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^failback_runtime_rpc_flag_default_false=true$"
save_as: flag_default_false
- action: assert_greater
actual: "{{ flag_default_false }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^failback_runtime_rpc_flag_opt_in=true$"
save_as: flag_opt_in
- action: assert_greater
actual: "{{ flag_opt_in }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^failback_service_registered=true$"
save_as: service_registered
- action: assert_greater
actual: "{{ service_registered }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^enabled_failback_service_advances_publisher=true$"
save_as: enabled_advances
- action: assert_greater
actual: "{{ enabled_advances }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^public_rpc_enabled_by_default=false$"
save_as: public_rpc_default_off
- action: assert_greater
actual: "{{ public_rpc_default_off }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc"
name: "remote-phases"
ignore_error: true
@@ -1,88 +0,0 @@
# Runner-native Phase 91 gate: failback target activation is explicit,
# default-off, and requires both policy and runtime endpoint. The target owner
# may stamp enabled targets, but it does not call the runtime.
name: failback-target-activation-policy-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_target_activation_policy_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy bash scripts/run-phase91-failback-target-activation-policy-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^phase91_failback_target_activation_policy_status=ok$"
save_as: phase91_ok
- action: assert_greater
actual: "{{ phase91_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^activation_default_off=true$"
save_as: activation_default_off
- action: assert_greater
actual: "{{ activation_default_off }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^activation_policy_required=true$"
save_as: policy_required
- action: assert_greater
actual: "{{ policy_required }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^activation_runtime_endpoint_required=true$"
save_as: runtime_required
- action: assert_greater
actual: "{{ runtime_required }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^activated_target_failback_decision=enabled$"
save_as: target_enabled
- action: assert_greater
actual: "{{ target_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
pattern: "^failback_runtime_call_attempted=false$"
save_as: no_runtime_call
- action: assert_greater
actual: "{{ no_runtime_call }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy"
name: "remote-phases"
ignore_error: true
@@ -1,88 +0,0 @@
# Runner-native Phase 90 gate: failback target owner consumes current
# SwBlockVolume.status authority facts before creating a failback target.
# This does not execute failback or publish a frontend.
name: failback-target-authority-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_target_authority_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority bash scripts/run-phase90-failback-target-authority-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^phase90_failback_target_authority_status=ok$"
save_as: phase90_ok
- action: assert_greater
actual: "{{ phase90_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^expected_current_replica_from_swblockvolume_status=true$"
save_as: expected_replica_from_status
- action: assert_greater
actual: "{{ expected_replica_from_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^expected_current_epoch_from_swblockvolume_status=true$"
save_as: expected_epoch_from_status
- action: assert_greater
actual: "{{ expected_epoch_from_status }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^missing_current_authority_target_create_count=0$"
save_as: missing_authority_no_target
- action: assert_greater
actual: "{{ missing_authority_no_target }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^created_target_failback_decision=disabled$"
save_as: target_disabled
- action: assert_greater
actual: "{{ target_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
pattern: "^failback_runtime_call_attempted=false$"
save_as: no_runtime_call
- action: assert_greater
actual: "{{ no_runtime_call }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority"
name: "remote-phases"
ignore_error: true
@@ -1,88 +0,0 @@
# Runner-native Phase 92 gate: target owner creates an enabled failback target,
# executor consumes it through a fake/local runtime, and expected-current
# authority facts reach the runtime request.
name: failback-target-executor-handoff-chain
timeout: 5m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_target_executor_handoff_gate
actions:
- action: exec
node: m02
timeout: 4m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff bash scripts/run-phase92-failback-target-executor-handoff-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^phase92_failback_target_executor_handoff_status=ok$"
save_as: phase92_ok
- action: assert_greater
actual: "{{ phase92_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^target_owner_created_enabled_target=true$"
save_as: owner_created
- action: assert_greater
actual: "{{ owner_created }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^executor_consumed_target=true$"
save_as: executor_consumed
- action: assert_greater
actual: "{{ executor_consumed }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^runtime_request_expected_current_replica=r2$"
save_as: expected_replica
- action: assert_greater
actual: "{{ expected_replica }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^runtime_request_expected_current_epoch=7$"
save_as: expected_epoch
- action: assert_greater
actual: "{{ expected_epoch }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
pattern: "^frontend_publication_after_failback_claimed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff"
name: "remote-phases"
ignore_error: true
@@ -1,116 +0,0 @@
# Runner-native Phase 75 gate: returned-replica failback can create a
# failback target handoff CR only after terminal evidence is present. The owner
# remains disabled by default, dry-run by default, and has no status/finalizer,
# storage, authority, or frontend publication mutation power.
name: failback-target-owner-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: failback_target_owner_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner bash scripts/run-phase75-failback-target-owner-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^phase75_failback_target_owner_status=ok$"
save_as: phase75_ok
- action: assert_greater
actual: "{{ phase75_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_target_owner_creates_target=true$"
save_as: creates_target
- action: assert_greater
actual: "{{ creates_target }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_target_owner_dry_run_no_create=true$"
save_as: dry_run_no_create
- action: assert_greater
actual: "{{ dry_run_no_create }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_target_owner_requires_terminal_evidence=true$"
save_as: terminal_evidence_required
- action: assert_greater
actual: "{{ terminal_evidence_required }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_target_crd_schema=true$"
save_as: target_crd_schema
- action: assert_greater
actual: "{{ target_crd_schema }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_target_owner_chart_boundary=true$"
save_as: chart_boundary
- action: assert_greater
actual: "{{ chart_boundary }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempt
- action: assert_greater
actual: "{{ no_failback_attempt }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 73 gate: returned-replica frontend publication requires
# a real authority/failback owner and must not be faked by runtime status.
name: frontend-publication-authority-owner-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_authority_owner_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner bash scripts/run-phase73-frontend-publication-authority-owner-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^phase73_frontend_publication_authority_owner_status=ok$"
save_as: phase73_ok
- action: assert_greater
actual: "{{ phase73_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^frontend_publication_requires_authority_owner=true$"
save_as: authority_owner_required
- action: assert_greater
actual: "{{ authority_owner_required }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^returned_replica_runtime_invocations=0$"
save_as: no_returned_runtime
- action: assert_greater
actual: "{{ no_returned_runtime }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^returned_replica_frontend_published=false$"
save_as: no_false_publish
- action: assert_greater
actual: "{{ no_false_publish }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^generic_runtime_seam_preserved=true$"
save_as: generic_seam_preserved
- action: assert_greater
actual: "{{ generic_seam_preserved }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_publication_attempts
- action: assert_greater
actual: "{{ no_publication_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempts
- action: assert_greater
actual: "{{ no_failback_attempts }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 70 gate: frontend publication executor status boundary.
name: frontend-publication-executor-boundary-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_executor_boundary_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary bash scripts/run-phase70-frontend-publication-executor-boundary-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^phase70_frontend_publication_executor_boundary_status=ok$"
save_as: phase70_ok
- action: assert_greater
actual: "{{ phase70_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^frontend_publication_executor_status_writes=true$"
save_as: status_writes
- action: assert_greater
actual: "{{ status_writes }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^frontend_publication_executor_status=blocked$"
save_as: status_blocked
- action: assert_greater
actual: "{{ status_blocked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^frontend_publication_executor_reason=frontend_publication_policy_disabled$"
save_as: reason_disabled
- action: assert_greater
actual: "{{ reason_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_frontend_attempts
- action: assert_greater
actual: "{{ no_frontend_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^frontend_published=false$"
save_as: no_frontend_published
- action: assert_greater
actual: "{{ no_frontend_published }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^failback_started=false$"
save_as: no_failback_started
- action: assert_greater
actual: "{{ no_failback_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary"
name: "remote-phases"
ignore_error: true
@@ -1,97 +0,0 @@
# Runner-native Phase 97 gate: explicit-policy frontend publication executor
# call-site after terminal failback evidence. This proves executor/runtime
# handoff only; workload-visible I/O remains a later gate.
name: frontend-publication-executor-callsite-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_executor_callsite_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite bash scripts/run-phase97-frontend-publication-executor-callsite-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^phase97_frontend_publication_executor_callsite_status=ok$"
save_as: phase97_ok
- action: assert_greater
actual: "{{ phase97_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^failback_target_runtime_invoked=true$"
save_as: runtime_invoked
- action: assert_greater
actual: "{{ runtime_invoked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^frontend_publication_attempts=1$"
save_as: publication_attempt
- action: assert_greater
actual: "{{ publication_attempt }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^frontend_published=true$"
save_as: frontend_published
- action: assert_greater
actual: "{{ frontend_published }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempts
- action: assert_greater
actual: "{{ no_failback_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^failback_started=false$"
save_as: no_failback_started
- action: assert_greater
actual: "{{ no_failback_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite"
name: "remote-phases"
ignore_error: true
@@ -1,167 +0,0 @@
# Runner-native Phase 71 gate: frontend publication executor live API boundary.
name: frontend-publication-live-api-boundary-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_live_api_boundary_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary bash scripts/run-phase71-frontend-publication-live-api-boundary-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^phase71_frontend_publication_live_api_boundary_status=ok$"
save_as: phase71_ok
- action: assert_greater
actual: "{{ phase71_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^executor_status_patch_succeeded=true$"
save_as: status_patch
- action: assert_greater
actual: "{{ status_patch }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_executor_status_writes=true$"
save_as: status_writes
- action: assert_greater
actual: "{{ status_writes }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_executor_status=blocked$"
save_as: status_blocked
- action: assert_greater
actual: "{{ status_blocked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_executor_reason=frontend_publication_policy_disabled$"
save_as: reason_disabled
- action: assert_greater
actual: "{{ reason_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_executor_status_mutation_allowed=true$"
save_as: status_mutation
- action: assert_greater
actual: "{{ status_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_mutation_allowed=false$"
save_as: frontend_mutation_denied
- action: assert_greater
actual: "{{ frontend_mutation_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_published=false$"
save_as: no_frontend_published
- action: assert_greater
actual: "{{ no_frontend_published }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^failback_started=false$"
save_as: no_failback_started
- action: assert_greater
actual: "{{ no_failback_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^frontend_publication_executor_rbac_status_only=true$"
save_as: rbac_status_only
- action: assert_greater
actual: "{{ rbac_status_only }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^executor_spec_patch_allowed=false$"
save_as: spec_patch_denied
- action: assert_greater
actual: "{{ spec_patch_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^executor_label_patch_allowed=false$"
save_as: label_patch_denied
- action: assert_greater
actual: "{{ label_patch_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^executor_finalizers_endpoint_allowed=false$"
save_as: finalizers_denied
- action: assert_greater
actual: "{{ finalizers_denied }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
pattern: "^target_object_integrity_preserved=true$"
save_as: integrity_preserved
- action: assert_greater
actual: "{{ integrity_preserved }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary"
name: "remote-phases"
ignore_error: true
@@ -1,72 +0,0 @@
# Runner-native Phase 68 gate: ACK eligibility to frontend publication preflight.
name: frontend-publication-preflight-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_preflight_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight bash scripts/run-phase68-frontend-publication-preflight-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
pattern: "^phase68_frontend_publication_preflight_status=ok$"
save_as: phase68_ok
- action: assert_greater
actual: "{{ phase68_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
pattern: "^frontend_publication_decision_schema_locked=true$"
save_as: schema_locked
- action: assert_greater
actual: "{{ schema_locked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
pattern: "^frontend_publication_decision=disabled$"
save_as: decision_disabled
- action: assert_greater
actual: "{{ decision_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
pattern: "^frontend_publication_mutation_allowed=false$"
save_as: mutation_false
- action: assert_greater
actual: "{{ mutation_false }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_frontend_attempts
- action: assert_greater
actual: "{{ no_frontend_attempts }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight"
name: "remote-phases"
ignore_error: true
@@ -1,131 +0,0 @@
# Runner-native Phase 72 gate: frontend publication runtime contract.
name: frontend-publication-runtime-contract-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_runtime_contract_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract bash scripts/run-phase72-frontend-publication-runtime-contract-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^phase72_frontend_publication_runtime_contract_status=ok$"
save_as: phase72_ok
- action: assert_greater
actual: "{{ phase72_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_runtime_contract_schema_locked=true$"
save_as: schema_locked
- action: assert_greater
actual: "{{ schema_locked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_runtime_endpoint_field=true$"
save_as: endpoint_field
- action: assert_greater
actual: "{{ endpoint_field }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_execution_policy_gate=true$"
save_as: policy_gate
- action: assert_greater
actual: "{{ policy_gate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_runtime_invoked_only_when_enabled=true$"
save_as: runtime_invoked_only_when_enabled
- action: assert_greater
actual: "{{ runtime_invoked_only_when_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_runtime_failure_no_false_publish=true$"
save_as: no_false_publish
- action: assert_greater
actual: "{{ no_false_publish }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_runtime_invalid_terminal_evidence_no_false_publish=true$"
save_as: invalid_terminal_no_false_publish
- action: assert_greater
actual: "{{ invalid_terminal_no_false_publish }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_publication_attempts=1$"
save_as: one_frontend_attempt
- action: assert_greater
actual: "{{ one_frontend_attempt }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^frontend_published=true$"
save_as: frontend_published
- action: assert_greater
actual: "{{ frontend_published }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^failback_started=false$"
save_as: failback_not_started
- action: assert_greater
actual: "{{ failback_not_started }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract"
name: "remote-phases"
ignore_error: true
@@ -1,96 +0,0 @@
# Runner-native Phase 69 gate: frontend publication target contract.
name: frontend-publication-target-contract-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: frontend_publication_target_contract_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract bash scripts/run-phase69-frontend-publication-target-contract-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^phase69_frontend_publication_target_contract_status=ok$"
save_as: phase69_ok
- action: assert_greater
actual: "{{ phase69_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_target_schema_locked=true$"
save_as: schema_locked
- action: assert_greater
actual: "{{ schema_locked }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_target_owner_creates_target=true$"
save_as: creates_target
- action: assert_greater
actual: "{{ creates_target }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_target_owner_dry_run_no_create=true$"
save_as: dry_run_no_create
- action: assert_greater
actual: "{{ dry_run_no_create }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_target_owner_rejects_enabled_publication=true$"
save_as: rejects_enabled
- action: assert_greater
actual: "{{ rejects_enabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_target_owner_rbac_narrow=true$"
save_as: rbac_narrow
- action: assert_greater
actual: "{{ rbac_narrow }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^frontend_publication_attempts=0$"
save_as: no_frontend_attempts
- action: assert_greater
actual: "{{ no_frontend_attempts }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
pattern: "^failback_attempts=0$"
save_as: no_failback_attempts
- action: assert_greater
actual: "{{ no_failback_attempts }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract"
name: "remote-phases"
ignore_error: true
@@ -1,270 +0,0 @@
# Runner-native Phase 21 D3 Helm first-volume chain.
#
# Goal:
# Prove the PM/user Helm path:
# generate values.day1.yaml -> helm install -> first PVC ->
# writer checksum -> reader checksum -> read-only report -> helm uninstall.
#
# Lab prerequisite:
# helm must be installed on the runner node. k3s labs also need explicit
# KUBECONFIG because helm does not auto-load /etc/rancher/k3s/k3s.yaml the
# way the k3s-wrapped kubectl command does.
name: helm-first-volume-chain
timeout: 26m
env:
product_root: "/tmp/seaweed_block"
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-28a99ce4f644"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: generate_day1_values
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/helm-version.txt && cd {{ product_root }} && bash scripts/generate-helm-values-day1.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_HELM_VALUES_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
pattern: "^blockNodes:$"
save_as: block_nodes_count
- action: assert_greater
actual: "{{ block_nodes_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
pattern: "externalISCSI: true"
save_as: external_iscsi_count
- action: assert_greater
actual: "{{ external_iscsi_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
pattern: "enabled: true"
save_as: chap_enabled_count
- action: assert_greater
actual: "{{ chap_enabled_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml --wait --timeout 5m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-blockmaster.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-csi-controller.txt && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-csi-node.txt && helm status {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-status.txt && kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/kube-system-ready.txt && kubectl get sc sw-block-dynamic -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/storageclass.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-status.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/storageclass.txt"
pattern: "block.csi.seaweedfs.com"
save_as: storageclass_provider_count
- action: assert_greater
actual: "{{ storageclass_provider_count }}"
threshold: "0"
- name: first_volume_user_loop
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
env.SW_BLOCK_INSTALL_MODE: "helm"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
- name: first_volume_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^install_mode=helm$"
save_as: install_mode_count
- action: assert_greater
actual: "{{ install_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^helm_release={{ helm_release }}$"
save_as: helm_release_count
- action: assert_greater
actual: "{{ helm_release_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^image={{ sw_block_image }}$"
save_as: image_count
- action: assert_greater
actual: "{{ image_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^image_digest="
save_as: image_digest_count
- action: assert_greater
actual: "{{ image_digest_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^writer_verified=true$"
save_as: writer_verified_count
- action: assert_greater
actual: "{{ writer_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^reader_verified=true$"
save_as: reader_verified_count
- action: assert_greater
actual: "{{ reader_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/writer.log"
pattern: "/data/demo.bin: OK"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: basic_cleanup_count
- action: assert_greater
actual: "{{ basic_cleanup_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/index.html"
pattern: "<html"
save_as: report_html_count
- action: assert_greater
actual: "{{ report_html_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/cluster-evidence.json"
pattern: "\"volumes\""
save_as: report_cluster_count
- action: assert_greater
actual: "{{ report_cluster_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/timeline.jsonl"
pattern: "\"event_id\":\"master-"
save_as: report_timeline_count
- action: assert_greater
actual: "{{ report_timeline_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/summary.txt"
pattern: "^status=ok"
save_as: report_summary_count
- action: assert_greater
actual: "{{ report_summary_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -Eiq '<button[^>]*>(promote|repair|delete|rebuild|cleanup)|data-action=\"(promote|repair|delete|rebuild|cleanup)\"|href=\"[^\"]*/(promote|repair|delete|rebuild|cleanup)' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/index.html"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 6m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/kube-system-after-uninstall.txt 2>&1 || true"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,234 +0,0 @@
# Runner-native v0.3 pre-release gate: documented Go CLI Helm values path.
#
# Goal:
# Prove the literal user-facing path:
# go build ./cmd/sw-block
# -> sw-block ops generate-helm-values
# -> helm install
# -> first PVC writer/reader
# -> read-only report
# -> helm uninstall cleanup
#
# This exists because the older Helm gates used scripts/generate-helm-values-day1.sh
# and did not cover the documented Go CLI generator.
name: helm-first-volume-via-sw-block-cli-chain
timeout: 28m
env:
product_root: "/tmp/seaweed_block"
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-dc2972d0059b"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: build_sw_block_cli
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block.version.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block.version.txt"
pattern: "sw-block"
save_as: sw_block_version_count
- action: assert_greater
actual: "{{ sw_block_version_count }}"
threshold: "0"
- name: generate_day1_values_via_cli
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/helm-version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/generate.stdout.txt && ! grep -q '^ dataPort: 3260$' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
pattern: "dataPort: 19101"
save_as: data_port_19101_count
- action: assert_greater
actual: "{{ data_port_19101_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
pattern: "launcherReplicationAckFlag: false"
save_as: compat_ack_false_count
- action: assert_greater
actual: "{{ compat_ack_false_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: first_volume_user_loop
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
env.SW_BLOCK_INSTALL_MODE: "helm"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
- name: first_volume_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
pattern: "^writer_verified=true$"
save_as: writer_verified_count
- action: assert_greater
actual: "{{ writer_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
pattern: "^reader_verified=true$"
save_as: reader_verified_count
- action: assert_greater
actual: "{{ reader_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
pattern: "^status_report=status/report/index.html$"
save_as: report_html_count
- action: assert_greater
actual: "{{ report_html_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
pattern: "^operator_snapshot=status/report/operator-snapshot.json$"
save_as: operator_snapshot_summary_count
- action: assert_greater
actual: "{{ operator_snapshot_summary_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 1m
cmd: |
set -e;
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/status/report/dashboard-route;
mkdir -p "$out";
port=$(python3 - <<'PY'
import socket
s = socket.socket()
s.bind(("127.0.0.1", 0))
print(s.getsockname()[1])
s.close()
PY
);
echo "$port" > "$out/dashboard.port";
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ops dashboard --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app --listen 127.0.0.1:${port} > "$out/dashboard.stdout.txt" 2> "$out/dashboard.stderr.txt" &
pid=$!;
trap 'kill $pid >/dev/null 2>&1 || true; wait $pid >/dev/null 2>&1 || true' EXIT;
for i in $(seq 1 100); do
code=$(curl -s -o "$out/operator-snapshot.json" -w '%{http_code}' "http://127.0.0.1:${port}/operator-snapshot.json" || true);
if [ "$code" = "200" ] && python3 - "$out/operator-snapshot.json" <<'PY'
import json, sys
doc = json.load(open(sys.argv[1]))
if doc.get("read_only") is not True:
raise SystemExit(1)
if (doc.get("mutation") or {}).get("mutation_allowed") is not False:
raise SystemExit(1)
PY
then
exit 0;
fi;
sleep 0.2;
done;
echo "operator-snapshot route failed" >&2;
cat "$out/dashboard.stderr.txt" >&2 || true;
exit 1
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 6m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,181 +0,0 @@
# Runner-native Phase 26 D2 gate: Helm install / upgrade / rollback lifecycle.
#
# Goal:
# Prove the chart handles a narrow release lifecycle smoke:
# generate values
# -> helm install
# -> first PVC writer/reader, keep PVC
# -> helm upgrade with the same chart/values
# -> verify existing PVC data
# -> helm rollback to revision 1
# -> verify existing PVC data again
# -> helm uninstall and strict cleanup
name: helm-lifecycle-upgrade-rollback-chain
timeout: 32m
env:
product_root: "/tmp/seaweed_block"
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-dc2972d0059b"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/generate.stdout.txt && cd {{ product_root }} && bash scripts/verify-helm-release-hygiene.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/hygiene"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-install.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-history.after-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: first_volume_keep_pvc
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume"
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
env.SW_BLOCK_INSTALL_MODE: "helm-lifecycle"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- name: helm_upgrade_and_verify
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm upgrade {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-upgrade.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-history.after-upgrade.txt && bash scripts/verify-basic-app-existing-pvc.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade/existing-pvc-summary.txt"
pattern: "^existing_pvc_status=ok$"
save_as: after_upgrade_reader_ok_count
- action: assert_greater
actual: "{{ after_upgrade_reader_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-history.after-upgrade.txt"
pattern: "superseded"
save_as: helm_superseded_count
- action: assert_greater
actual: "{{ helm_superseded_count }}"
threshold: "0"
- name: helm_rollback_and_verify
actions:
- action: exec
node: m02
timeout: 10m
cmd: "helm rollback {{ helm_release }} 1 --namespace {{ helm_namespace }} --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-rollback.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-history.after-rollback.txt && cd {{ product_root }} && bash scripts/verify-basic-app-existing-pvc.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback/existing-pvc-summary.txt"
pattern: "^existing_pvc_status=ok$"
save_as: after_rollback_reader_ok_count
- action: assert_greater
actual: "{{ after_rollback_reader_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-history.after-rollback.txt"
pattern: "deployed"
save_as: helm_deployed_after_rollback_count
- action: assert_greater
actual: "{{ helm_deployed_after_rollback_count }}"
threshold: "0"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,172 +0,0 @@
# Runner-native Phase 26 D3 gate: multi-volume Day-1 smoke.
#
# Goal:
# Prove the Helm-installed StorageClass can handle a small multi-PVC user
# shape and that ops report/dashboard evidence distinguishes each volume.
name: helm-multi-volume-day1-chain
timeout: 34m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase26-d3"
sw_block_csi_image: "sw-block-csi:phase26-d3"
volume_count: "3"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
save_as: local_image_built_count
- action: assert_greater
actual: "{{ local_image_built_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/generate.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_user_loop
actions:
- action: exec
node: m02
timeout: 12m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "1"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
pattern: "^multi_volume_status=ok$"
save_as: multi_volume_ok_count
- action: assert_greater
actual: "{{ multi_volume_ok_count }}"
threshold: "0"
- name: multi_volume_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
pattern: "^writer_verified_count=3$"
save_as: writer_count_ok
- action: assert_greater
actual: "{{ writer_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
pattern: "^reader_verified_count=3$"
save_as: reader_count_ok
- action: assert_greater
actual: "{{ reader_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
pattern: "^managed_volume_count=3$"
save_as: managed_volume_count_ok
- action: assert_greater
actual: "{{ managed_volume_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/status/report/summary.txt"
pattern: "^volumes=3$"
save_as: report_volume_count_ok
- action: assert_greater
actual: "{{ report_volume_count_ok }}"
threshold: "0"
- action: exec
node: m02
timeout: 3m
cmd: "for i in $(seq 1 60); do out=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null); if [ -z \"$out\" ]; then exit 0; fi; sleep 2; done; echo \"timeout: launcher-rendered deployments still present\" >&2; kubectl -n default get deploy -l app=sw-blockvolume -o wide >&2; exit 1"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/helm-uninstall.txt || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,303 +0,0 @@
# Phase 27 D4: multi-volume RF=3 interleaved mounted failover.
#
# Pass = three RF=3 PVCs are mounted by long-running writer pods on the same
# kubelet, two target volumes have their current primaries stopped in one bounded window, the same
# writer pod UID verifies old data and writes new data through dm-multipath,
# non-target mounted workloads keep working, and cleanup is clean.
name: helm-multi-volume-rf3-interleaved-failover-chain
timeout: 52m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase27-d4"
sw_block_csi_image: "sw-block-csi:phase27-d4"
volume_count: "3"
target_volume_count: "2"
replication_factor: "3"
app_node: "m02"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 6m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --wait=true --timeout=180s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-mounted-writer-$i --ignore-not-found=true --wait=true --timeout=180s; kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=true --timeout=180s; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=true --timeout=180s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preclean/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preflight.txt 2>&1"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: host_multipath_prereq
actions:
- action: exec
node: m02
cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover; { echo stage2_protocol=iscsi-alua; command -v iscsiadm >/dev/null && echo command_iscsiadm=present; command -v multipath >/dev/null && echo command_multipath=present; command -v sg_rtpg >/dev/null && echo command_sg_rtpg=present; sudo modprobe iscsi_tcp; sudo modprobe dm_multipath; sudo modprobe scsi_dh_alua; test -d /sys/module/iscsi_tcp && echo module_iscsi_tcp=loaded; test -d /sys/module/dm_multipath && echo module_dm_multipath=loaded; test -d /sys/module/scsi_dh_alua && echo module_scsi_dh_alua=loaded; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/multipath-prereq.txt"
pattern: "multipath_prereq=pass"
save_as: multipath_prereq_count
- action: assert_greater
actual: "{{ multipath_prereq_count }}"
threshold: "0"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --stage2-multipath > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
pattern: "replicationFactor: 3"
save_as: rf3_in_values
- action: assert_greater
actual: "{{ rf3_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
pattern: "ackProfile: sync-quorum"
save_as: sync_quorum_in_values
- action: assert_greater
actual: "{{ sync_quorum_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
pattern: "enabled: true"
save_as: stage2_enabled_count
- action: assert_greater
actual: "{{ stage2_enabled_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
pattern: "launcherReplicationAckFlag: true"
save_as: ack_flag_in_values
- action: assert_greater
actual: "{{ ack_flag_in_values }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_interleaved_failover
actions:
- action: exec
node: m02
timeout: 34m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-mounted-failover.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_MULTI_VOLUME_FAILOVER_MODE: "interleaved"
env.SW_BLOCK_MULTI_VOLUME_TARGET_COUNT: "{{ target_volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_APP_NODE: "{{ app_node }}"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^multi_volume_interleaved_failover_status=ok$"
save_as: interleaved_failover_ok_count
- action: assert_greater
actual: "{{ interleaved_failover_ok_count }}"
threshold: "0"
- name: interleaved_failover_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^recovered_volume_count=2$"
save_as: recovered_count_ok
- action: assert_greater
actual: "{{ recovered_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^mounted_workload_checksum_passed_count=2$"
save_as: mounted_workload_ok
- action: assert_greater
actual: "{{ mounted_workload_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^failover_mode=interleaved$"
save_as: interleaved_mode_ok
- action: assert_greater
actual: "{{ interleaved_mode_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^target_volume_count=2$"
save_as: target_count_ok
- action: assert_greater
actual: "{{ target_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^untouched_volume_stable=true$"
save_as: untouched_stable_ok
- action: assert_greater
actual: "{{ untouched_stable_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^untouched_workload_ok=true$"
save_as: untouched_workload_ok
- action: assert_greater
actual: "{{ untouched_workload_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^pod_recreate_used=false$"
save_as: no_pod_recreate
- action: assert_greater
actual: "{{ no_pod_recreate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^cross_interference_observed=false$"
save_as: no_cross_interference
- action: assert_greater
actual: "{{ no_cross_interference }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/host/multipath.before.txt"
pattern: "hwhandler='1 alua'"
save_as: multipath_alua_count
- action: assert_greater
actual: "{{ multipath_alua_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/host/sg-rtpg.before.txt"
pattern: "asymmetric access state"
save_as: rtpg_before_count
- action: assert_greater
actual: "{{ rtpg_before_count }}"
threshold: "2"
- action: exec
node: m02
timeout: 2m
cmd: "for i in 1 2; do D=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/failover/volume-$i; S=$D/summary.txt; P=$D/stale-primary-probe.log; B=$D/rtpg-before-states.txt; A=$D/rtpg-after-states.txt; grep -q '^interleaved_fault=true$' \"$S\"; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^pod_recreate_used=false$' \"$S\"; grep -q '^data_check_after_failover=mounted_workload_checksum_passed$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^stale_primary_probe=direct_read$' \"$S\"; grep -q '^old_primary_stale_io_success_count=0$' \"$S\"; test -s \"$P\"; grep -q '^stale_primary_probe=direct_read$' \"$P\"; grep -q '^old_primary_stale_io_success_count=0$' \"$P\"; test -s \"$B\"; test -s \"$A\"; grep -q '^rtpg_before_old_primary_aas=0x00$' \"$S\"; grep -q '^rtpg_after_promoted_aas=0x00$' \"$S\"; grep -q '^rtpg_transition_verified=true$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done; grep -q '^non_target_workload_ok$' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/failover/untouched-volume-3.log"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --force --grace-period=0 --wait=false; for i in 1 2 3; do kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=false; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=false; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: exec
node: m02
timeout: 3m
cmd: "for _ in $(seq 1 60); do if ! sudo -n iscsiadm -m session 2>/dev/null | grep -q io.seaweedfs; then break; fi; sudo -n iscsiadm -m session 2>/dev/null | awk '/io.seaweedfs/ {print $3, $4}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" --logout || true; done; sleep 2; done; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,268 +0,0 @@
# Phase 27 D3: multi-volume RF=3 mounted transparent failover.
#
# Pass = three RF=3 PVCs are mounted by long-running writer pods on the same
# kubelet, each target volume's current primary is stopped in turn, the same
# writer pod UID verifies old data and writes new data through dm-multipath,
# non-target mounted workloads keep working, and cleanup is clean.
name: helm-multi-volume-rf3-mounted-failover-chain
timeout: 52m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase27-d3"
sw_block_csi_image: "sw-block-csi:phase27-d3"
volume_count: "3"
replication_factor: "3"
app_node: "m02"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 6m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --wait=true --timeout=180s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-mounted-writer-$i --ignore-not-found=true --wait=true --timeout=180s; kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=true --timeout=180s; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=true --timeout=180s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preclean/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preflight.txt 2>&1"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: host_multipath_prereq
actions:
- action: exec
node: m02
cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover; { echo stage2_protocol=iscsi-alua; command -v iscsiadm >/dev/null && echo command_iscsiadm=present; command -v multipath >/dev/null && echo command_multipath=present; command -v sg_rtpg >/dev/null && echo command_sg_rtpg=present; sudo modprobe iscsi_tcp; sudo modprobe dm_multipath; sudo modprobe scsi_dh_alua; test -d /sys/module/iscsi_tcp && echo module_iscsi_tcp=loaded; test -d /sys/module/dm_multipath && echo module_dm_multipath=loaded; test -d /sys/module/scsi_dh_alua && echo module_scsi_dh_alua=loaded; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/multipath-prereq.txt"
pattern: "multipath_prereq=pass"
save_as: multipath_prereq_count
- action: assert_greater
actual: "{{ multipath_prereq_count }}"
threshold: "0"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --stage2-multipath > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
pattern: "replicationFactor: 3"
save_as: rf3_in_values
- action: assert_greater
actual: "{{ rf3_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
pattern: "ackProfile: sync-quorum"
save_as: sync_quorum_in_values
- action: assert_greater
actual: "{{ sync_quorum_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
pattern: "enabled: true"
save_as: stage2_enabled_count
- action: assert_greater
actual: "{{ stage2_enabled_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
pattern: "launcherReplicationAckFlag: true"
save_as: ack_flag_in_values
- action: assert_greater
actual: "{{ ack_flag_in_values }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_mounted_failover
actions:
- action: exec
node: m02
timeout: 34m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-mounted-failover.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_MULTI_VOLUME_APP_NODE: "{{ app_node }}"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^multi_volume_mounted_failover_status=ok$"
save_as: mounted_failover_ok_count
- action: assert_greater
actual: "{{ mounted_failover_ok_count }}"
threshold: "0"
- name: mounted_failover_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^recovered_volume_count=3$"
save_as: recovered_count_ok
- action: assert_greater
actual: "{{ recovered_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^mounted_workload_checksum_passed_count=3$"
save_as: mounted_workload_ok
- action: assert_greater
actual: "{{ mounted_workload_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^pod_recreate_used=false$"
save_as: no_pod_recreate
- action: assert_greater
actual: "{{ no_pod_recreate }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
pattern: "^cross_interference_observed=false$"
save_as: no_cross_interference
- action: assert_greater
actual: "{{ no_cross_interference }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/host/multipath.before.txt"
pattern: "hwhandler='1 alua'"
save_as: multipath_alua_count
- action: assert_greater
actual: "{{ multipath_alua_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/host/sg-rtpg.before.txt"
pattern: "asymmetric access state"
save_as: rtpg_before_count
- action: assert_greater
actual: "{{ rtpg_before_count }}"
threshold: "2"
- action: exec
node: m02
timeout: 2m
cmd: "for i in 1 2 3; do D=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/failover/volume-$i; S=$D/summary.txt; P=$D/stale-primary-probe.log; B=$D/rtpg-before-states.txt; A=$D/rtpg-after-states.txt; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^pod_recreate_used=false$' \"$S\"; grep -q '^data_check_after_failover=mounted_workload_checksum_passed$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^stale_primary_probe=direct_read$' \"$S\"; grep -q '^old_primary_stale_io_success_count=0$' \"$S\"; test -s \"$P\"; grep -q '^stale_primary_probe=direct_read$' \"$P\"; grep -q '^old_primary_stale_io_success_count=0$' \"$P\"; test -s \"$B\"; test -s \"$A\"; grep -q '^rtpg_before_old_primary_aas=0x00$' \"$S\"; grep -q '^rtpg_after_promoted_aas=0x00$' \"$S\"; grep -q '^rtpg_transition_verified=true$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --force --grace-period=0 --wait=false; for i in 1 2 3; do kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=false; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=false; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: exec
node: m02
timeout: 3m
cmd: "for _ in $(seq 1 60); do if ! sudo -n iscsiadm -m session 2>/dev/null | grep -q io.seaweedfs; then break; fi; sudo -n iscsiadm -m session 2>/dev/null | awk '/io.seaweedfs/ {print $3, $4}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" --logout || true; done; sleep 2; done; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,205 +0,0 @@
# Phase 27 D1 spike: multi-volume Day-1 at RF=3, no fault injection.
#
# Goal:
# First signal on whether the v0.3.1 placement / port-assignment scheme can
# actually host N concurrent RF=3 volumes (N=3 PVCs => 9 blockvolume pods
# total, 3 per node on a 3-node lab). This is the lowest-bar readiness gate
# for the multi-volume HA independence track; it does NOT inject faults.
#
# Pass = 3 PVCs bind, 3 writers verify, 3 readers verify, report shows
# replication_factor=3 and three ManagedVolumes, cleanup is clean.
# Fail = first signal that the port / placement scheme needs more work before
# multi-volume HA gates can even be authored.
name: helm-multi-volume-rf3-readiness-chain
timeout: 34m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase27-rf3"
sw_block_csi_image: "sw-block-csi:phase27-rf3"
volume_count: "3"
replication_factor: "3"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3 && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
save_as: local_image_built_count
- action: assert_greater
actual: "{{ local_image_built_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/generate.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml"
pattern: "replicationFactor: 3"
save_as: rf3_in_values
- action: assert_greater
actual: "{{ rf3_in_values }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_user_loop
actions:
- action: exec
node: m02
timeout: 18m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "1"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
pattern: "^multi_volume_status=ok$"
save_as: multi_volume_ok_count
- action: assert_greater
actual: "{{ multi_volume_ok_count }}"
threshold: "0"
- name: multi_volume_rf3_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
pattern: "^replication_factor=3$"
save_as: rf3_in_summary
- action: assert_greater
actual: "{{ rf3_in_summary }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
pattern: "^writer_verified_count=3$"
save_as: writer_count_ok
- action: assert_greater
actual: "{{ writer_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
pattern: "^reader_verified_count=3$"
save_as: reader_count_ok
- action: assert_greater
actual: "{{ reader_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
pattern: "^managed_volume_count=3$"
save_as: managed_volume_count_ok
- action: assert_greater
actual: "{{ managed_volume_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/status/report/summary.txt"
pattern: "^volumes=3$"
save_as: report_volume_count_ok
- action: assert_greater
actual: "{{ report_volume_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/status/report/summary.txt"
pattern: "rf=3"
save_as: rf3_in_report
- action: assert_greater
actual: "{{ rf3_in_report }}"
threshold: "0"
- action: exec
node: m02
timeout: 3m
cmd: "for i in $(seq 1 60); do out=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null); if [ -z \"$out\" ]; then exit 0; fi; sleep 2; done; echo \"timeout: launcher-rendered deployments still present\" >&2; kubectl -n default get deploy -l app=sw-blockvolume -o wide >&2; exit 1"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/helm-uninstall.txt || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,174 +0,0 @@
# Phase 27 D2: multi-volume RF=3 CSI reattach recovery.
#
# Pass = three RF=3 PVCs are ready, then each volume's current primary is
# stopped in turn; only the target volume changes primary, a replacement
# reader verifies persisted data through CSI/pod recreate, and cleanup is
# clean.
name: helm-multi-volume-rf3-reattach-recovery-chain
timeout: 48m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase27-d2"
sw_block_csi_image: "sw-block-csi:phase27-d2"
volume_count: "3"
replication_factor: "3"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
pattern: "replicationFactor: 3"
save_as: rf3_in_values
- action: assert_greater
actual: "{{ rf3_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
pattern: "ackProfile: sync-quorum"
save_as: sync_quorum_in_values
- action: assert_greater
actual: "{{ sync_quorum_in_values }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
pattern: "launcherReplicationAckFlag: true"
save_as: ack_flag_in_values
- action: assert_greater
actual: "{{ ack_flag_in_values }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_reattach_recovery
actions:
- action: exec
node: m02
timeout: 26m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-reattach-recovery.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
pattern: "^multi_volume_reattach_status=ok$"
save_as: recovery_ok_count
- action: assert_greater
actual: "{{ recovery_ok_count }}"
threshold: "0"
- name: recovery_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
pattern: "^recovered_volume_count=3$"
save_as: recovered_count_ok
- action: assert_greater
actual: "{{ recovered_count_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
pattern: "^cross_interference_observed=false$"
save_as: no_cross_interference
- action: assert_greater
actual: "{{ no_cross_interference }}"
threshold: "0"
- action: exec
node: m02
timeout: 2m
cmd: "for i in 1 2 3; do S=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/failover/volume-$i/summary.txt; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^reader_verified=true$' \"$S\"; grep -q '^pod_recreate_used=true$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,212 +0,0 @@
# Phase 31 D5: multi-volume RF3 restart smoke.
#
# Goal:
# Prove a Helm-installed RF=3 sync-quorum stack with hostPath restart
# persistence can restart k3s/product and keep three independent PVCs readable
# without mixing per-volume authority or publish targets.
#
# Product boundary:
# Three PVCs, RF=3, sync-quorum, no injected primary failure. This is restart
# persistence smoke, not rebuild/failback or physical-host-loss recovery.
name: helm-multi-volume-rf3-restart-smoke-chain
timeout: 42m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase31-d5"
sw_block_csi_image: "sw-block-csi:phase31-d5"
volume_count: "3"
replication_factor: "3"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 6m
cmd: "sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/generate.stdout.txt"
pattern: "^restart_persistence_mode=hostpath$"
save_as: restart_mode_count
- action: assert_greater
actual: "{{ restart_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml"
pattern: "replicationFactor: 3"
save_as: rf3_values_count
- action: assert_greater
actual: "{{ rf3_values_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml"
pattern: "ackProfile: sync-quorum"
save_as: sync_quorum_values_count
- action: assert_greater
actual: "{{ sync_quorum_values_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && grep -q -- '--launcher-replication-ack=sync-quorum' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: multi_volume_before_restart
actions:
- action: exec
node: m02
timeout: 16m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "0"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/multi-volume-summary.txt"
pattern: "^writer_verified_count=3$"
save_as: writer_before_count
- action: assert_greater
actual: "{{ writer_before_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/multi-volume-summary.txt"
pattern: "^reader_verified_count=3$"
save_as: reader_before_count
- action: assert_greater
actual: "{{ reader_before_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/status/cluster-evidence.json"
pattern: "\"volumes\""
save_as: cluster_before_count
- action: assert_greater
actual: "{{ cluster_before_count }}"
threshold: "0"
- name: restart_k3s_and_compare_volumes
actions:
- action: exec
node: m02
timeout: 10m
cmd: "set -e; cp /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/status/cluster-evidence.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-before-restart.json; date -u > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/restart-start.txt; sudo -n systemctl restart k3s; for i in $(seq 1 180); do if sudo -n k3s kubectl get nodes >/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/nodes.wait.txt 2>&1; then break; fi; sleep 2; done; sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml; kubectl wait --for=condition=Ready node/m02 --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-node-ready.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-blockmaster.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-csi-controller.txt; kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-csi-node.txt; for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do kubectl -n default rollout status \"$d\" --timeout=300s; done > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-blockvolumes.txt; port=$(/usr/bin/python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n {{ helm_namespace }} port-forward deploy/sw-blockmaster ${port}:9333 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/blockmaster-port-forward.log 2>&1 & pf=$!; trap 'kill $pf >/dev/null 2>&1 || true; wait $pf >/dev/null 2>&1 || true' EXIT; for i in $(seq 1 60); do if (echo >/dev/tcp/127.0.0.1/$port) >/dev/null 2>&1; then break; fi; sleep 1; done; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops cluster --master-api 127.0.0.1:${port} --timeout 30s -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-after-restart.json; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops report --master-api 127.0.0.1:${port} --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/report > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/report.stdout.txt; python3 - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-before-restart.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-after-restart.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt <<'PY'\nimport json, sys\nbefore=json.load(open(sys.argv[1])); after=json.load(open(sys.argv[2])); out=sys.argv[3]\ndef by_id(doc):\n return {v.get('volume_id'): v for v in doc.get('volumes', []) if v.get('volume_id')}\nb=by_id(before); a=by_id(after)\nstatus='ok'; reasons=[]\nif len(b)!=3 or len(a)!=3:\n status='failed'; reasons.append(f'volume_count_before_{len(b)}_after_{len(a)}')\nfor vid, bv in b.items():\n av=a.get(vid)\n if not av:\n status='failed'; reasons.append(f'missing_{vid}'); continue\n for field in ('primary_replica','publish_target'):\n if bv.get(field) != av.get(field):\n status='failed'; reasons.append(f'{vid}_{field}_changed')\n be=int(bv.get('epoch') or bv.get('authority_epoch') or 0)\n ae=int(av.get('epoch') or av.get('authority_epoch') or 0)\n if ae < be:\n status='failed'; reasons.append(f'{vid}_epoch_rollback')\npublish=[v.get('publish_target') for v in a.values() if v.get('publish_target')]\nduplicate=len(publish)!=len(set(publish))\nif duplicate:\n status='failed'; reasons.append('duplicate_publish_target_for_distinct_volume')\nwith open(out,'w',encoding='utf-8') as f:\n f.write(f'multi_volume_restart_status={status}\\n')\n f.write(f'before_volume_count={len(b)}\\n')\n f.write(f'after_volume_count={len(a)}\\n')\n f.write('reader_verified_count=pending\\n')\n f.write(f'managed_volume_count={sum(1 for line in open(sys.argv[3].replace(\"multi-volume-restart-summary.txt\",\"report/summary.txt\"), encoding=\"utf-8\") if line.startswith(\"managed_volume=\"))}\\n')\n f.write(f'duplicate_publish_target_for_distinct_volume={str(duplicate).lower()}\\n')\n f.write(f'cross_volume_authority_mixup={\"true\" if status != \"ok\" else \"false\"}\\n')\n f.write(f'reason={\",\".join(reasons) if reasons else \"all_volumes_persisted\"}\\n')\nif status!='ok':\n raise SystemExit(','.join(reasons))\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
pattern: "^multi_volume_restart_status=ok$"
save_as: restart_status_ok_count
- action: assert_greater
actual: "{{ restart_status_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
pattern: "^managed_volume_count=3$"
save_as: managed_volume_after_count
- action: assert_greater
actual: "{{ managed_volume_after_count }}"
threshold: "0"
- name: readers_after_restart
actions:
- action: exec
node: m02
timeout: 14m
cmd: "set -e; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/manifests/reader-$i.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/apply-reader-$i.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-multi-reader-$i --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/wait-reader-$i.log; kubectl -n default logs sw-block-multi-reader-$i > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-$i.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-$i.log; done; count=$(grep -l '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-*.log | wc -l | tr -d ' '); echo \"reader_verified_count=$count\" >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt; test \"$count\" = \"3\""
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
pattern: "^reader_verified_count=3$"
save_as: reader_count_ok
- action: assert_greater
actual: "{{ reader_count_ok }}"
threshold: "0"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 9m
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/diagnostics; for n in $(seq 1 90); do kubectl get nodes >/dev/null 2>&1 && break; sleep 2; done; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=180s || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s || true; done; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=true --timeout=180s || true; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s || true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-rf3-restart-smoke"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart"
name: "remote-phases"
ignore_error: true
@@ -1,112 +0,0 @@
# Runner-native Phase 26 D1 gate: Helm release hygiene.
#
# Goal:
# Prove the chart is a repeatable release artifact before running heavier
# lifecycle gates:
# build sw-block CLI
# -> generate Day-1 values from the live cluster
# -> helm lint
# -> helm template
# -> helm package
# -> assert rendered release-critical resources exist
name: helm-release-hygiene-chain
timeout: 12m
env:
product_root: "/tmp/seaweed_block"
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-28a99ce4f644"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: exec
node: m02
timeout: 3m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- name: build_sw_block_cli
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block.version.txt"
- name: generate_day1_values
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/helm-version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/generate.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- name: helm_release_hygiene
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/verify-helm-release-hygiene.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/values.day1.yaml"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- name: helm_release_hygiene_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
pattern: "^helm_hygiene_status=ok$"
save_as: hygiene_ok_count
- action: assert_greater
actual: "{{ hygiene_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
pattern: "^rendered_storageclass_count=1$"
save_as: rendered_sc_count
- action: assert_greater
actual: "{{ rendered_sc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
pattern: "^rendered_csidriver_count=1$"
save_as: rendered_csidriver_count
- action: assert_greater
actual: "{{ rendered_csidriver_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
pattern: "^rendered_master_count=1$"
save_as: rendered_master_count
- action: assert_greater
actual: "{{ rendered_master_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 1m
cmd: "ls /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/*.tgz >/dev/null && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-template.yaml && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-lint.txt"
@@ -1,481 +0,0 @@
# Phase 31 D4: RF3 promotion state survives Kubernetes restart.
#
# Goal:
# Prove that after an RF=3 sync-quorum volume promotes a surviving replica,
# a k3s/product restart does not resurrect the old primary or roll authority
# back to the pre-promotion target.
#
# Product boundary:
# One PVC, RF=3, sync-quorum, CSI/pod recreate recovery after failover, then
# CSI/pod recreate after k3s restart. This is not backup/restore, returned
# replica rebuild/failback, or physical host loss.
name: helm-rf3-promotion-restart-persistence-chain
timeout: 44m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase31-d4"
sw_block_csi_image: "sw-block-csi:phase31-d4"
volume_count: "1"
replication_factor: "3"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 6m
cmd: "sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod sw-block-multi-writer-1 sw-block-multi-reader-1 sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=true --timeout=180s; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup; leftover=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null || true); if [ -n \"$leftover\" ]; then echo \"$leftover\" > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/pre-clean-blockvolume-leftover.txt; exit 3; fi"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/generate.stdout.txt"
pattern: "^restart_persistence_mode=hostpath$"
save_as: restart_mode_count
- action: assert_greater
actual: "{{ restart_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml"
pattern: "ackProfile: sync-quorum"
save_as: sync_quorum_values_count
- action: assert_greater
actual: "{{ sync_quorum_values_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml"
pattern: "launcherReplicationAckFlag: true"
save_as: ack_flag_values_count
- action: assert_greater
actual: "{{ ack_flag_values_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && grep -q -- '--launcher-replication-ack=sync-quorum' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: promote_and_reattach
actions:
- action: exec
node: m02
timeout: 22m
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-reattach-recovery.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery"
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/multi-volume-reattach-summary.txt"
pattern: "^multi_volume_reattach_status=ok$"
save_as: recovery_ok_count
- action: assert_greater
actual: "{{ recovery_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/summary.txt"
pattern: "^failover_status=promoted$"
save_as: promoted_count
- action: assert_greater
actual: "{{ promoted_count }}"
threshold: "0"
- name: restart_k3s_and_verify_authority
actions:
- action: exec
node: m02
timeout: 9m
cmd: |
set -e
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart
date -u > "$out/restart-start.txt"
sudo -n systemctl restart k3s
for i in $(seq 1 180); do
if sudo -n k3s kubectl get nodes > "$out/nodes.wait.txt" 2>&1; then break; fi
sleep 2
done
sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml
kubectl wait --for=condition=Ready node/m02 --timeout=300s > "$out/wait-node-ready.txt"
kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > "$out/wait-blockmaster.txt"
kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > "$out/wait-csi-controller.txt"
kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > "$out/wait-csi-node.txt"
for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do
kubectl -n default rollout status "$d" --timeout=300s
done > "$out/wait-blockvolumes.txt"
port=$(/usr/bin/python3 - <<'PY'
import socket
s=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()
PY
)
pf=''
cluster_ready=false
for attempt in $(seq 1 10); do
pod=$(kubectl -n {{ helm_namespace }} get pods -l app.kubernetes.io/component=blockmaster --field-selector=status.phase=Running -o name 2>/dev/null | head -1 || true)
if [ -z "$pod" ]; then
pod=$(kubectl -n {{ helm_namespace }} get pods -o name 2>/dev/null | grep '/sw-blockmaster-' | head -1 || true)
fi
if [ -z "$pod" ]; then sleep 2; continue; fi
echo "$pod" > "$out/blockmaster-port-forward-pod.txt"
kubectl -n {{ helm_namespace }} wait --for=condition=Ready "$pod" --timeout=30s >> "$out/wait-blockmaster-pod.txt" 2>&1 || { sleep 2; continue; }
kubectl -n {{ helm_namespace }} port-forward "$pod" "${port}:9333" > "$out/blockmaster-port-forward.log" 2>&1 &
pf=$!
sleep 2
if /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ops cluster --master-api "127.0.0.1:${port}" --timeout 30s -o json > "$out/cluster-after-restart.json.tmp" 2> "$out/cluster-after-restart.stderr.txt"; then
mv "$out/cluster-after-restart.json.tmp" "$out/cluster-after-restart.json"
cluster_ready=true
break
fi
kill "$pf" >/dev/null 2>&1 || true
wait "$pf" >/dev/null 2>&1 || true
sleep 2
done
test "$cluster_ready" = true
trap 'kill "$pf" >/dev/null 2>&1 || true; wait "$pf" >/dev/null 2>&1 || true' EXIT
python3 - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/summary.txt /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/after.json "$out/cluster-after-restart.json" "$out/restart-promotion-summary.txt" <<'PY'
import json, sys
summary_path, before_json, after_json, out_path = sys.argv[1:]
summary = {}
for line in open(summary_path, encoding='utf-8'):
if '=' in line:
k, v = line.strip().split('=', 1)
summary[k] = v
volume_id = summary['volume_id']
promoted = summary['promoted_replica']
target = summary['after_publish_target']
before = json.load(open(before_json))
after = json.load(open(after_json))
def find(doc):
for v in doc.get('volumes', []):
if v.get('volume_id') == volume_id:
return v
raise SystemExit('volume_not_found')
b = find(before)
a = find(after)
before_epoch = int(b.get('epoch') or b.get('authority_epoch') or 0)
after_epoch = int(a.get('epoch') or a.get('authority_epoch') or 0)
primary_count = sum(1 for r in a.get('replicas', []) if r.get('role') == 'primary')
status = 'ok'
reasons = []
if a.get('primary_replica') != promoted:
status = 'failed'; reasons.append('primary_rolled_back')
if a.get('publish_target') != target:
status = 'failed'; reasons.append('publish_target_changed')
if after_epoch < before_epoch:
status = 'failed'; reasons.append('epoch_rolled_back')
if primary_count != 1:
status = 'failed'; reasons.append('primary_count_not_one')
with open(out_path, 'w', encoding='utf-8') as f:
f.write(f'restart_promotion_status={status}\n')
f.write(f'volume_id={volume_id}\n')
f.write(f'before_restart_primary={promoted}\n')
f.write(f'after_restart_primary={a.get("primary_replica", "")}\n')
f.write(f'before_restart_publish_target={target}\n')
f.write(f'after_restart_publish_target={a.get("publish_target", "")}\n')
f.write(f'before_restart_epoch={before_epoch}\n')
f.write(f'after_restart_epoch={after_epoch}\n')
f.write(f'post_restart_primary_count={primary_count}\n')
f.write(f'reason={",".join(reasons) if reasons else "authority_persisted"}\n')
if status != 'ok':
raise SystemExit(','.join(reasons))
PY
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart/restart-promotion-summary.txt"
pattern: "^restart_promotion_status=ok$"
save_as: restart_promotion_ok_count
- action: assert_greater
actual: "{{ restart_promotion_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart/restart-promotion-summary.txt"
pattern: "^reason=authority_persisted$"
save_as: authority_persisted_count
- action: assert_greater
actual: "{{ authority_persisted_count }}"
threshold: "0"
- name: reader_after_restart
actions:
- action: exec
node: m02
timeout: 8m
cmd: "set -e; kubectl -n default delete pod sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/manifests/sw-block-multi-reattach-reader-1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/apply-reader-after-restart.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-multi-reattach-reader-1 --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/wait-reader-after-restart.log; kubectl -n default logs sw-block-multi-reattach-reader-1 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log"
pattern: "/data/demo.bin: OK"
save_as: reader_after_restart_count
- action: assert_greater
actual: "{{ reader_after_restart_count }}"
threshold: "0"
- name: post_restart_degraded_status_boundary
actions:
- action: exec
node: m02
timeout: 4m
cmd: |
set -e
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence
mkdir -p "$out"
python3 - "$out" <<'PY'
import json
import socket
import subprocess
import sys
import time
from pathlib import Path
out = Path(sys.argv[1])
root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart")
sw_block = root / "bin/sw-block"
restart_summary = root / "restart/restart-promotion-summary.txt"
volume_id = ""
for line in restart_summary.read_text(encoding="utf-8").splitlines():
if line.startswith("volume_id="):
volume_id = line.split("=", 1)[1]
break
if not volume_id:
raise SystemExit("volume_id unavailable")
def run(*args, **kwargs):
return subprocess.run(args, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
pods = run(
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
"-l", "app.kubernetes.io/component=blockmaster",
"--field-selector=status.phase=Running",
"-o", "json",
check=True,
)
pod_items = json.loads(pods.stdout).get("items") or []
if not pod_items:
pods = run(
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
"--field-selector=status.phase=Running",
"-o", "json",
check=True,
)
pod_items = [
item for item in json.loads(pods.stdout).get("items") or []
if item.get("metadata", {}).get("name", "").startswith("sw-blockmaster-")
]
ready_pod = ""
for item in pod_items:
conditions = {c.get("type"): c.get("status") for c in (item.get("status") or {}).get("conditions") or []}
if conditions.get("Ready") == "True":
ready_pod = item["metadata"]["name"]
break
if not ready_pod:
raise SystemExit("no Ready blockmaster pod")
(out / "blockmaster-pod.txt").write_text(ready_pod + "\n", encoding="utf-8")
sock = socket.socket()
sock.bind(("127.0.0.1", 0))
port = sock.getsockname()[1]
sock.close()
(out / "port.txt").write_text(str(port) + "\n", encoding="utf-8")
pf_log = open(out / "blockmaster-port-forward.log", "w", encoding="utf-8")
pf = subprocess.Popen(
["kubectl", "-n", "{{ helm_namespace }}", "port-forward", f"pod/{ready_pod}", f"{port}:9333"],
stdout=pf_log,
stderr=subprocess.STDOUT,
text=True,
)
def port_ready():
try:
with socket.create_connection(("127.0.0.1", port), timeout=1):
return True
except OSError:
return False
try:
deadline = time.time() + 30
while time.time() < deadline:
if pf.poll() is not None:
raise SystemExit("port-forward exited early")
if port_ready():
break
time.sleep(0.5)
else:
raise SystemExit("port-forward did not become ready")
consecutive = 0
max_consecutive = 0
observations = []
final_reason = ""
for attempt in range(1, 31):
report_dir = out / f"report-{attempt:02d}"
evidence_dir = out / f"evidence-{attempt:02d}"
cmd = [
str(sw_block), "ops", "report",
"--namespace", "default",
"--master", f"127.0.0.1:{port}",
"--out", str(report_dir),
"--evidence-out", str(evidence_dir),
"--timeout", "30s",
]
proc = run(*cmd)
(out / f"report-{attempt:02d}.stdout.txt").write_text(proc.stdout, encoding="utf-8")
(out / f"report-{attempt:02d}.stderr.txt").write_text(proc.stderr, encoding="utf-8")
if proc.returncode != 0:
observations.append(f"{attempt}: report_failed rc={proc.returncode}")
consecutive = 0
time.sleep(3)
continue
snap_path = report_dir / "operator-snapshot.json"
snap = json.loads(snap_path.read_text(encoding="utf-8"))
vols = snap.get("volumes") or []
target = next((v for v in vols if (v.get("status") or {}).get("volume_id") == volume_id), None)
if target is None:
observations.append(f"{attempt}: volume_missing")
consecutive = 0
time.sleep(3)
continue
status = target.get("status") or {}
conditions = status.get("conditions") or []
ready_true = any(c.get("type") == "Ready" and c.get("status") == "True" for c in conditions)
blocked_true = any(c.get("type") == "Blocked" and c.get("status") == "True" for c in conditions)
status_value = status.get("status", "")
reason = status.get("reason_code", "")
final_reason = reason
stable_degraded_unknown = status_value == "unknown" and reason == "status_endpoint_unreachable"
stable_ready = status_value == "ready" and ready_true
if (stable_ready or stable_degraded_unknown) and not blocked_true:
consecutive += 1
else:
consecutive = 0
max_consecutive = max(max_consecutive, consecutive)
observations.append(
f"{attempt}: status={status_value} reason={reason} ready_true={str(ready_true).lower()} "
f"blocked_true={str(blocked_true).lower()} consecutive_stable={consecutive}"
)
if consecutive >= 3:
break
time.sleep(3)
(out / "observations.txt").write_text("\n".join(observations) + "\n", encoding="utf-8")
status = "ok" if consecutive >= 3 else "failed"
with open(out / "convergence-summary.txt", "w", encoding="utf-8") as f:
f.write(f"restart_status_boundary={status}\n")
f.write(f"volume_id={volume_id}\n")
f.write(f"required_consecutive_stable=3\n")
f.write(f"max_consecutive_stable={max_consecutive}\n")
f.write(f"final_reason={final_reason or 'unknown'}\n")
f.write("evidence=observations.txt\n")
if status != "ok":
raise SystemExit("post-restart status did not reach a stable safe surface")
finally:
pf.terminate()
try:
pf.wait(timeout=5)
except subprocess.TimeoutExpired:
pf.kill()
pf.wait(timeout=5)
pf_log.close()
PY
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence/convergence-summary.txt"
pattern: "^restart_status_boundary=ok$"
save_as: restart_status_boundary_ok_count
- action: assert_greater
actual: "{{ restart_status_boundary_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence/convergence-summary.txt"
pattern: "^max_consecutive_stable=3$"
save_as: restart_consecutive_stable_count
- action: assert_greater
actual: "{{ restart_consecutive_stable_count }}"
threshold: "0"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 9m
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/diagnostics; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod sw-block-multi-writer-1 sw-block-multi-reader-1 sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-rf3-promotion-restart"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart"
name: "remote-phases"
ignore_error: true
@@ -1,221 +0,0 @@
# Runner-native Phase 21 D3a Helm single-node first-volume chain.
#
# Goal:
# Prove the README-friendly single-node product path. This can run on a
# real single-node Linux k3s lab, or on the 3-node lab by selecting one node
# and pinning the writer/reader pods to that same node.
#
# Product boundary:
# This is RF=1 / loopback / first-volume evidence. It is not an HA claim.
name: helm-single-node-first-volume-chain
timeout: 22m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
single_node: "m02"
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
sw_block_ref: "sha-28a99ce4f644" # tested image tag (the artifact under test)
sw_block_commit: "28a99ce4f644" # its commit sha
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: generate_single_node_values
actions:
- action: exec
node: m02
timeout: 3m
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/helm-version.txt && cd {{ product_root }} && bash scripts/generate-helm-values-day1.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_HELM_VALUES_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
env.SW_BLOCK_HELM_TARGET_NODE: "{{ single_node }}"
env.SW_BLOCK_HELM_NODE_LIMIT: "1"
env.SW_BLOCK_HELM_REPLICATION_FACTOR: "1"
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
pattern: "externalISCSI: false"
save_as: external_iscsi_false_count
- action: assert_greater
actual: "{{ external_iscsi_false_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
pattern: "internalIP: \"127.0.0.1\""
save_as: loopback_count
- action: assert_greater
actual: "{{ loopback_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
pattern: "kubernetesNode: \"{{ single_node }}\""
save_as: selected_node_count
- action: assert_greater
actual: "{{ selected_node_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml --wait --timeout 5m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-blockmaster.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-csi-controller.txt && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-csi-node.txt && helm status {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-status.txt && kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/kube-system-ready.txt && kubectl get sc sw-block-dynamic -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/storageclass.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-status.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: first_volume_user_loop
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
env.SW_BLOCK_BASIC_APP_NODE_SELECTOR: "{{ single_node }}"
env.SW_BLOCK_INSTALL_MODE: "helm-single-node"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
- name: first_volume_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^install_mode=helm-single-node$"
save_as: install_mode_count
- action: assert_greater
actual: "{{ install_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^app_node_selector={{ single_node }}$"
save_as: node_selector_count
- action: assert_greater
actual: "{{ node_selector_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^writer_verified=true$"
save_as: writer_verified_count
- action: assert_greater
actual: "{{ writer_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^reader_verified=true$"
save_as: reader_verified_count
- action: assert_greater
actual: "{{ reader_verified_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/status/report/index.html"
pattern: "<html"
save_as: report_html_count
- action: assert_greater
actual: "{{ report_html_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: cleanup_ok_count
- action: assert_greater
actual: "{{ cleanup_ok_count }}"
threshold: "0"
- name: first_volume_provenance
actions:
# Emit the common control-plane envelope so the shared qa-assert.sh accepts
# this block bundle (docs/control-plane-product-contract.md §1). Reached only
# after the first-volume asserts pass.
- action: emit_provenance
product: block
tested_ref: "{{ sw_block_ref }}"
tested_sha: "{{ sw_block_commit }}"
__block_first_volume_ok: "{{ first_volume_ok_count }}"
__block_writer_verified: "{{ writer_verified_count }}"
__block_reader_verified: "{{ reader_verified_count }}"
__block_basic_app_cleanup_ok: "{{ cleanup_ok_count }}"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 6m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/kube-system-after-uninstall.txt 2>&1 || true"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,415 +0,0 @@
# Phase 31 D3: Helm single-node restart persistence gate.
#
# Goal:
# Prove the smallest Kubernetes user path survives a k3s/product restart when
# Helm is installed with explicit hostPath restart persistence.
#
# Product boundary:
# RF=1 / single selected Kubernetes node / loopback iSCSI / pod recreate
# after restart. This is not an HA, node-loss, or disaster-recovery claim.
name: helm-single-node-restart-persistence-chain
timeout: 30m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
single_node: "m02"
sw_block_image: "sw-block:local"
sw_block_csi_image: "sw-block-csi:local"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-restart-persistence; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: build_sw_block_cli
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block.version.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block.version.txt"
pattern: "sw-block"
save_as: sw_block_version_count
- action: assert_greater
actual: "{{ sw_block_version_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: pin_image_id_count
- action: assert_greater
actual: "{{ pin_image_id_count }}"
threshold: "0"
- name: generate_restart_values
actions:
- action: exec
node: m02
timeout: 3m
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --target-node {{ single_node }} --node-limit 1 --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-restart-persistence > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
pattern: "^restart_persistence_mode=hostpath$"
save_as: restart_mode_count
- action: assert_greater
actual: "{{ restart_mode_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
pattern: "^state_hostpath=/var/lib/sw-block/testops-{{ run_id }}-restart-persistence$"
save_as: state_hostpath_stdout_count
- action: assert_greater
actual: "{{ state_hostpath_stdout_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml"
pattern: "stateHostPath: /var/lib/sw-block/testops-{{ run_id }}-restart-persistence"
save_as: state_hostpath_values_count
- action: assert_greater
actual: "{{ state_hostpath_values_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-restart-persistence' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: first_volume_before_restart
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
env.SW_BLOCK_BASIC_APP_NODE_SELECTOR: "{{ single_node }}"
env.SW_BLOCK_INSTALL_MODE: "helm-single-node-restart-persistence"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_before_restart_count
- action: assert_greater
actual: "{{ reader_before_restart_count }}"
threshold: "0"
- name: restart_k3s_and_verify
actions:
- action: exec
node: m02
timeout: 8m
cmd: "set -e; date -u > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/restart-start.txt; sudo -n systemctl restart k3s; for i in $(seq 1 180); do if sudo -n k3s kubectl get nodes >/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/nodes.wait.txt 2>&1; then break; fi; sleep 2; done; sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml; kubectl wait --for=condition=Ready node/{{ single_node }} --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-node-ready.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockmaster.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-csi-controller.txt; kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-csi-node.txt; for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do kubectl -n default rollout status \"$d\" --timeout=300s; done > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockvolumes.txt; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/kube-system.after-restart.txt; kubectl -n default get pods,pvc,pv,deploy -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/default.after-restart.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockmaster.txt"
pattern: "successfully rolled out"
save_as: blockmaster_restart_ready_count
- action: assert_greater
actual: "{{ blockmaster_restart_ready_count }}"
threshold: "0"
- name: reader_after_restart
actions:
- action: exec
node: m02
timeout: 8m
cmd: "set -e; kubectl -n default delete pod sw-block-example-reader --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/reader-pod.rendered.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/apply-reader-after-restart.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-example-reader --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/wait-reader-after-restart.log; kubectl -n default logs sw-block-example-reader > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log; port=$(/usr/bin/python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n {{ helm_namespace }} port-forward deploy/sw-blockmaster ${port}:9333 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/blockmaster-port-forward.log 2>&1 & pf=$!; trap 'kill $pf >/dev/null 2>&1 || true; wait $pf >/dev/null 2>&1 || true' EXIT; for i in $(seq 1 60); do if (echo >/dev/tcp/127.0.0.1/$port) >/dev/null 2>&1; then break; fi; sleep 1; done; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops cluster --master-api 127.0.0.1:${port} --timeout 30s -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/cluster-after-restart.json; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops report --master-api 127.0.0.1:${port} --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log"
pattern: "/data/demo.bin: OK"
save_as: reader_after_restart_count
- action: assert_greater
actual: "{{ reader_after_restart_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report/summary.txt"
pattern: "managed_volume=.*status=ready"
save_as: managed_volume_ready_count
- action: assert_greater
actual: "{{ managed_volume_ready_count }}"
threshold: "0"
- name: post_restart_status_convergence
actions:
- action: exec
node: m02
timeout: 4m
cmd: |
set -e
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence
mkdir -p "$out"
python3 - "$out" <<'PY'
import json
import socket
import subprocess
import sys
import time
from pathlib import Path
out = Path(sys.argv[1])
root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart")
sw_block = root / "bin/sw-block"
summary = root / "basic-app/first-volume-summary.txt"
volume_id = ""
for line in summary.read_text(encoding="utf-8").splitlines():
if line.startswith("volume_id="):
volume_id = line.split("=", 1)[1]
break
if not volume_id:
raise SystemExit("volume_id unavailable")
def run(*args, **kwargs):
return subprocess.run(args, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
pods = run(
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
"-l", "app.kubernetes.io/component=blockmaster",
"--field-selector=status.phase=Running",
"-o", "json",
check=True,
)
pod_items = json.loads(pods.stdout).get("items") or []
if not pod_items:
pods = run(
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
"--field-selector=status.phase=Running",
"-o", "json",
check=True,
)
pod_items = [
item for item in json.loads(pods.stdout).get("items") or []
if item.get("metadata", {}).get("name", "").startswith("sw-blockmaster-")
]
ready_pod = ""
for item in pod_items:
conditions = {c.get("type"): c.get("status") for c in (item.get("status") or {}).get("conditions") or []}
if conditions.get("Ready") == "True":
ready_pod = item["metadata"]["name"]
break
if not ready_pod:
raise SystemExit("no Ready blockmaster pod")
(out / "blockmaster-pod.txt").write_text(ready_pod + "\n", encoding="utf-8")
sock = socket.socket()
sock.bind(("127.0.0.1", 0))
port = sock.getsockname()[1]
sock.close()
(out / "port.txt").write_text(str(port) + "\n", encoding="utf-8")
pf_log = open(out / "blockmaster-port-forward.log", "w", encoding="utf-8")
pf = subprocess.Popen(
["kubectl", "-n", "{{ helm_namespace }}", "port-forward", f"pod/{ready_pod}", f"{port}:9333"],
stdout=pf_log,
stderr=subprocess.STDOUT,
text=True,
)
def port_ready():
try:
with socket.create_connection(("127.0.0.1", port), timeout=1):
return True
except OSError:
return False
try:
deadline = time.time() + 30
while time.time() < deadline:
if pf.poll() is not None:
raise SystemExit("port-forward exited early")
if port_ready():
break
time.sleep(0.5)
else:
raise SystemExit("port-forward did not become ready")
consecutive = 0
max_consecutive = 0
observations = []
final_reason = ""
for attempt in range(1, 31):
report_dir = out / f"report-{attempt:02d}"
evidence_dir = out / f"evidence-{attempt:02d}"
proc = run(
str(sw_block), "ops", "report",
"--namespace", "default",
"--master", f"127.0.0.1:{port}",
"--out", str(report_dir),
"--evidence-out", str(evidence_dir),
"--timeout", "30s",
)
(out / f"report-{attempt:02d}.stdout.txt").write_text(proc.stdout, encoding="utf-8")
(out / f"report-{attempt:02d}.stderr.txt").write_text(proc.stderr, encoding="utf-8")
if proc.returncode != 0:
observations.append(f"{attempt}: report_failed rc={proc.returncode}")
consecutive = 0
time.sleep(3)
continue
snap = json.loads((report_dir / "operator-snapshot.json").read_text(encoding="utf-8"))
vols = snap.get("volumes") or []
target = next((v for v in vols if (v.get("status") or {}).get("volume_id") == volume_id), None)
if target is None:
observations.append(f"{attempt}: volume_missing")
consecutive = 0
time.sleep(3)
continue
status = target.get("status") or {}
conditions = status.get("conditions") or []
ready_true = any(c.get("type") == "Ready" and c.get("status") == "True" for c in conditions)
blocked_true = any(c.get("type") == "Blocked" and c.get("status") == "True" for c in conditions)
status_value = status.get("status", "")
reason = status.get("reason_code", "")
final_reason = reason
if status_value == "ready" and ready_true and not blocked_true:
consecutive += 1
else:
consecutive = 0
max_consecutive = max(max_consecutive, consecutive)
observations.append(
f"{attempt}: status={status_value} reason={reason} ready_true={str(ready_true).lower()} "
f"blocked_true={str(blocked_true).lower()} consecutive_ready={consecutive}"
)
if consecutive >= 3:
break
time.sleep(3)
(out / "observations.txt").write_text("\n".join(observations) + "\n", encoding="utf-8")
status = "ok" if consecutive >= 3 else "failed"
with open(out / "convergence-summary.txt", "w", encoding="utf-8") as f:
f.write(f"restart_status_convergence={status}\n")
f.write(f"volume_id={volume_id}\n")
f.write(f"required_consecutive_ready=3\n")
f.write(f"max_consecutive_ready={max_consecutive}\n")
f.write(f"final_reason={final_reason or 'unknown'}\n")
f.write("evidence=observations.txt\n")
if status != "ok":
raise SystemExit("post-restart status did not converge to stable Ready")
finally:
pf.terminate()
try:
pf.wait(timeout=5)
except subprocess.TimeoutExpired:
pf.kill()
pf.wait(timeout=5)
pf_log.close()
PY
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence/convergence-summary.txt"
pattern: "^restart_status_convergence=ok$"
save_as: restart_convergence_ok_count
- action: assert_greater
actual: "{{ restart_convergence_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence/convergence-summary.txt"
pattern: "^max_consecutive_ready=3$"
save_as: restart_consecutive_ready_count
- action: assert_greater
actual: "{{ restart_consecutive_ready_count }}"
threshold: "0"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; kubectl -n {{ helm_namespace }} logs deploy/sw-blockmaster --all-containers=true --tail=200 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/blockmaster.before-cleanup.log 2>&1 || true; kubectl -n {{ helm_namespace }} get events --sort-by=.lastTimestamp > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/events.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-restart-persistence; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-restart-persistence"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: exec
node: m02
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-restart-persistence"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart"
name: "remote-phases"
ignore_error: true
@@ -1,272 +0,0 @@
# Runner-native Phase 26 D4 gate: Helm support bundle diagnostics.
#
# Goal:
# Prove a Helm-installed first-volume run produces a cold, read-only support
# bundle that can be consumed later by sw-block ops report/explain/timeline.
# Also prove a blocked ImagePullBackOff bundle explains itself without a live
# cluster.
name: helm-support-bundle-diagnostics-chain
timeout: 30m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
helm_release: "sw-block"
helm_namespace: "kube-system"
sw_block_image: "sw-block:phase26-d4"
sw_block_csi_image: "sw-block-csi:phase26-d4"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
timeout: 5m
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: build_and_generate_values
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/build bash scripts/build-alpha-images.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
save_as: local_image_built_count
- action: assert_greater
actual: "{{ local_image_built_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/generate.stdout.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/generate.stdout.txt"
pattern: "helm_values_status=ok"
save_as: generator_ok_count
- action: assert_greater
actual: "{{ generator_ok_count }}"
threshold: "0"
- name: helm_install_stack
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/kube-system.after-install.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/helm-install.txt"
pattern: "STATUS: deployed"
save_as: helm_deployed_count
- action: assert_greater
actual: "{{ helm_deployed_count }}"
threshold: "0"
- name: first_volume_kept_for_bundle
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app"
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
env.SW_BLOCK_INSTALL_MODE: "helm"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/first-volume-summary.txt"
pattern: "^first_volume_status=ok$"
save_as: first_volume_ok_count
- action: assert_greater
actual: "{{ first_volume_ok_count }}"
threshold: "0"
- name: collect_support_bundle
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash scripts/collect-helm-support-bundle.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_SUPPORT_BUNDLE_SOURCE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app"
env.SW_BLOCK_SUPPORT_BUNDLE_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/support-bundle-summary.txt"
pattern: "^support_bundle_status=ok$"
save_as: support_bundle_ok_count
- action: assert_greater
actual: "{{ support_bundle_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/support-bundle-summary.txt"
pattern: "^read_only=true$"
save_as: support_bundle_readonly_count
- action: assert_greater
actual: "{{ support_bundle_readonly_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/replayed-report/summary.txt"
pattern: "^status=ok$"
save_as: replayed_report_ok_count
- action: assert_greater
actual: "{{ replayed_report_ok_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/explain.txt"
pattern: "managed_volume "
save_as: explain_managed_count
- action: assert_greater
actual: "{{ explain_managed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/helm/status.txt"
pattern: "STATUS: deployed"
save_as: helm_status_bundle_count
- action: assert_greater
actual: "{{ helm_status_bundle_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/k8s/pods.txt"
pattern: "sw-block"
save_as: k8s_pods_bundle_count
- action: assert_greater
actual: "{{ k8s_pods_bundle_count }}"
threshold: "0"
- name: blocked_bundle_asserts
actions:
- action: exec
node: m02
timeout: 2m
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/demo/kube-system-pods-deploys.txt <<'EOF'\nNAME READY STATUS RESTARTS AGE IP NODE\npod/sw-block-csi-node-n948t 0/2 ImagePullBackOff 0 2m3s 192.168.1.184 m02\ndeployment.apps/sw-block-csi-controller 1/1 1 1 2m3s block-csi sw-block-csi:local\nEOF\n/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ops explain volume --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle pvc-blocked > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
pattern: "reason=csi_node_image_pull_failed"
save_as: blocked_reason_count
- action: assert_greater
actual: "{{ blocked_reason_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
pattern: "ImagePullBackOff"
save_as: blocked_image_pull_count
- action: assert_greater
actual: "{{ blocked_image_pull_count }}"
threshold: "0"
- name: failure_snapshot
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/collect-k8s-failure-snapshot.sh {{ product_root }}"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_FAILURE_SNAPSHOT_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/failure-snapshot-summary.txt"
pattern: "^read_only=true$"
save_as: failure_snapshot_readonly_count
- action: assert_greater
actual: "{{ failure_snapshot_readonly_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/k8s/events-all.txt"
pattern: "."
save_as: failure_snapshot_events_count
- action: assert_greater
actual: "{{ failure_snapshot_events_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/logs/csi-node.current.log"
pattern: "."
save_as: failure_snapshot_csi_log_count
- action: assert_greater
actual: "{{ failure_snapshot_csi_log_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/iscsi-nodes.txt"
pattern: "."
save_as: failure_snapshot_iscsi_nodes_count
- action: assert_greater
actual: "{{ failure_snapshot_iscsi_nodes_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/processes.txt"
pattern: "."
save_as: failure_snapshot_process_count
- action: assert_greater
actual: "{{ failure_snapshot_process_count }}"
threshold: "0"
- name: helm_uninstall_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 8m
cmd: "kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/helm-uninstall.txt || true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/verify"
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/verify/cleanup-summary.txt"
pattern: "^cleanup_status=ok$"
save_as: helm_cleanup_ok_count
- action: assert_greater
actual: "{{ helm_cleanup_ok_count }}"
threshold: "0"
@@ -1,137 +0,0 @@
# Runner-native iSCSI OS-initiator compatibility gate.
#
# Goal:
# Prove the Linux open-iscsi path against a real kernel initiator:
# iscsiadm discovery/login -> mkfs.ext4 -> mount -> write/read checksum
# -> optional fio stress -> logout -> no residue.
#
# This is an iSCSI correctness gate. It is not a performance, HA, multipath,
# Windows, or Kubernetes claim.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/iscsi-os-initiator-compat-chain.yaml
name: iscsi-os-initiator-compat-chain
timeout: 20m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
os_iterations: "1"
os_stress: "fio"
os_fio_runtime: "60"
os_fio_size: "128m"
durable_blocks: "65536"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: pin_build
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.status && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockvolume ./cmd/blockvolume"
- action: exec
node: m02
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/blockvolume.version.txt"
- name: os_initiator_smoke
actions:
- action: exec
node: m02
cmd: "sudo dmesg > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/dmesg.before.txt 2>&1 || true"
- action: exec
node: m02
timeout: 12m
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-os-smoke.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke"
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin"
env.SW_BLOCK_ISCSI_ITERATIONS: "{{ os_iterations }}"
env.SW_BLOCK_ISCSI_STRESS: "{{ os_stress }}"
env.SW_BLOCK_ISCSI_FIO_RUNTIME: "{{ os_fio_runtime }}"
env.SW_BLOCK_ISCSI_FIO_SIZE: "{{ os_fio_size }}"
env.SW_BLOCK_DURABLE_BLOCKS: "{{ durable_blocks }}"
- action: exec
node: m02
cmd: "sudo dmesg > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/dmesg.after.txt 2>&1 || true"
- action: exec
node: m02
cmd: "python3 - <<'PY'\nimport re, sys\nbase = '/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke'\nts_re = re.compile(r'^\\[\\s*([0-9]+(?:\\.[0-9]+)?)\\]')\ndef read_lines(name):\n with open(base + '/' + name, encoding='utf-8', errors='replace') as f:\n return f.read().splitlines()\ndef ts(line):\n m = ts_re.match(line)\n return float(m.group(1)) if m else None\nbefore = read_lines('dmesg.before.txt')\nafter = read_lines('dmesg.after.txt')\nbefore_ts = [v for v in (ts(line) for line in before) if v is not None]\nif before_ts:\n cutoff = max(before_ts)\n new = [line for line in after if (ts(line) is not None and ts(line) > cutoff)]\nelse:\n i = 0\n while i < len(before) and i < len(after) and before[i] == after[i]:\n i += 1\n new = after[i:]\nwith open(base + '/dmesg.new.txt', 'w', encoding='utf-8') as f:\n f.write('\\n'.join(new))\n if new:\n f.write('\\n')\nbad = re.compile(r'DID_BAD_TARGET|I/O error|Buffer I/O|rejecting I/O|blk_update_request|connection.*failed', re.I)\nhits = [line for line in new if bad.search(line)]\nif hits:\n print('\\n'.join(hits), file=sys.stderr)\n sys.exit(1)\nPY"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/run.log"
pattern: "\\[iscsi-os\\] PASS:"
save_as: os_pass_count
- action: assert_greater
actual: "{{ os_pass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/mkfs.iter1.log"
pattern: "Writing superblocks and filesystem accounting information"
save_as: mkfs_success_count
- action: assert_greater
actual: "{{ mkfs_success_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/sha256-check.iter1.log"
pattern: "payload.iter1.bin: OK"
save_as: checksum_success_count
- action: assert_greater
actual: "{{ checksum_success_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/fio.iter1.log"
pattern: "err= 0"
save_as: fio_success_count
- action: assert_greater
actual: "{{ fio_success_count }}"
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat"
name: "remote-phases"
ignore_error: true
@@ -7,8 +7,11 @@
#
# Expected invocation from sw-test-runner-standalone:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# -env product_root=/path/to/seaweed_block/on/node-a \
# -env ssh_key=/path/to/ssh/key/on/controller \
# -env node_host=192.0.2.10 \
# -env node_user=tester \
# -env artifact_root=/path/to/shared/artifacts \
# testops/scenarios/iscsi-p6-alua-failover-chain.yaml
name: iscsi-p6-alua-failover-chain
@@ -16,46 +19,50 @@ timeout: 25m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: pin_build
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume ./cmd/blockvolume"
cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster ./cmd/blockmaster && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume ./cmd/blockvolume"
- action: exec
node: m02
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.sha && git status --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.status && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
node: node-a
cmd: "cd {{ product_root }} && git rev-parse HEAD > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.sha && git status --short > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.status && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockmaster.version.txt && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
pattern: "blockvolume revision="
save_as: blockvolume_version_count
- action: assert_greater
@@ -65,16 +72,16 @@ phases:
- name: alua_multipath
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-multipath-smoke.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath"
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath"
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
# Bash-level gate: smoke's own PASS line ran.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
pattern: "\\[iscsi-mpath\\] PASS:"
save_as: alua_pass_count
- action: assert_greater
@@ -83,8 +90,8 @@ phases:
# Field-level gate: one path reports Active/Optimized.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
pattern: "rtpg_state_r1=0x00"
save_as: r1_active_optimized_count
- action: assert_greater
@@ -93,8 +100,8 @@ phases:
# Field-level gate: standby path reports ALUA standby, not unavailable.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
pattern: "rtpg_state_r2=0x02"
save_as: r2_standby_count
- action: assert_greater
@@ -103,16 +110,16 @@ phases:
# Field-level gate: VPD 0x83 contains path-distinguishing identity.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r1.vpd83.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r1.vpd83.txt"
pattern: "Target port group"
save_as: r1_vpd83_identity_count
- action: assert_greater
actual: "{{ r1_vpd83_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r2.vpd83.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r2.vpd83.txt"
pattern: "Target port group"
save_as: r2_vpd83_identity_count
- action: assert_greater
@@ -121,8 +128,8 @@ phases:
# Field-level gate: standby raw writes are rejected and surfaced as I/O errors.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/standby-write.stderr"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/standby-write.stderr"
pattern: "Input/output error"
save_as: standby_write_reject_count
- action: assert_greater
@@ -131,16 +138,16 @@ phases:
# Field-level gate: multipath groups both paths as one ALUA-handled map.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath-map-name.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath-map-name.txt"
pattern: "mpath"
save_as: multipath_map_name_count
- action: assert_greater
actual: "{{ multipath_map_name_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath.ll.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath.ll.txt"
pattern: "hwhandler='1 alua'"
save_as: alua_handler_count
- action: assert_greater
@@ -148,25 +155,25 @@ phases:
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: mounted_failover
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-mounted-failover-smoke.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
# Bash-level gate: smoke's own PASS line ran.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/run.log"
pattern: "\\[iscsi-failover\\] PASS:"
save_as: failover_pass_count
- action: assert_greater
@@ -175,16 +182,16 @@ phases:
# Mounted workload survived the primary kill.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/pre-check-after-failover.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/pre-check-after-failover.log"
pattern: "/pre.bin: OK"
save_as: pre_checksum_count
- action: assert_greater
actual: "{{ pre_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/post-check.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/post-check.log"
pattern: "/post.bin: OK"
save_as: post_checksum_count
- action: assert_greater
@@ -193,24 +200,24 @@ phases:
# Field-level gate: r2 promoted at epoch 2 and is frontend-ready.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
pattern: "\"Epoch\":2"
save_as: r2_epoch2_count
- action: assert_greater
actual: "{{ r2_epoch2_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
pattern: "\"AuthorityRole\":\"primary\""
save_as: r2_role_primary_count
- action: assert_greater
actual: "{{ r2_role_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
pattern: "\"FrontendPrimaryReady\":true"
save_as: r2_frontend_ready_count
- action: assert_greater
@@ -219,8 +226,8 @@ phases:
# Field-level gate: r2's ALUA state becomes Active/Optimized after failover.
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/sg_rtpg.r2.after.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/sg_rtpg.r2.after.txt"
pattern: "asymmetric access state"
save_as: r2_after_active_optimized_count
- action: assert_greater
@@ -228,35 +235,35 @@ phases:
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: final_asserts
actions:
- action: exec
node: m02
cmd: "sudo iscsiadm -m session > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/iscsi-sessions.final.txt 2>&1 || true; sudo multipath -ll > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/multipath.final.txt 2>&1 || true"
node: node-a
cmd: "sudo iscsiadm -m session > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/iscsi-sessions.final.txt 2>&1 || true; sudo multipath -ll > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/multipath.final.txt 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain"
name: "remote-phases"
ignore_error: true
@@ -6,8 +6,11 @@
#
# Expected invocation from sw-test-runner-standalone:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# -env product_root=/path/to/seaweed_block/on/node-a \
# -env ssh_key=/path/to/ssh/key/on/controller \
# -env node_host=192.0.2.10 \
# -env node_user=tester \
# -env artifact_root=/path/to/shared/artifacts \
# testops/scenarios/iscsi-p8-compat-soak-chain.yaml
name: iscsi-p8-compat-soak-chain
@@ -15,7 +18,10 @@ timeout: 35m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
os_iterations: "2"
os_fio_runtime: "120"
os_fio_size: "128m"
@@ -23,47 +29,48 @@ env:
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: pin_build
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume ./cmd/blockvolume"
cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster ./cmd/blockmaster && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume ./cmd/blockvolume"
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build"
- action: exec
node: m02
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockvolume.version.txt"
node: node-a
cmd: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockmaster.version.txt && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockvolume.version.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: pin_image_id_count
- action: assert_greater
@@ -73,86 +80,86 @@ phases:
- name: os_fio_repeat
actions:
- action: exec
node: m02
node: node-a
timeout: 12m
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-os-smoke.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat"
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat"
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin"
env.SW_BLOCK_ISCSI_ITERATIONS: "{{ os_iterations }}"
env.SW_BLOCK_ISCSI_STRESS: "fio"
env.SW_BLOCK_ISCSI_FIO_RUNTIME: "{{ os_fio_runtime }}"
env.SW_BLOCK_ISCSI_FIO_SIZE: "{{ os_fio_size }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat/run.log"
pattern: "\\[iscsi-os\\] PASS:"
save_as: os_pass_count
- action: assert_greater
actual: "{{ os_pass_count }}"
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: k8s_fio
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/run-k8s-alpha-fio.sh {{ product_root }}"
env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio"
env.SW_BLOCK_ALPHA_IMAGES_ENV: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio/run.log"
pattern: "\\[alpha-fio\\] PASS:"
save_as: k8s_fio_pass_count
- action: assert_greater
actual: "{{ k8s_fio_pass_count }}"
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: k8s_attach_detach
actions:
- action: exec
node: m02
node: node-a
timeout: 12m
cmd: "cd {{ product_root }} && set -a && . /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env && set +a && bash scripts/run-k8s-attach-detach-loop.sh {{ product_root }}"
cmd: "cd {{ product_root }} && set -a && . {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env && set +a && bash scripts/run-k8s-attach-detach-loop.sh {{ product_root }}"
env.SW_BLOCK_ATTACH_DETACH_ITERATIONS: "{{ attach_iterations }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach/summary.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach/summary.log"
pattern: "\\[attach-loop\\] PASS:"
save_as: attach_pass_count
- action: assert_greater
actual: "{{ attach_pass_count }}"
threshold: "0"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain"
name: "remote-phases"
ignore_error: true
@@ -1,408 +0,0 @@
# Runner-native iSCSI returned-replica reintegration chain.
#
# Goal:
# Exercise a real RF=2 iSCSI ALUA mounted failover, then restart the old
# primary and assert it returns as a non-frontend replica while r2 remains
# primary. This is the integration companion to returned-replica-component-gate.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/iscsi-returned-replica-chain.yaml
name: iscsi-returned-replica-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-iscsi-returned/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: pin_build
actions:
- 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 && 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"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockvolume.version.txt"
pattern: "blockvolume revision="
save_as: blockvolume_version_count
- action: assert_greater
actual: "{{ blockvolume_version_count }}"
threshold: "0"
- name: returned_failover
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-mounted-failover-smoke.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover"
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin"
env.SW_BLOCK_ISCSI_FAILOVER_WORK_DIR: "/tmp/sw-block-iscsi-returned"
env.SW_BLOCK_RETURN_R1_AFTER_FAILOVER: "1"
env.SW_BLOCK_DEGRADED_PROBE_INTERVAL: "1s"
env.SW_BLOCK_DEGRADED_PROBE_COOLDOWN_BASE: "1s"
env.SW_BLOCK_DEGRADED_PROBE_COOLDOWN_CAP: "3s"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/run.log"
pattern: "\\[iscsi-failover\\] PASS:"
save_as: failover_pass_count
- action: assert_greater
actual: "{{ failover_pass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/run.log"
pattern: "restart returned r1 after r2 promotion"
save_as: r1_return_phase_count
- action: assert_greater
actual: "{{ r1_return_phase_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/pre-check-after-failover.log"
pattern: "/pre.bin: OK"
save_as: pre_checksum_count
- action: assert_greater
actual: "{{ pre_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/post-check.log"
pattern: "/post.bin: OK"
save_as: post_checksum_count
- action: assert_greater
actual: "{{ post_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-healthy.json"
pattern: "\"AuthorityRole\":\"primary\""
save_as: r2_primary_count
- action: assert_greater
actual: "{{ r2_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
pattern: "^authority_non_primary=true$"
save_as: r1_nonprimary_summary_count
- action: assert_greater
actual: "{{ r1_nonprimary_summary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
pattern: "^frontend_primary_ready=false$"
save_as: r1_frontend_not_ready_summary_count
- action: assert_greater
actual: "{{ r1_frontend_not_ready_summary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
pattern: "^healthy=false$"
save_as: r1_not_healthy_summary_count
- action: assert_greater
actual: "{{ r1_not_healthy_summary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
pattern: "\"AuthorityRole\":\"primary\""
save_as: r2_still_primary_count
- action: assert_greater
actual: "{{ r2_still_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
pattern: "\"FrontendPrimaryReady\":true"
save_as: r2_still_frontend_ready_count
- action: assert_greater
actual: "{{ r2_still_frontend_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
pattern: "\"Healthy\":true"
save_as: r2_still_healthy_count
- action: assert_greater
actual: "{{ r2_still_healthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
pattern: "\"ReplicaID\":\"r1\""
save_as: r1_peer_present_count
- action: assert_greater
actual: "{{ r1_peer_present_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
pattern: "\"State\":\"healthy\""
save_as: r1_peer_healthy_count
- action: assert_greater
actual: "{{ r1_peer_healthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
pattern: "\"Epoch\":2"
save_as: r1_peer_epoch_count
- action: assert_greater
actual: "{{ r1_peer_epoch_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
pattern: "\"ProbeInFlight\":false"
save_as: r1_peer_probe_idle_count
- action: assert_greater
actual: "{{ r1_peer_probe_idle_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
pattern: "\"Closed\":false"
save_as: r1_peer_open_count
- action: assert_greater
actual: "{{ r1_peer_open_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/blockvolume-r1-returned.log"
pattern: "durable recovered: recovered LSN="
save_as: r1_returned_local_recovery_count
- action: assert_greater
actual: "{{ r1_returned_local_recovery_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/blockvolume-r1-returned.log"
pattern: "admitted as SUPPORTING replica r1"
save_as: r1_returned_supersede_observed_count
- action: assert_greater
actual: "{{ r1_returned_supersede_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
pattern: "^replica=r2$"
save_as: r2_durable_replica_count
- action: assert_greater
actual: "{{ r2_durable_replica_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
pattern: "^epoch_gte_2=true$"
save_as: r2_durable_epoch_gte_2_count
- action: assert_greater
actual: "{{ r2_durable_epoch_gte_2_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
pattern: "^operational=true$"
save_as: r2_durable_operational_count
- 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"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
- name: collect_and_cleanup
always: true
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,iscsi-target"
unmount: "/tmp/sw-block-iscsi-returned/mnt"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain"
name: "remote-phases"
ignore_error: true
@@ -1,304 +0,0 @@
# Runner-native real-cluster gate for the content-named layout.
#
# One scenario for the layout's real-process tests. Each entry is one tagged Go
# test that owns its stock filer, block processes and NVMe frontend; the
# scenario builds an exact product commit, runs the selected entries, and
# passes an entry only on that test's own top-level "--- PASS" line together
# with exit code 0. A test that is skipped, renamed, or not compiled in by its
# tags prints no such line, so it fails the entry.
#
# Parameters never enter shell source: every value reaches the commands as an
# environment variable (the runner single-quotes env.* params), and each is
# validated before use. The verified product commit and weed digest are
# recorded in result.json (emit_provenance) whether or not the entries pass.
#
# Entries (all six by default; select a subset with -env tests="..."):
# move TestIntegrationWorkspaceLayoutMove (clean and forced move)
# lease TestBinaryWorkspaceLeaseOptInOwnsCLEANShutdown
# systemd TestSystemdExpiredStartupExits75ThenRegrantServes
# (system systemd; run as a user allowed to systemd-run)
# catalog TestIntegration_CatalogRestoreAndDelete
# cutover-e2e TestCutoverWriteSnapshotKillRestartRestore (write, snapshot,
# kill, restart, restore)
# cutover-create TestCutoverCreateFromSnapshot (the master creates the
# target identity and its restored image in one request)
# fence-heal TestFencingRoundHealContinuesThePrimary (a failed fencing
# round heals by continuing the primary). Not in the default
# set until the promotion fence is on the base.
# fence-rejoin TestFencingRoundSurvivorRejoins (the fence-heal scenario
# carried on: the survivor that could not fence rejoins the
# healed primary). Not in the default set until the promotion
# fence is on the base.
# double-failover TestDoubleFailoverReadsBackEveryAckedWrite (RF3
# sync_quorum: two failovers, the first primary rejoining in
# between; every acknowledged write reads back on the last
# primary). Not in the default set until the promotion fence
# is on the base.
#
# Expected invocation (on the Linux host):
# swblock run \
# -env product_repo=/path/to/seaweed-block -env head=<40-hex commit> \
# -env weed_binary=/path/to/weed -env weed_sha256=<sha256> \
# -env go_bin=/path/to/go/bin \
# -env tests="move lease systemd catalog cutover-e2e cutover-create" \
# testops/scenarios/layout-realcluster-integration-gate.yaml
name: layout-realcluster-integration-gate
timeout: 120m
always_timeout: 5m
env:
product_repo: "/path/to/seaweed-block"
head: ""
weed_binary: "/path/to/weed"
weed_sha256: ""
go_bin: "/usr/local/go/bin"
tests: "move lease systemd catalog cutover-e2e cutover-create"
scratch_root: "/tmp/sw-layout-gate"
topology:
nodes:
host:
is_local: true
phases:
- name: prepare
actions:
- action: exec
node: host
timeout: 2m
env.GATE_RUN: "{{ run_id }}"
env.GATE_ROOT: "{{ scratch_root }}"
env.GATE_HEAD: "{{ head }}"
env.GATE_TESTS: "{{ tests }}"
env.GATE_REPO: "{{ product_repo }}"
env.GATE_WEED: "{{ weed_binary }}"
env.GATE_WEED_SHA: "{{ weed_sha256 }}"
env.GATE_GO: "{{ go_bin }}"
save_as: gate_token
cmd: |
set -euf
fail() { echo "$1" >&2; exit 2; }
case "$GATE_HEAD" in *[!0-9a-f]*|'') fail 'head must be a full lowercase hexadecimal commit' ;; esac
[ ${#GATE_HEAD} -eq 40 ] || fail 'head must be 40 characters'
case "$GATE_WEED_SHA" in *[!0-9a-f]*|'') fail 'weed_sha256 must be lowercase hexadecimal' ;; esac
[ ${#GATE_WEED_SHA} -eq 64 ] || fail 'weed_sha256 must be 64 characters'
case "$GATE_RUN" in *[!0-9A-Za-z_-]*|'') fail 'run_id has unexpected characters' ;; esac
case "$GATE_ROOT" in /*) ;; *) fail 'scratch_root must be absolute' ;; esac
case "$GATE_ROOT" in *[!0-9A-Za-z_./-]*|*..*) fail 'scratch_root has unexpected characters' ;; esac
case "$GATE_TESTS" in *[!0-9a-z\ -]*|'') fail 'tests must be entry names separated by spaces' ;; esac
n=0
for t in $GATE_TESTS; do
case "$t" in move|lease|systemd|catalog|cutover-e2e|cutover-create|fence-heal|fence-rejoin|double-failover) ;; *) fail "unknown entry: $t" ;; esac
n=$((n + 1))
done
[ "$n" -gt 0 ] || fail 'tests names no entry'
[ -x "$GATE_GO/go" ] || fail 'go_bin/go is not executable'
[ -f "$GATE_WEED" ] || fail 'weed_binary is not a file'
[ "$(sha256sum < "$GATE_WEED" | cut -d' ' -f1)" = "$GATE_WEED_SHA" ] || fail 'weed_binary does not match weed_sha256'
[ "$(git -C "$GATE_REPO" rev-parse --verify "$GATE_HEAD^{commit}")" = "$GATE_HEAD" ] || fail 'head is not that commit in product_repo'
d="$GATE_ROOT/$GATE_RUN"
mkdir -p "$GATE_ROOT"
# Created here, atomically, or refused: cleanup removes only a
# directory whose marker holds this run's token.
mkdir "$d" 2>/dev/null || fail 'run directory already exists'
token=$(od -An -tx1 -N16 /dev/urandom | tr -d ' \n')
printf '%s\n' "$token" > "$d/.layout-gate-owned"
printf '%s\n' "$token"
- action: exec
node: host
timeout: 2m
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
env.GATE_HEAD: "{{ head }}"
env.GATE_TESTS: "{{ tests }}"
env.GATE_REPO: "{{ product_repo }}"
env.GATE_WEED_SHA: "{{ weed_sha256 }}"
env.GATE_GO: "{{ go_bin }}"
cmd: |
set -euf
d="$GATE_DIR"
mkdir "$d/source" "$d/bin" "$d/tmp" "$d/evidence"
git -C "$GATE_REPO" archive "$GATE_HEAD" | tar -xf - -C "$d/source"
printf '%s\n' "$GATE_HEAD" > "$d/evidence/product.sha"
printf '%s weed\n' "$GATE_WEED_SHA" > "$d/evidence/weed.sha256"
"$GATE_GO/go" version > "$d/evidence/go.version"
printf '%s\n' $GATE_TESTS > "$d/evidence/selected.txt"
# Pins, recorded before any entry runs; gate_pass stays 0 unless run_tests passes.
- action: emit_provenance
product: seaweed-block
tested_sha: "{{ head }}"
gate_pass: "0"
gate_status: "pinned"
__weed_sha256: "{{ weed_sha256 }}"
__entries: "{{ tests }}"
- name: build
actions:
- action: exec
node: host
timeout: 20m
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
env.GATE_GO: "{{ go_bin }}"
env.GATE_TESTS: "{{ tests }}"
cmd: |
set -eu
d="$GATE_DIR"
export PATH="$GATE_GO:$PATH"
cd "$d/source"
for b in blockmaster blockvolume sw-block; do go build -o "$d/bin/$b" "./cmd/$b"; done
# Only the test binaries the selected entries run: a package that
# no selected entry uses cannot fail the build of the others.
bv=0 sd=0 cs=0
for t in $GATE_TESTS; do
case "$t" in
systemd) sd=1 ;;
catalog) cs=1 ;;
*) bv=1 ;;
esac
done
[ "$bv" = 0 ] || go test -c -tags 'subprocess chunkstore_integration' -o "$d/bin/blockvolume.test" ./cmd/blockvolume
[ "$sd" = 0 ] || go test -c -tags 'subprocess chunkstore_integration systemd_integration' -o "$d/bin/blockvolume-systemd.test" ./cmd/blockvolume
[ "$cs" = 0 ] || go test -c -tags 'chunkstore_integration' -o "$d/bin/chunkstore.test" ./core/frontend/chunkstore
sha256sum "$d/bin/"* > "$d/evidence/binaries.sha256"
- name: run_tests
actions:
- action: exec
node: host
timeout: 95m
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
env.GATE_GO: "{{ go_bin }}"
env.GATE_WEED: "{{ weed_binary }}"
env.GATE_TESTS: "{{ tests }}"
receipt_path: "{{ bundle_dir }}/run_tests.receipt.json"
cmd: |
set -f
d="$GATE_DIR"
export PATH="$GATE_GO:$PATH" TMPDIR="$d/tmp" CHUNKSTORE_WEED="$GATE_WEED" SWBLOCK_TEST_BINS="$d/bin"
: > "$d/evidence/verdicts.txt"
failed=0
n=0
for t in $GATE_TESTS; do
n=$((n + 1))
extra=
case "$t" in
move) pkg=cmd/blockvolume bin=blockvolume.test name=TestIntegrationWorkspaceLayoutMove to=14m ;;
lease) pkg=cmd/blockvolume bin=blockvolume.test name=TestBinaryWorkspaceLeaseOptInOwnsCLEANShutdown to=9m ;;
systemd) pkg=cmd/blockvolume bin=blockvolume-systemd.test name=TestSystemdExpiredStartupExits75ThenRegrantServes to=14m extra=GAP1_SYSTEMD_AUTHORIZED=1 ;;
catalog) pkg=core/frontend/chunkstore bin=chunkstore.test name=TestIntegration_CatalogRestoreAndDelete to=9m ;;
cutover-e2e) pkg=cmd/blockvolume bin=blockvolume.test name=TestCutoverWriteSnapshotKillRestartRestore to=40m ;;
cutover-create) pkg=cmd/blockvolume bin=blockvolume.test name=TestCutoverCreateFromSnapshot to=20m ;;
fence-heal) pkg=cmd/blockvolume bin=blockvolume.test name=TestFencingRoundHealContinuesThePrimary to=10m ;;
fence-rejoin) pkg=cmd/blockvolume bin=blockvolume.test name=TestFencingRoundSurvivorRejoins to=10m ;;
double-failover) pkg=cmd/blockvolume bin=blockvolume.test name=TestDoubleFailoverReadsBackEveryAckedWrite to=15m ;;
*) echo "unknown entry: $t" >&2; exit 2 ;;
esac
log="$d/evidence/$t.log"
# A failed test keeps its daemons' whole logs here (collected).
(cd "$d/source/$pkg" && env $extra SWBLOCK_TEST_LOG_DIR="$d/evidence/$t-daemons" "$d/bin/$bin" -test.run "^$name\$" -test.v -test.count 1 -test.timeout "$to") > "$log" 2>&1
rc=$?
if [ "$rc" -eq 0 ] && grep -qE "^--- PASS: $name \(" "$log"; then
echo "PASS $t $name" >> "$d/evidence/verdicts.txt"
else
echo "FAIL $t $name rc=$rc" >> "$d/evidence/verdicts.txt"
tail -40 "$log" >&2
failed=1
fi
done
passes=$(grep -c '^PASS ' "$d/evidence/verdicts.txt" 2>/dev/null) || passes=0
if [ "$n" -eq 0 ] || [ "$passes" -ne "$n" ]; then
echo "verdicts: $passes PASS of $n selected entries" >&2
failed=1
fi
cat "$d/evidence/verdicts.txt" >&2
exit "$failed"
- name: collect
always: true
actions:
- action: collect_path
node: host
path: "{{ scratch_root }}/{{ run_id }}/evidence"
name: "layout-gate"
# Runs only when every earlier ordinary phase passed (the runner runs the
# always phases after them). The pass is read back from a collected copy of
# the evidence: a failed collection fails the gate, and the archive must
# hold one PASS verdict per selected entry and no other line.
- name: mark_pass
actions:
- action: collect_path
node: host
path: "{{ scratch_root }}/{{ run_id }}/evidence"
name: "layout-gate-pass"
- action: exec
node: host
timeout: 1m
env.GATE_ARCHIVE: "{{ artifacts_dir }}/layout-gate-pass.tgz"
env.GATE_TESTS: "{{ tests }}"
cmd: |
set -euf
v=$(tar -xzOf "$GATE_ARCHIVE" evidence/verdicts.txt)
n=0
for t in $GATE_TESTS; do
n=$((n + 1))
printf '%s\n' "$v" | grep -qE "^PASS $t Test[A-Za-z0-9_]+\$" || { echo "collected verdicts lack PASS for $t" >&2; exit 1; }
done
lines=$(printf '%s\n' "$v" | grep -c .)
[ "$n" -gt 0 ] && [ "$lines" -eq "$n" ] || { echo "collected verdicts: $lines lines for $n entries" >&2; exit 1; }
- action: emit_provenance
product: seaweed-block
tested_sha: "{{ head }}"
gate_pass: "1"
gate_status: "ok"
__weed_sha256: "{{ weed_sha256 }}"
__entries: "{{ tests }}"
# Always runs and ends with the zero-residue assertion: no process whose cwd,
# executable or command line is inside this run's directory (the tests build
# and start every binary there, systemd units included), and no gap1-* unit.
# The run directory is removed only after that holds.
- name: cleanup
always: true
actions:
- action: exec
node: host
timeout: 3m
env.GATE_RUN: "{{ run_id }}"
env.GATE_ROOT: "{{ scratch_root }}"
env.GATE_TOKEN: "{{ gate_token }}"
receipt_path: "{{ bundle_dir }}/cleanup.receipt.json"
cmd: |
set -u
case "$GATE_RUN" in *[!0-9A-Za-z_-]*|'') echo 'run_id has unexpected characters' >&2; exit 2 ;; esac
case "$GATE_ROOT" in /*) ;; *) echo 'scratch_root must be absolute' >&2; exit 2 ;; esac
d="$GATE_ROOT/$GATE_RUN"
[ -e "$d" ] || exit 0
# No token: prepare created nothing; whatever is there is not ours.
case "$GATE_TOKEN" in *[!0-9a-f]*|'') echo "this run created no directory; left untouched: $d" >&2; exit 0 ;; esac
[ ${#GATE_TOKEN} -eq 32 ] || { echo "this run created no directory; left untouched: $d" >&2; exit 0; }
[ "$(cat "$d/.layout-gate-owned" 2>/dev/null)" = "$GATE_TOKEN" ] || { echo "not created by this run; left untouched: $d" >&2; exit 2; }
residue() {
n=0
for p in /proc/[0-9]*; do
[ "${p##*/}" = "$$" ] && continue
cwd=$(readlink "$p/cwd" 2>/dev/null || true)
exe=$(readlink "$p/exe" 2>/dev/null || true)
cmd=$(tr '\0' ' ' < "$p/cmdline" 2>/dev/null || true)
case "$cwd|$exe|$cmd" in *"$d"/*) echo "residue process ${p##*/}: $exe" >&2; n=$((n + 1)) ;; esac
done
if command -v systemctl >/dev/null 2>&1; then
units=$(systemctl list-units --all --plain --no-legend 'gap1-*' 2>/dev/null | awk '{print $1}')
[ -z "$units" ] || { echo "residue units: $units" >&2; n=$((n + 1)); }
fi
[ "$n" -eq 0 ]
}
i=0
until residue; do
i=$((i + 1))
[ "$i" -lt 30 ] || { echo "residue remains after 60s; run directory kept: $d" >&2; exit 1; }
sleep 2
done
rm -rf -- "$d"
[ ! -e "$d" ] || { echo "run directory not removed: $d" >&2; exit 1; }
echo "zero residue: $d"
@@ -1,97 +0,0 @@
# Runner-native Phase 42 D1 gate: live lifecycle-owner API/admission boundary.
name: lifecycle-owner-admission-gate-chain
description: >
Runs the live Kubernetes ValidatingAdmissionPolicy gate that proves the
lifecycle-owner identity can only issue finalizer-shaped SwBlockVolume main
object patches. This is the real API/admission successor to the Phase 41
schema-aware boundary gate.
vars:
product_root: "{{ env.PRODUCT_ROOT | default('/mnt/c/work/seaweed_block') }}"
phases:
- name: admission_gate
actions:
- type: exec
name: run_phase42_admission_gate
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate bash scripts/run-phase42-lifecycle-owner-admission-gate.sh {{ product_root }}"
- name: asserts
actions:
- type: grep_log
name: admission_gate_ok
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^phase42_lifecycle_owner_admission_status=ok$"
- type: grep_log
name: operator_status_no_main_patch
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^operator_status_main_patch_allowed=false$"
- type: grep_log
name: admission_policy_propagated
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^admission_policy_propagated=true$"
- type: grep_log
name: lifecycle_owner_finalizer_add_allowed
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_finalizer_add_allowed=true$"
- type: grep_log
name: lifecycle_owner_finalizer_add_idempotent
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_finalizer_add_idempotent=true$"
- type: grep_log
name: lifecycle_owner_finalizer_remove_allowed
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_finalizer_remove_allowed=true$"
- type: grep_log
name: lifecycle_owner_finalizer_remove_idempotent
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_finalizer_remove_idempotent=true$"
- type: grep_log
name: lifecycle_owner_spec_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_spec_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_label_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_label_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_annotation_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_annotation_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_ownerreferences_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_ownerreferences_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_deletiontimestamp_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_deletiontimestamp_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_foreign_finalizer_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_foreign_finalizer_allowed=false$"
- type: grep_log
name: lifecycle_owner_mixed_patch_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_mixed_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_mixed_metadata_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_mixed_metadata_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_main_status_not_mutated
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_main_status_mutated=false$"
- type: grep_log
name: lifecycle_owner_status_subresource_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^lifecycle_owner_status_subresource_patch_allowed=false$"
- type: grep_log
name: finalizers_endpoint_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^finalizers_endpoint_allowed=false$"
- type: grep_log
name: object_integrity_preserved
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
pattern: "^object_integrity_preserved=true$"
@@ -1,44 +0,0 @@
# Runner-native Phase 41 D2 gate: lifecycle-owner API/RBAC boundary.
name: lifecycle-owner-api-boundary-chain
description: >
Proves that the released operator-status boundary remains status/events-only
while the future lifecycle-owner boundary permits only finalizer-shaped main
SwBlockVolume patches and rejects spec/unrelated metadata mutation.
vars:
product_root: "{{ env.PRODUCT_ROOT | default('/mnt/c/work/seaweed_block') }}"
phases:
- name: api_boundary
actions:
- type: exec
name: run_phase41_api_boundary
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary bash scripts/run-phase41-lifecycle-owner-api-boundary.sh {{ product_root }}"
- name: asserts
actions:
- type: grep_log
name: api_boundary_ok
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^phase41_lifecycle_owner_api_boundary_status=ok$"
- type: grep_log
name: operator_status_no_main_patch
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^operator_status_main_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_finalizer_only_allowed
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^lifecycle_owner_finalizer_patch_allowed=true$"
- type: grep_log
name: lifecycle_owner_spec_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^lifecycle_owner_spec_patch_allowed=false$"
- type: grep_log
name: lifecycle_owner_unrelated_metadata_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^lifecycle_owner_unrelated_metadata_patch_allowed=false$"
- type: grep_log
name: finalizers_endpoint_forbidden
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase41-lifecycle-owner-api-boundary/phase41-lifecycle-owner-api-boundary-summary.txt"
pattern: "^finalizers_endpoint_allowed=false$"
@@ -1,62 +0,0 @@
# Runner-native Phase 42 D5/D6 gate: delete-safety decisions stay external and
# isolated per volume.
name: lifecycle-owner-delete-safety-decision-chain
description: >
Runs the Phase 42 delete-safety decision gate. This complements the live
admission gate: admission proves the lifecycle-owner can only patch the
approved finalizer shape; this gate proves finalizer-release decisions still
come from cleanup evidence and remain dry-run/status-only until Phase 43.
vars:
product_root: "{{ env.PRODUCT_ROOT | default('/mnt/c/work/seaweed_block') }}"
phases:
- name: delete_safety_decision
actions:
- type: exec
name: run_phase42_delete_safety_decision
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision bash scripts/run-phase42-delete-safety-decision-gate.sh {{ product_root }}"
- name: asserts
actions:
- type: grep_log
name: gate_ok
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^phase42_delete_safety_decision_status=ok$"
- type: grep_log
name: clean_allowed
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^clean_delete_safety_decision=allowed$"
- type: grep_log
name: blocked_rejected
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^blocked_delete_safety_decision=rejected$"
- type: grep_log
name: missing_unknown
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^missing_delete_safety_decision=unknown$"
- type: grep_log
name: stale_unknown
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^stale_delete_safety_decision=unknown$"
- type: grep_log
name: dry_run_action
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^lifecycle_owner_action_mode=dry_run$"
- type: grep_log
name: no_action_mutation
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^lifecycle_owner_action_mutation_allowed=false$"
- type: grep_log
name: no_finalizer_patch
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^finalizer_patch_count=0$"
- type: grep_log
name: no_finalizer_events
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^no_finalizer_mutation_events=true$"
- type: grep_log
name: multi_volume_isolated
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-delete-safety-decision/phase42-delete-safety-decision-gate-summary.txt"
pattern: "^multi_volume_delete_safety_isolation=true$"
@@ -1,190 +0,0 @@
# Runner-native HG-10 adversarial break-class chain.
#
# Goal:
# Exercise the three close-gate break classes from
# internal/docs/qa-assignments/light-use-mvp-close-hard-gate.md and prove
# each failure leaves actionable evidence instead of a silent timeout.
name: light-use-first-volume-breaks-chain
timeout: 25m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/preflight-missing-iscsiadm /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/pin_build"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/pre_clean_uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: break_preflight_missing_iscsiadm
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash -lc 'set +e; SW_BLOCK_PREFLIGHT_FORCE_MISSING=iscsiadm bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/preflight-missing-iscsiadm/preflight.txt 2>&1; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/preflight-missing-iscsiadm/exit_code.txt; test \"$rc\" -eq 2'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/preflight-missing-iscsiadm/preflight.txt"
pattern: "checked name=iscsiadm status=FAIL"
save_as: missing_iscsiadm_count
- action: assert_greater
actual: "{{ missing_iscsiadm_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/preflight-missing-iscsiadm/preflight.txt"
pattern: "Install open-iscsi/iscsiadm"
save_as: missing_iscsiadm_remediation_count
- action: assert_greater
actual: "{{ missing_iscsiadm_remediation_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- name: break_mid_install_bad_image
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cd {{ product_root }} && bash -lc 'set +e; SW_BLOCK_IMAGE=ghcr.io/seaweedfs/does-not-exist:no-such-tag SW_BLOCK_CSI_IMAGE=ghcr.io/seaweedfs/does-not-exist:no-such-tag SW_BLOCK_DEMO_COLLECT_OPS_STATUS=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/exit_code.txt; test \"$rc\" -ne 0'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/controlled-stop.txt"
pattern: "ops-status-unavailable: no volume id reached"
save_as: image_ops_unavailable_count
- action: assert_greater
actual: "{{ image_ops_unavailable_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "grep -E 'ImagePullBackOff|ErrImagePull|does-not-exist|no-such-tag' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/kube-system-pods-deploys.txt /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/*.describe.txt > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/image-pull-evidence.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure/image-pull-evidence.txt"
pattern: "no-such-tag"
save_as: image_failure_evidence_count
- action: assert_greater
actual: "{{ image_failure_evidence_count }}"
threshold: "0"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/image-failure-cleanup"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- name: break_mid_app_attach
actions:
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_COLLECT_OPS_STATUS=1 SW_BLOCK_DEMO_WRITER_TIMEOUT=45 SW_BLOCK_DEMO_BREAK_AFTER_BLOCKVOLUME_READY=delete-generated-blockvolume bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure/exit_code.txt; test \"$rc\" -ne 0'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure/run.log"
pattern: "\\[app-demo\\] delete generated blockvolume after ready"
save_as: attach_hook_count
- action: assert_greater
actual: "{{ attach_hook_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure/run.log"
pattern: "\\[app-demo\\] collect ops status after failure"
save_as: attach_collect_count
- action: assert_greater
actual: "{{ attach_collect_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure/ops-status/ops-status-bundle.json"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/attach-failure-cleanup"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-breaks"
name: "remote-phases"
ignore_error: true
@@ -1,194 +0,0 @@
# Runner-native light-use first-volume chain.
#
# Goal:
# Prove the documented Kubernetes quickstart path as a user-facing product
# loop, not just as an internal smoke:
# build/import -> launch alpha stack -> create PVC/app -> write/read ->
# delete -> verify cleanup attribution -> collect artifacts.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/light-use-first-volume-chain.yaml
name: light-use-first-volume-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: first_volume_demo
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/pin_build/alpha-images.env; set +a; bash scripts/run-k8s-demo.sh {{ product_root }}'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/run.log"
pattern: "\\[app-demo\\] PASS: app pod wrote data, replacement app pod read it back through the same PVC, cleanup complete"
save_as: first_volume_pass_count
- action: assert_greater
actual: "{{ first_volume_pass_count }}"
threshold: "0"
- name: boundary_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/writer.log"
pattern: "/data/demo.bin: OK"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/generated-blockvolume.yaml"
pattern: "--volume-id="
save_as: generated_volume_id_count
- action: assert_greater
actual: "{{ generated_volume_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/generated-blockvolume.yaml"
pattern: "--iscsi-listen="
save_as: generated_iscsi_count
- action: assert_greater
actual: "{{ generated_iscsi_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo/iscsi-sessions.after-delete.txt"
pattern: "No active sessions"
save_as: no_iscsi_session_count
- action: assert_greater
actual: "{{ no_iscsi_session_count }}"
threshold: "0"
- name: cleanup_attribution
actions:
- action: exec
node: m02
cmd: "sudo -n iscsiadm -m node > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/iscsi-nodes.after-demo.txt 2>&1 || true; cd {{ product_root }} && bash scripts/summarize-alpha-demo-cleanup.sh /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/cleanup-attribution.txt /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/iscsi-nodes.after-demo.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/cleanup-attribution.txt"
pattern: "^pvc:sw-block-demo-pvc state=deleted"
save_as: product_cleanup_count
- action: assert_greater
actual: "{{ product_cleanup_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/cleanup-attribution.txt"
pattern: "cleaned_by=testops-guardrail"
save_as: testops_cleanup_count
- action: assert_greater
actual: "{{ testops_cleanup_count }}"
threshold: "0"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume"
name: "remote-phases"
ignore_error: true
@@ -7,8 +7,11 @@
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# -env product_root=/path/to/seaweed_block/on/node-a \
# -env ssh_key=/path/to/ssh/key/on/controller \
# -env node_host=192.0.2.10 \
# -env node_user=tester \
# -env artifact_root=/path/to/shared/artifacts \
# testops/scenarios/light-use-first-volume-failure-bundle-chain.yaml
name: light-use-first-volume-failure-bundle-chain
@@ -16,44 +19,48 @@ timeout: 16m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-first-volume-failure && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-first-volume-failure/demo"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: exec
node: m02
node: node-a
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/preflight.txt 2>&1"
node: node-a
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > {{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/preflight.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
@@ -63,22 +70,22 @@ phases:
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
@@ -88,21 +95,21 @@ phases:
- name: controlled_failure_bundle
actions:
- action: exec
node: m02
node: node-a
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_STOP_AFTER=blockvolume-ready SW_BLOCK_DEMO_COLLECT_OPS_STATUS=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-failure.exit_code; test \"$rc\" -eq 42'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo"
cmd: "cd {{ product_root }} && bash -lc 'set -a; source {{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_STOP_AFTER=blockvolume-ready SW_BLOCK_DEMO_COLLECT_OPS_STATUS=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > {{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-failure.exit_code; test \"$rc\" -eq 42'"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/run.log"
pattern: "\\[app-demo\\] controlled stop after blockvolume ready"
save_as: controlled_stop_count
- action: assert_greater
actual: "{{ controlled_stop_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-failure.exit_code"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-failure.exit_code"
pattern: "^42$"
save_as: expected_exit_count
- action: assert_greater
@@ -112,48 +119,48 @@ phases:
- name: failure_bundle_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-stop.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/controlled-stop.txt"
pattern: "^ops-status-collected:"
save_as: ops_status_collected_count
- action: assert_greater
actual: "{{ ops_status_collected_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/generated-blockvolume.yaml"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/generated-blockvolume.yaml"
pattern: "--status-addr="
save_as: generated_status_addr_count
- action: assert_greater
actual: "{{ generated_status_addr_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/ops-status-bundle.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/ops-status-bundle.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: bundle_command_count
- action: assert_greater
actual: "{{ bundle_command_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/ops-status-bundle.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/ops-status-bundle.json"
pattern: "\"volume_id\":"
save_as: bundle_volume_count
- action: assert_greater
actual: "{{ bundle_volume_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/volume-status-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/volume-status-summary.txt"
pattern: "^status:"
save_as: summary_status_count
- action: assert_greater
actual: "{{ summary_status_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/volume-status-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/demo/ops-status/volume-status-summary.txt"
pattern: "^volume: id="
save_as: summary_volume_count
- action: assert_greater
@@ -166,34 +173,35 @@ phases:
# ops-status can inspect a real target. Process hygiene is asserted after
# collect_and_cleanup uninstalls the alpha stack.
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
node: node-a
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure/uninstall"
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
node: node-a
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-failure"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-first-volume-failure"
name: "remote-phases"
ignore_error: true
@@ -1,254 +0,0 @@
# Runner-native light-use first-volume retry/idempotency chain.
#
# Goal:
# Prove a user can recover from a partial first-volume attempt by running the
# documented cleanup path, then re-run the same demo successfully. Also prove
# a successful run can be repeated immediately without a manual cleanup step.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/light-use-first-volume-retry-chain.yaml
name: light-use-first-volume-retry-chain
timeout: 30m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/success_rerun"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pre_clean_uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: exec
node: m02
cmd: "kubectl -n default get pvc sw-block-demo-pvc -o name > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pre-clean-residue.txt 2>&1 || true; kubectl -n default get deploy -l app=sw-blockvolume -o name >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pre-clean-residue.txt 2>&1 || true; ! grep -q '^persistentvolumeclaim/\\|^deployment.apps/' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pre-clean-residue.txt"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: partial_first_attempt
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_STOP_AFTER=blockvolume-ready SW_BLOCK_DEMO_KEEP_ON_STOP=1 SW_BLOCK_DEMO_COLLECT_OPS_STATUS=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/controlled-stop.exit_code; test \"$rc\" -eq 42'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/run.log"
pattern: "\\[app-demo\\] keeping resources for retry validation"
save_as: keep_resources_count
- action: assert_greater
actual: "{{ keep_resources_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "kubectl -n default get pvc sw-block-demo-pvc -o name > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/residue-before-retry.txt 2>&1 || true; kubectl -n default get deploy -l app=sw-blockvolume -o name >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/residue-before-retry.txt 2>&1 || true"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/residue-before-retry.txt"
pattern: "^persistentvolumeclaim/sw-block-demo-pvc$"
save_as: stale_pvc_count
- action: assert_greater
actual: "{{ stale_pvc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/partial/residue-before-retry.txt"
pattern: "^deployment.apps/"
save_as: stale_blockvolume_deploy_count
- action: assert_greater
actual: "{{ stale_blockvolume_deploy_count }}"
threshold: "0"
- name: cleanup_before_retry
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup/uninstall.log"
pattern: "\\[alpha-uninstall\\] PASS: seaweed-block alpha stack uninstall requested"
save_as: uninstall_pass_count
- action: assert_greater
actual: "{{ uninstall_pass_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "kubectl -n default get pvc sw-block-demo-pvc -o name > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup/residue-after-cleanup.txt 2>&1 || true; kubectl -n default get deploy -l app=sw-blockvolume -o name >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup/residue-after-cleanup.txt 2>&1 || true; ! grep -q '^persistentvolumeclaim/\\|^deployment.apps/' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_cleanup/residue-after-cleanup.txt"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- name: retry_first_volume_demo
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build/alpha-images.env; set +a; bash scripts/run-k8s-demo.sh {{ product_root }}'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_demo"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_demo/run.log"
pattern: "\\[app-demo\\] PASS: app pod wrote data, replacement app pod read it back through the same PVC, cleanup complete"
save_as: retry_pass_count
- action: assert_greater
actual: "{{ retry_pass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_demo/writer.log"
pattern: "/data/demo.bin: OK"
save_as: retry_writer_checksum_count
- action: assert_greater
actual: "{{ retry_writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/retry_demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: retry_reader_checksum_count
- action: assert_greater
actual: "{{ retry_reader_checksum_count }}"
threshold: "0"
- name: rerun_after_success_no_cleanup
actions:
- action: exec
node: m02
timeout: 10m
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/pin_build/alpha-images.env; set +a; bash scripts/run-k8s-demo.sh {{ product_root }}'"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/success_rerun"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/success_rerun/run.log"
pattern: "\\[app-demo\\] PASS: app pod wrote data, replacement app pod read it back through the same PVC, cleanup complete"
save_as: success_rerun_pass_count
- action: assert_greater
actual: "{{ success_rerun_pass_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/success_rerun/writer.log"
pattern: "/data/demo.bin: OK"
save_as: success_rerun_writer_checksum_count
- action: assert_greater
actual: "{{ success_rerun_writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/success_rerun/reader.log"
pattern: "/data/demo.bin: OK"
save_as: success_rerun_reader_checksum_count
- action: assert_greater
actual: "{{ success_rerun_reader_checksum_count }}"
threshold: "0"
- name: final_asserts
actions:
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-first-volume-retry"
name: "remote-phases"
ignore_error: true
@@ -1,97 +0,0 @@
# Runner-native Phase 80 gate: blockmaster exposes a failback authority runtime
# factory backed by its live Publisher. This is not a public failback RPC and
# does not enable automatic failback.
name: master-failback-runtime-factory-chain
timeout: 8m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: master_failback_runtime_factory_gate
actions:
- action: exec
node: m02
timeout: 7m
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory bash scripts/run-phase80-master-failback-runtime-factory-gate.sh {{ product_root }}"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^phase80_master_failback_runtime_factory_status=ok$"
save_as: phase80_ok
- action: assert_greater
actual: "{{ phase80_ok }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^host_failback_runtime_uses_live_publisher=true$"
save_as: live_publisher
- action: assert_greater
actual: "{{ live_publisher }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^publisher_authority_line_advanced=true$"
save_as: publisher_advanced
- action: assert_greater
actual: "{{ publisher_advanced }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^automatic_failback_enabled=false$"
save_as: automatic_disabled
- action: assert_greater
actual: "{{ automatic_disabled }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^public_failback_rpc_added=false$"
save_as: no_public_rpc
- action: assert_greater
actual: "{{ no_public_rpc }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^frontend_publication_allowed=false$"
save_as: no_frontend_publication
- action: assert_greater
actual: "{{ no_frontend_publication }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory/phase80-master-failback-runtime-factory-summary.txt"
pattern: "^storage_mutation_allowed=false$"
save_as: no_storage_mutation
- action: assert_greater
actual: "{{ no_storage_mutation }}"
threshold: "0"
- name: collect
always: true
actions:
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase80-master-failback-runtime-factory"
name: "remote-phases"
ignore_error: true
@@ -1,208 +0,0 @@
# Runner-native mounted failover MVP RF=2 app-path baseline gate.
#
# Goal:
# Prove the documented app/PVC writer -> reader path works with an RF=2
# product-owned blockvolume placement before injecting primary failure. This
# is a baseline for the mounted failover gate, not a recovery claim.
name: mounted-failover-rf2-app-baseline-chain
timeout: 20m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: render_rf2_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"2\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/demo-app-rf2.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/demo-app-rf2.yaml"
pattern: "replicationFactor: \"2\""
save_as: rf2_manifest_count
- action: assert_greater
actual: "{{ rf2_manifest_count }}"
threshold: "0"
- name: rf2_app_writer_reader
actions:
- action: exec
node: m02
timeout: 12m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/demo-app-rf2.yaml SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-rf2-app SW_BLOCK_DEMO_STOP_AFTER=reader-verified bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/exit_code.txt; test \"$rc\" -eq 44'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/run.log"
pattern: "logical_servers=2"
save_as: logical_servers_count
- action: assert_greater
actual: "{{ logical_servers_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/run.log"
pattern: "expected_slots_per_volume=2"
save_as: expected_slots_count
- action: assert_greater
actual: "{{ expected_slots_count }}"
threshold: "0"
- name: app_path_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/generated-blockvolume.yaml"
pattern: "--replica-id=r1"
save_as: r1_manifest_count
- action: assert_greater
actual: "{{ r1_manifest_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/generated-blockvolume.yaml"
pattern: "--replica-id=r2"
save_as: r2_manifest_count
- action: assert_greater
actual: "{{ r2_manifest_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/ops-inventory-reader-verified/volume-inventory-summary.txt"
pattern: "pvc=sw-block-demo-pvc"
save_as: inventory_pvc_count
- action: assert_greater
actual: "{{ inventory_pvc_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/ops-inventory-reader-verified/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: inventory_rf2_count
- action: assert_greater
actual: "{{ inventory_rf2_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/demo/ops-inventory-reader-verified/nested-ops-status-bundles.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: nested_status_bundle_count
- action: assert_greater
actual: "{{ nested_status_bundle_count }}"
threshold: "1"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-rf2-app; find /var/lib/sw-block -maxdepth 1 -type d -name 'testops-{{ run_id }}-*' -exec sudo rm -rf -- {} + 2>/dev/null || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: exec
node: m02
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-rf2-app"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-app-baseline"
name: "remote-phases"
ignore_error: true
@@ -1,234 +0,0 @@
# Runner-native mounted failover MVP degraded-replica negative gate.
#
# Goal:
# Prove an RF=2 Kubernetes placement with one replica workload scaled to zero
# is reported as degraded and not as a recovered/healthy RF=2 state. This is
# a D5 negative fixture, not the final mounted recovery claim.
name: mounted-failover-rf2-degraded-replica-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2 /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory"
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-degraded-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-rf2-degraded --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: install_rf2_alpha_stack
actions:
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/pin_build/alpha-images.env; set +a; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/install SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 bash scripts/install-k8s-alpha.sh {{ product_root }}'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/install/install.log"
pattern: "logical_servers=2"
save_as: logical_servers_count
- action: assert_greater
actual: "{{ logical_servers_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/install/install.log"
pattern: "expected_slots_per_volume=2"
save_as: expected_slots_count
- action: assert_greater
actual: "{{ expected_slots_count }}"
threshold: "0"
- name: rf2_placement_boundary
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/rf2-degraded.yaml <<'YAML'\napiVersion: storage.k8s.io/v1\nkind: StorageClass\nmetadata:\n name: sw-block-rf2-degraded\nprovisioner: block.csi.seaweedfs.com\nvolumeBindingMode: Immediate\nallowVolumeExpansion: false\nparameters:\n replicationFactor: \"2\"\n sw-block.seaweedfs.com/protocol: iscsi\n---\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n name: sw-block-rf2-degraded-pvc\n namespace: default\nspec:\n accessModes:\n - ReadWriteOnce\n storageClassName: sw-block-rf2-degraded\n resources:\n requests:\n storage: 1Mi\nYAML\nkubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/rf2-degraded.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/apply-rf2.log 2>&1\nkubectl -n default wait --for=jsonpath='{.status.phase}'=Bound pvc/sw-block-rf2-degraded-pvc --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/apply-rf2.log 2>&1\nfor i in $(seq 1 120); do count=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2 && break; sleep 1; done\ncount=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -eq 2\nkubectl -n default wait --for=condition=available deploy -l app=sw-blockvolume --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/apply-rf2.log 2>&1\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/blockvolumes.before-degrade.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/blockvolumes.before-degrade.txt"
pattern: "^sw-blockvolume-"
save_as: rf2_deploy_count
- action: assert_greater
actual: "{{ rf2_deploy_count }}"
threshold: "1"
- name: degrade_one_replica
actions:
- action: exec
node: m02
timeout: 3m
cmd: "set -eu\nOUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2\nR2_DEPLOY=$(kubectl -n default get deploy -l app=sw-blockvolume,sw-block.seaweedfs.com/replica=r2 -o jsonpath='{.items[0].metadata.name}')\ntest -n \"$R2_DEPLOY\"\necho \"$R2_DEPLOY\" > \"$OUT/degraded-deployment.txt\"\nkubectl -n default scale deploy \"$R2_DEPLOY\" --replicas=0 > \"$OUT/scale-r2.log\" 2>&1\nfor i in $(seq 1 60); do ready=$(kubectl -n default get deploy \"$R2_DEPLOY\" -o jsonpath='{.status.readyReplicas}' 2>/dev/null || true); test -z \"$ready\" -o \"$ready\" = \"0\" && break; sleep 1; done\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > \"$OUT/blockvolumes.after-degrade.txt\"\nready=$(kubectl -n default get deploy \"$R2_DEPLOY\" -o jsonpath='{.status.readyReplicas}' 2>/dev/null || true); test -z \"$ready\" -o \"$ready\" = \"0\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/rf2/degraded-deployment.txt"
pattern: "sw-blockvolume-"
save_as: degraded_deploy_name_count
- action: assert_greater
actual: "{{ degraded_deploy_name_count }}"
threshold: "0"
- name: inventory_after_degraded_replica
actions:
- action: exec
node: m02
timeout: 4m
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; find \"$OUT/volumes\" -name ops-status-bundle.json -exec cat {} \\; > \"$OUT/nested-ops-status-bundles.json\" 2>/dev/null || true; exit \"$rc\"'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/exit_code.txt"
pattern: "^0$"
save_as: inventory_exit_zero_count
- action: assert_greater
actual: "{{ inventory_exit_zero_count }}"
threshold: "0"
- name: inventory_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-rf2-degraded-pvc"
save_as: rf2_pvc_identity_count
- action: assert_greater
actual: "{{ rf2_pvc_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: rf2_observed_count
- action: assert_greater
actual: "{{ rf2_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
pattern: "replica: volume=.*replica=r2 .*status=unhealthy"
save_as: r2_unhealthy_count
- action: assert_greater
actual: "{{ r2_unhealthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
pattern: "replica_degraded=r2 status=unhealthy"
save_as: r2_degraded_issue_count
- action: assert_greater
actual: "{{ r2_degraded_issue_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
pattern: "ops_status=unhealthy reason=replication_role_not_ready"
save_as: replication_not_ready_count
- action: assert_greater
actual: "{{ replication_not_ready_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'generated_deployment_missing\\|observed_replicas=0 desired_replicas=2\\|replica_slot_missing=unknown' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/inventory/nested-ops-status-bundles.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: nested_status_bundle_count
- action: assert_greater
actual: "{{ nested_status_bundle_count }}"
threshold: "0"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-degraded-pvc --ignore-not-found=true --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/delete-rf2-pvc.log 2>&1 || true; kubectl delete sc sw-block-rf2-degraded --ignore-not-found=true > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/delete-rf2-sc.log 2>&1 || true"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-degraded"
name: "remote-phases"
ignore_error: true
@@ -1,228 +0,0 @@
# Runner-native mounted failover MVP RF=2 placement gate.
#
# Goal:
# Prove the alpha stack can be explicitly configured with two logical
# Seaweed Block servers on one Kubernetes node and render two RF=2
# blockvolume workloads. This is a placement/readiness stepping stone, not
# the mounted failover recovery claim.
name: mounted-failover-rf2-placement-chain
timeout: 18m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2 /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory"
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-placement-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-rf2-placement --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: install_rf2_alpha_stack
actions:
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/pin_build/alpha-images.env; set +a; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/install SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 bash scripts/install-k8s-alpha.sh {{ product_root }}'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/install/install.log"
pattern: "logical_servers=2"
save_as: logical_servers_count
- action: assert_greater
actual: "{{ logical_servers_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/install/block-stack.rendered.yaml"
pattern: "server_id: m02-r2"
save_as: second_logical_server_count
- action: assert_greater
actual: "{{ second_logical_server_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/install/block-stack.rendered.yaml"
pattern: "--expected-slots-per-volume=2"
save_as: expected_slots_count
- action: assert_greater
actual: "{{ expected_slots_count }}"
threshold: "0"
- name: rf2_placement_boundary
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/rf2-placement.yaml <<'YAML'\napiVersion: storage.k8s.io/v1\nkind: StorageClass\nmetadata:\n name: sw-block-rf2-placement\nprovisioner: block.csi.seaweedfs.com\nvolumeBindingMode: Immediate\nallowVolumeExpansion: false\nparameters:\n replicationFactor: \"2\"\n sw-block.seaweedfs.com/protocol: iscsi\n---\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n name: sw-block-rf2-placement-pvc\n namespace: default\nspec:\n accessModes:\n - ReadWriteOnce\n storageClassName: sw-block-rf2-placement\n resources:\n requests:\n storage: 1Mi\nYAML\nkubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/rf2-placement.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/apply-rf2.log 2>&1\nkubectl -n default wait --for=jsonpath='{.status.phase}'=Bound pvc/sw-block-rf2-placement-pvc --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/apply-rf2.log 2>&1\nfor i in $(seq 1 120); do count=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2 && break; sleep 1; done\ncount=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -eq 2\nkubectl -n default wait --for=condition=available deploy -l app=sw-blockvolume --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/apply-rf2.log 2>&1\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/blockvolumes.after-rf2.txt\nkubectl -n kube-system logs deploy/sw-blockmaster -c blockmaster > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/blockmaster.after-rf2.log 2>&1 || true"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/blockvolumes.after-rf2.txt"
pattern: "^sw-blockvolume-"
save_as: rf2_deploy_count
- action: assert_greater
actual: "{{ rf2_deploy_count }}"
threshold: "1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/rf2/blockmaster.after-rf2.log"
pattern: "replication_factor=2"
save_as: rf2_create_count
- action: assert_greater
actual: "{{ rf2_create_count }}"
threshold: "0"
- name: inventory_rf2_placement
actions:
- action: exec
node: m02
timeout: 4m
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; find \"$OUT/volumes\" -name ops-status-bundle.json -exec cat {} \\; > \"$OUT/nested-ops-status-bundles.json\" 2>/dev/null || true; exit \"$rc\"'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/exit_code.txt"
pattern: "^0$"
save_as: inventory_exit_zero_count
- action: assert_greater
actual: "{{ inventory_exit_zero_count }}"
threshold: "0"
- name: inventory_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-rf2-placement-pvc"
save_as: rf2_pvc_identity_count
- action: assert_greater
actual: "{{ rf2_pvc_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: rf2_observed_count
- action: assert_greater
actual: "{{ rf2_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/volume-inventory-summary.txt"
pattern: "replica: volume=.*replica=r1 .*server=m02-r1 node=m02"
save_as: r1_logical_server_count
- action: assert_greater
actual: "{{ r1_logical_server_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/volume-inventory-summary.txt"
pattern: "replica: volume=.*replica=r2 .*server=m02-r2 node=m02"
save_as: r2_logical_server_count
- action: assert_greater
actual: "{{ r2_logical_server_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'generated_deployment_missing\\|observed_replicas=0 desired_replicas=2\\|replica_slot_missing=unknown' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/inventory/nested-ops-status-bundles.json"
pattern: "\"command\": \"sw-block ops status\""
save_as: nested_status_bundle_count
- action: assert_greater
actual: "{{ nested_status_bundle_count }}"
threshold: "1"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-placement-pvc --ignore-not-found=true --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/delete-rf2-pvc.log 2>&1 || true; kubectl delete sc sw-block-rf2-placement --ignore-not-found=true > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/delete-rf2-sc.log 2>&1 || true"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-placement"
name: "remote-phases"
ignore_error: true
@@ -1,296 +0,0 @@
# Runner-native mounted failover MVP controlled-primary-failure safe-refusal gate.
#
# Goal:
# Write data through the RF=2 Kubernetes app/PVC path, identify the current
# primary, inject a scoped primary blockvolume stop before the replacement
# reader attaches, and require an explicit safe-refusal bundle. This does not
# claim recovery; it proves the product refuses to promote a not-ready
# candidate silently.
name: mounted-failover-rf2-primary-failure-safe-refusal-chain
timeout: 22m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: render_rf2_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"2\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/demo-app-rf2.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/demo-app-rf2.yaml"
pattern: "replicationFactor: \"2\""
save_as: rf2_manifest_count
- action: assert_greater
actual: "{{ rf2_manifest_count }}"
threshold: "0"
- name: rf2_primary_failure_safe_refusal
actions:
- action: exec
node: m02
timeout: 12m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/demo-app-rf2.yaml SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-rf2-primary-safe-refusal SW_BLOCK_DEMO_FAIL_PRIMARY_BEFORE_READER=scale-primary-to-zero bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/exit_code.txt; test \"$rc\" -eq 46'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/run.log"
pattern: "fail_primary_before_reader=scale-primary-to-zero"
save_as: fail_primary_mode_count
- action: assert_greater
actual: "{{ fail_primary_mode_count }}"
threshold: "0"
- name: safe_refusal_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "failover_status: refused"
save_as: failover_refused_count
- action: assert_greater
actual: "{{ failover_refused_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "ack_profile: sync-quorum"
save_as: safe_refusal_sync_quorum_count
- action: assert_greater
actual: "{{ safe_refusal_sync_quorum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/generated-blockvolume.yaml"
pattern: "--replication-ack=sync-quorum"
save_as: generated_sync_quorum_count
- action: assert_greater
actual: "{{ generated_sync_quorum_count }}"
threshold: "1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "failure_class=primary-blockvolume-controlled-stop"
save_as: failure_class_count
- action: assert_greater
actual: "{{ failure_class_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt; before=$(sed -n 's/^before_primary_replica=//p' \"$MARKER\"); failed=$(sed -n 's/^failed_replica=//p' \"$MARKER\"); test -n \"$before\" && test \"$before\" = \"$failed\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "candidate_ready=false"
save_as: candidate_not_ready_count
- action: assert_greater
actual: "{{ candidate_not_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/mounted-writer-required-frontier.txt"
pattern: "^pvc-.*=[0-9][0-9]*$"
save_as: mounted_writer_frontier_count
- action: assert_greater
actual: "{{ mounted_writer_frontier_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "required_frontier=pvc-"
save_as: safe_refusal_required_frontier_count
- action: assert_greater
actual: "{{ safe_refusal_required_frontier_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: "required_frontier_known=true"
save_as: before_required_frontier_known_count
- action: assert_greater
actual: "{{ before_required_frontier_known_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'required_frontier_missing' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "candidate_promotion_evidence=promotion: .* candidate_ready=false"
save_as: candidate_promotion_evidence_count
- action: assert_greater
actual: "{{ candidate_promotion_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "reason=replication_role_not_ready"
save_as: safe_refusal_exact_reason_count
- action: assert_greater
actual: "{{ safe_refusal_exact_reason_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "candidate_evidence=.*replication=not_ready"
save_as: candidate_evidence_count
- action: assert_greater
actual: "{{ candidate_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "data_check_after_failover=not_claimed"
save_as: no_recovery_claim_count
- action: assert_greater
actual: "{{ no_recovery_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "target_ready_replicas=0"
save_as: target_scaled_zero_count
- action: assert_greater
actual: "{{ target_scaled_zero_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: before_rf2_count
- action: assert_greater
actual: "{{ before_rf2_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: " role=primary "
save_as: before_primary_count
- action: assert_greater
actual: "{{ before_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
pattern: "inventory_status: unhealthy"
save_as: after_unhealthy_count
- action: assert_greater
actual: "{{ after_unhealthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/primary-failure-safe-refusal.txt"
pattern: "after_issue_evidence="
save_as: after_issue_evidence_count
- action: assert_greater
actual: "{{ after_issue_evidence_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/demo/reader.log 2>/dev/null"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "find /var/lib/sw-block -maxdepth 1 -type d -name 'testops-{{ run_id }}-*' -exec rm -rf {} + 2>/dev/null || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-primary-safe-refusal"
name: "remote-phases"
ignore_error: true
@@ -1,207 +0,0 @@
# Runner-native RF=2 promotion-ready gate.
#
# Goal:
# Write data through the RF=2 Kubernetes app/PVC path, derive the mounted
# writer durable frontier from the primary support bundle, and require a
# non-primary replica to become promotion-ready under sync-quorum before any
# primary failure is injected. This does not claim recovery.
name: mounted-failover-rf2-promotion-ready-chain
timeout: 24m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: render_rf2_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"2\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/demo-app-rf2.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/demo-app-rf2.yaml"
pattern: "replicationFactor: \"2\""
save_as: rf2_manifest_count
- action: assert_greater
actual: "{{ rf2_manifest_count }}"
threshold: "0"
- name: rf2_promotion_ready
actions:
- action: exec
node: m02
timeout: 14m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/demo-app-rf2.yaml SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-rf2-promotion-ready SW_BLOCK_DEMO_STOP_AFTER=promotion-ready bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/exit_code.txt; test \"$rc\" -eq 47'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/run.log"
pattern: "controlled stop after promotion-ready"
save_as: promotion_ready_log_count
ignore_error: true
- name: promotion_ready_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/promotion-ready.txt"
pattern: "promotion_ready_status: ready"
save_as: promotion_ready_count
- action: assert_greater
actual: "{{ promotion_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/promotion-ready.txt"
pattern: "ack_profile: sync-quorum"
save_as: sync_quorum_count
- action: assert_greater
actual: "{{ sync_quorum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/promotion-ready.txt"
pattern: "candidate_ready=true"
save_as: candidate_ready_count
- action: assert_greater
actual: "{{ candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/promotion-ready.txt"
pattern: "candidate_promotion_evidence=promotion: .* candidate_ready=true"
save_as: candidate_promotion_evidence_count
- action: assert_greater
actual: "{{ candidate_promotion_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/mounted-writer-required-frontier.txt"
pattern: "^pvc-.*=[0-9][0-9]*$"
save_as: mounted_writer_frontier_count
- action: assert_greater
actual: "{{ mounted_writer_frontier_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/ops-inventory-promotion-ready/volume-inventory-summary.txt"
pattern: "required_frontier_known=true"
save_as: required_frontier_known_count
- action: assert_greater
actual: "{{ required_frontier_known_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/ops-inventory-promotion-ready/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: rf2_count
- action: assert_greater
actual: "{{ rf2_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/demo/reader.log 2>/dev/null"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "find /var/lib/sw-block -maxdepth 1 -type d -name 'testops-{{ run_id }}-*' -exec rm -rf {} + 2>/dev/null || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-ready"
name: "remote-phases"
ignore_error: true
@@ -1,338 +0,0 @@
# Runner-native RF=2 promotion recovery gate.
#
# Goal:
# Write data through the RF=2 Kubernetes app/PVC path, prove the non-primary
# replica is promotion-ready under an explicit controlled-best-effort-demo
# claim profile, stop the current primary, wait for master/authority to
# publish the candidate as the new primary, then recreate/reattach the reader
# pod through CSI and verify the same data. This is not a quorum durability
# claim; RF=3 sync-quorum owns that product line.
name: mounted-failover-rf2-promotion-recovery-chain
timeout: 28m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: render_rf2_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"2\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/demo-app-rf2.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/demo-app-rf2.yaml"
pattern: "replicationFactor: \"2\""
save_as: rf2_manifest_count
- action: assert_greater
actual: "{{ rf2_manifest_count }}"
threshold: "0"
- name: rf2_promotion_recovery
actions:
- action: exec
node: m02
timeout: 16m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/demo-app-rf2.yaml SW_BLOCK_ALPHA_LOGICAL_SERVERS=2 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=2 SW_BLOCK_ALPHA_REPLICATION_ACK=best-effort SW_BLOCK_OPS_INVENTORY_CLAIM_PROFILE=controlled-best-effort-demo SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-rf2-promotion-recovery SW_BLOCK_DEMO_REQUIRE_PROMOTION_READY_BEFORE_FAILURE=1 SW_BLOCK_DEMO_FAIL_PRIMARY_BEFORE_READER=scale-primary-to-zero SW_BLOCK_DEMO_STOP_AFTER=reader-verified bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/exit_code.txt; test \"$rc\" -eq 44'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/run.log"
pattern: "fail_primary_before_reader=scale-primary-to-zero"
save_as: fail_primary_mode_count
- action: assert_greater
actual: "{{ fail_primary_mode_count }}"
threshold: "0"
- name: recovery_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "ack_profile: best-effort"
save_as: best_effort_ack_count
- action: assert_greater
actual: "{{ best_effort_ack_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: "claim_profile=controlled-best-effort-demo"
save_as: controlled_best_effort_claim_count
- action: assert_greater
actual: "{{ controlled_best_effort_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "candidate_ready=true"
save_as: candidate_ready_count
- action: assert_greater
actual: "{{ candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "failover_status: promoted"
save_as: failover_promoted_count
- action: assert_greater
actual: "{{ failover_promoted_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/iscsi-sessions.before-primary-failure.txt"
pattern: "No active sessions"
save_as: pre_failure_no_session_count
- action: assert_greater
actual: "{{ pre_failure_no_session_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "target_ready_replicas=0"
save_as: old_primary_stopped_count
- action: assert_greater
actual: "{{ old_primary_stopped_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt; promoted=$(sed -n 's/^promoted_replica=//p' \"$MARKER\"); after=$(sed -n 's/^after_primary_replica=//p' \"$MARKER\"); failed=$(sed -n 's/^failed_replica=//p' \"$MARKER\"); test -n \"$promoted\" && test \"$promoted\" = \"$after\" && test \"$promoted\" != \"$failed\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "post_failure_primary_count=1"
save_as: single_primary_count
- action: assert_greater
actual: "{{ single_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "frontend_primary_ready_issue_count=0"
save_as: no_frontend_ready_issue_count
- action: assert_greater
actual: "{{ no_frontend_ready_issue_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'frontend_primary_ready=true' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "failed_replica_after_evidence=replica:"
save_as: failed_replica_evidence_count
- action: assert_greater
actual: "{{ failed_replica_evidence_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt; failed_line=$(sed -n 's/^failed_replica_after_evidence=//p' \"$MARKER\"); test -n \"$failed_line\" && ! printf '%s\n' \"$failed_line\" | grep -q ' role=primary '"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "before_publish_target_evidence=replica:"
save_as: before_publish_evidence_count
- action: assert_greater
actual: "{{ before_publish_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "after_publish_target_evidence=replica:"
save_as: after_publish_evidence_count
- action: assert_greater
actual: "{{ after_publish_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/apply-reader.log"
pattern: "sw-block-demo-reader"
save_as: reader_apply_count
- action: assert_greater
actual: "{{ reader_apply_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt; portal=$(sed -n 's/^after_publish_target_evidence=.* frontend=\\([^ ]*\\).*/\\1/p' \"$MARKER\"); test -n \"$portal\" && grep -q \"NodeStageVolume: .* staged transport=iscsi portal=${portal}\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/blockcsi-node.log"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-recovery.txt"
pattern: "data_check_after_failover=reader_checksum_passed"
save_as: reader_after_failover_count
- action: assert_greater
actual: "{{ reader_after_failover_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=primary_observed"
save_as: timeline_primary_observed_count
- action: assert_greater
actual: "{{ timeline_primary_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=candidate_evaluated .*candidate_ready=true"
save_as: timeline_candidate_ready_count
- action: assert_greater
actual: "{{ timeline_candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=primary_failure_injected"
save_as: timeline_failure_injected_count
- action: assert_greater
actual: "{{ timeline_failure_injected_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=authority_published .*to="
save_as: timeline_authority_published_count
- action: assert_greater
actual: "{{ timeline_authority_published_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=csi_reattach_observed"
save_as: timeline_csi_reattach_count
- action: assert_greater
actual: "{{ timeline_csi_reattach_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/control-plane-timeline.txt"
pattern: "event=data_check .*result=reader_checksum_passed"
save_as: timeline_data_check_count
- action: assert_greater
actual: "{{ timeline_data_check_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=2"
save_as: rf2_observed_count
- action: assert_greater
actual: "{{ rf2_observed_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! test -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/demo/primary-failure-safe-refusal.txt"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-rf2-promotion-recovery; find /var/lib/sw-block -maxdepth 1 -type d -name 'testops-{{ run_id }}-*' -exec sudo rm -rf -- {} + 2>/dev/null || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: exec
node: m02
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-rf2-promotion-recovery"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf2-promotion-recovery"
name: "remote-phases"
ignore_error: true
@@ -1,218 +0,0 @@
# Runner-native mounted failover MVP safe-refusal gate.
#
# Goal:
# Prove the current alpha Kubernetes topology refuses an RF=2 mounted
# failover setup safely when only one placement candidate exists. This is
# intentionally not the happy failover claim; it is the D4 safe-refusal path
# that must stay visible until live RF=2 Kubernetes placement is proven.
#
# Expected invocation:
# swblock run \
# -env product_root=/path/to/seaweed_block/on/m02 \
# -env ssh_key=/path/to/testdev_key/on/controller \
# testops/scenarios/mounted-failover-rf2-safe-refusal-chain.yaml
name: mounted-failover-rf2-safe-refusal-chain
timeout: 16m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2 /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory"
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-safe-refusal-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-rf2-safe-refusal --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: install_alpha_stack
actions:
- action: exec
node: m02
timeout: 6m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/pin_build/alpha-images.env; set +a; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/install bash scripts/install-k8s-alpha.sh {{ product_root }}'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/install/install.log"
pattern: "PASS: seaweed-block alpha stack installed"
save_as: install_pass_count
- action: assert_greater
actual: "{{ install_pass_count }}"
threshold: "0"
- name: rf2_safe_refusal_boundary
actions:
- action: exec
node: m02
timeout: 5m
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/rf2-safe-refusal.yaml <<'YAML'\napiVersion: storage.k8s.io/v1\nkind: StorageClass\nmetadata:\n name: sw-block-rf2-safe-refusal\nprovisioner: block.csi.seaweedfs.com\nvolumeBindingMode: Immediate\nallowVolumeExpansion: false\nparameters:\n replicationFactor: \"2\"\n sw-block.seaweedfs.com/protocol: iscsi\n---\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n name: sw-block-rf2-safe-refusal-pvc\n namespace: default\nspec:\n accessModes:\n - ReadWriteOnce\n storageClassName: sw-block-rf2-safe-refusal\n resources:\n requests:\n storage: 1Mi\nYAML\nkubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/rf2-safe-refusal.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/apply-rf2.log 2>&1\nkubectl -n default wait --for=jsonpath='{.status.phase}'=Bound pvc/sw-block-rf2-safe-refusal-pvc --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/apply-rf2.log 2>&1\nsleep 5\nkubectl -n default get pvc sw-block-rf2-safe-refusal-pvc -o yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/rf2-pvc.yaml\nkubectl get pv -o yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/pv.after-rf2.yaml\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/blockvolumes.after-rf2.txt\nkubectl -n kube-system logs deploy/sw-blockmaster -c blockmaster > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/blockmaster.after-rf2.log 2>&1 || true\n! kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | grep -q ."
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/apply-rf2.log"
pattern: "persistentvolumeclaim/sw-block-rf2-safe-refusal-pvc created"
save_as: rf2_pvc_created_count
- action: assert_greater
actual: "{{ rf2_pvc_created_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q '^sw-blockvolume-' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/rf2/blockvolumes.after-rf2.txt"
- name: inventory_safe_refusal
actions:
- action: exec
node: m02
timeout: 4m
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; exit \"$rc\"'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/exit_code.txt"
pattern: "^0$"
save_as: inventory_exit_zero_count
- action: assert_greater
actual: "{{ inventory_exit_zero_count }}"
threshold: "0"
- name: inventory_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "^inventory_status: unhealthy$"
save_as: inventory_unhealthy_count
- action: assert_greater
actual: "{{ inventory_unhealthy_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "pvc=sw-block-rf2-safe-refusal-pvc"
save_as: rf2_pvc_identity_count
- action: assert_greater
actual: "{{ rf2_pvc_identity_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "rf=2 desired=2 observed=0"
save_as: rf2_desired_observed_count
- action: assert_greater
actual: "{{ rf2_desired_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "generated_deployment_missing"
save_as: generated_missing_count
- action: assert_greater
actual: "{{ generated_missing_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "observed_replicas=0 desired_replicas=2"
save_as: observed_deficit_count
- action: assert_greater
actual: "{{ observed_deficit_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/inventory/volume-inventory-summary.txt"
pattern: "replica_slot_missing=unknown"
save_as: missing_slot_count
- action: assert_greater
actual: "{{ missing_slot_count }}"
threshold: "0"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
cmd: "kubectl -n default delete pvc sw-block-rf2-safe-refusal-pvc --ignore-not-found=true --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/delete-rf2-pvc.log 2>&1 || true; kubectl delete sc sw-block-rf2-safe-refusal --ignore-not-found=true > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/delete-rf2-sc.log 2>&1 || true"
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-safe-refusal"
name: "remote-phases"
ignore_error: true
@@ -1,338 +0,0 @@
# Runner-native RF=3 sync-quorum recovery gate.
#
# Goal:
# Write data through the RF=3 Kubernetes app/PVC path with sync-quorum,
# prove a non-primary replica is promotion-ready under the beta-recovery
# claim profile, stop the current primary, wait for master/authority to
# publish a candidate as the new primary, then recreate/reattach the reader
# pod through CSI and verify the same data. This is the durable writable HA
# Stage 1 product line.
name: mounted-failover-rf3-sync-quorum-recovery-chain
timeout: 28m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
env.SW_BLOCK_IMPORT_K3S: "1"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/pin_build"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- name: render_rf3_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/demo-app-rf3.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/demo-app-rf3.yaml"
pattern: "replicationFactor: \"3\""
save_as: rf3_manifest_count
- action: assert_greater
actual: "{{ rf3_manifest_count }}"
threshold: "0"
- name: rf3_sync_quorum_recovery
actions:
- action: exec
node: m02
timeout: 16m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/demo-app-rf3.yaml SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-rf3-sync-quorum-recovery SW_BLOCK_DEMO_REQUIRE_PROMOTION_READY_BEFORE_FAILURE=1 SW_BLOCK_DEMO_FAIL_PRIMARY_BEFORE_READER=scale-primary-to-zero SW_BLOCK_DEMO_STOP_AFTER=reader-verified bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/exit_code.txt; test \"$rc\" -eq 44'"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/run.log"
pattern: "fail_primary_before_reader=scale-primary-to-zero"
save_as: fail_primary_mode_count
- action: assert_greater
actual: "{{ fail_primary_mode_count }}"
threshold: "0"
- name: recovery_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "ack_profile: sync-quorum"
save_as: sync_quorum_ack_count
- action: assert_greater
actual: "{{ sync_quorum_ack_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: "claim_profile=beta-recovery"
save_as: beta_recovery_claim_count
- action: assert_greater
actual: "{{ beta_recovery_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "candidate_ready=true"
save_as: candidate_ready_count
- action: assert_greater
actual: "{{ candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "failover_status: promoted"
save_as: failover_promoted_count
- action: assert_greater
actual: "{{ failover_promoted_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/iscsi-sessions.before-primary-failure.txt"
pattern: "No active sessions"
save_as: pre_failure_no_session_count
- action: assert_greater
actual: "{{ pre_failure_no_session_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "target_ready_replicas=0"
save_as: old_primary_stopped_count
- action: assert_greater
actual: "{{ old_primary_stopped_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt; promoted=$(sed -n 's/^promoted_replica=//p' \"$MARKER\"); after=$(sed -n 's/^after_primary_replica=//p' \"$MARKER\"); failed=$(sed -n 's/^failed_replica=//p' \"$MARKER\"); test -n \"$promoted\" && test \"$promoted\" = \"$after\" && test \"$promoted\" != \"$failed\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "post_failure_primary_count=1"
save_as: single_primary_count
- action: assert_greater
actual: "{{ single_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "frontend_primary_ready_issue_count=0"
save_as: no_frontend_ready_issue_count
- action: assert_greater
actual: "{{ no_frontend_ready_issue_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! grep -q 'frontend_primary_ready=true' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "failed_replica_after_evidence=replica:"
save_as: failed_replica_evidence_count
- action: assert_greater
actual: "{{ failed_replica_evidence_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt; failed_line=$(sed -n 's/^failed_replica_after_evidence=//p' \"$MARKER\"); test -n \"$failed_line\" && ! printf '%s\n' \"$failed_line\" | grep -q ' role=primary '"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "before_publish_target_evidence=replica:"
save_as: before_publish_evidence_count
- action: assert_greater
actual: "{{ before_publish_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "after_publish_target_evidence=replica:"
save_as: after_publish_evidence_count
- action: assert_greater
actual: "{{ after_publish_evidence_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/apply-reader.log"
pattern: "sw-block-demo-reader"
save_as: reader_apply_count
- action: assert_greater
actual: "{{ reader_apply_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "MARKER=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt; portal=$(sed -n 's/^after_publish_target_evidence=.* frontend=\\([^ ]*\\).*/\\1/p' \"$MARKER\"); test -n \"$portal\" && grep -q \"NodeStageVolume: .* staged transport=iscsi portal=${portal}\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/blockcsi-node.log"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-recovery.txt"
pattern: "data_check_after_failover=reader_checksum_passed"
save_as: reader_after_failover_count
- action: assert_greater
actual: "{{ reader_after_failover_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=primary_observed"
save_as: timeline_primary_observed_count
- action: assert_greater
actual: "{{ timeline_primary_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=candidate_evaluated .*candidate_ready=true"
save_as: timeline_candidate_ready_count
- action: assert_greater
actual: "{{ timeline_candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=primary_failure_injected"
save_as: timeline_failure_injected_count
- action: assert_greater
actual: "{{ timeline_failure_injected_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=authority_published .*to="
save_as: timeline_authority_published_count
- action: assert_greater
actual: "{{ timeline_authority_published_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=csi_reattach_observed"
save_as: timeline_csi_reattach_count
- action: assert_greater
actual: "{{ timeline_csi_reattach_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/control-plane-timeline.txt"
pattern: "event=data_check .*result=reader_checksum_passed"
save_as: timeline_data_check_count
- action: assert_greater
actual: "{{ timeline_data_check_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
pattern: "rf=3 desired=3 observed=3"
save_as: rf3_observed_count
- action: assert_greater
actual: "{{ rf3_observed_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "! test -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/demo/primary-failure-safe-refusal.txt"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-rf3-sync-quorum-recovery; find /var/lib/sw-block -maxdepth 1 -type d -name 'testops-{{ run_id }}-*' -exec sudo rm -rf -- {} + 2>/dev/null || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: exec
node: m02
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-rf3-sync-quorum-recovery"
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-mounted-failover-rf3-sync-quorum-recovery"
name: "remote-phases"
ignore_error: true
@@ -13,44 +13,49 @@ timeout: 34m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
node_host: "" # address of the test node; set with -env node_host=<address>
node_user: "" # ssh user on the test node; set with -env node_user=<user>
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
node_ssh_key: "" # key path on the test node for the image import; set with -env node_ssh_key=<path>
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
node-a:
host: "{{ node_host }}"
user: "{{ node_user }}"
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-node-loss-survival && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-node-loss-survival/demo"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: exec
node: m02
node: node-a
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*blockmaste[r]' >/dev/null 2>&1 || true; sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-node-loss-survival >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/preflight.txt 2>&1"
node: node-a
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/preflight.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
@@ -60,10 +65,10 @@ phases:
- name: discover_multinode_topology
actions:
- action: exec
node: m02
node: node-a
cmd: |
set -euo pipefail
B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival
B={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival
cd {{ product_root }}
bash scripts/preflight-node-loss-lab.sh \
--min-k8s-nodes 3 \
@@ -73,16 +78,16 @@ phases:
--placement-out "$B/node-placement.before.txt" \
> "$B/node-loss-lab-preflight.txt" 2>&1
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/node-placement.before.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/node-placement.before.txt"
pattern: "node_loss_topology_eligible=true"
save_as: topology_eligible_count
- action: assert_greater
actual: "{{ topology_eligible_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/node-placement.before.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/node-placement.before.txt"
pattern: "physical_host_loss_claimed=false"
save_as: no_physical_host_loss_claim_count
- action: assert_greater
@@ -92,40 +97,40 @@ phases:
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
node: node-a
timeout: 8m
env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ node_ssh_key }}"
cmd: |
set -euo pipefail
B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival
B={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival
cd {{ product_root }}
set -a
source "$B/node-specs.env"
set +a
SW_BLOCK_IMPORT_K3S=1 \
SW_BLOCK_IMPORT_K3S_NODES="$K3S_IMPORT_NODES" \
SW_BLOCK_IMPORT_K3S_SSH_USER=testdev \
SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key \
SW_BLOCK_IMPORT_K3S_SSH_USER={{ node_user }} \
SW_BLOCK_ARTIFACT_DIR="$B/pin_build" \
bash scripts/build-alpha-images.sh {{ product_root }}
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMPORT_K3S_NODES="
save_as: k3s_import_nodes_count
- action: assert_greater
@@ -135,11 +140,11 @@ phases:
- name: render_rf3_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml"
node: node-a
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml"
pattern: "replicationFactor: \"3\""
save_as: rf3_manifest_count
- action: assert_greater
@@ -149,29 +154,29 @@ phases:
- name: rf3_node_loss_recovery
actions:
- action: exec
node: m02
node: node-a
timeout: 20m
cmd: |
cd {{ product_root }}
bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/node-specs.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml SW_BLOCK_DEMO_APP_NODE_NAME="$APP_NODE" SW_BLOCK_DEMO_READER_NODE_NAME="$SURVIVOR_APP_NODE" SW_BLOCK_ALPHA_NODE_SPECS="$NODE_SPECS" SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_EXTERNAL_ISCSI=1 SW_BLOCK_DEMO_EXPECT_NO_AUTO_PROMOTION=1 SW_BLOCK_REJECT_LOOPBACK_PUBLISH_TARGETS=1 SW_BLOCK_ISCSI_CHAP_SECRET_NAME=sw-block-node-loss-chap SW_BLOCK_ISCSI_CHAP_USERNAME=testops-node-loss SW_BLOCK_ISCSI_CHAP_SECRET=testops-node-loss-{{ run_id }} SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-node-loss-survival SW_BLOCK_DEMO_REQUIRE_PROMOTION_READY_BEFORE_FAILURE=1 SW_BLOCK_DEMO_FAIL_PRIMARY_BEFORE_READER=cordon-node-scale-primary-to-zero SW_BLOCK_DEMO_STOP_AFTER=reader-verified SW_BLOCK_DEMO_KEEP_ON_STOP=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/exit_code.txt; test "$rc" -eq 44'
bash -c 'set -a; source {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/pin_build/alpha-images.env; source {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/node-specs.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo SW_BLOCK_DEMO_APP_MANIFEST={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/demo-app-rf3.yaml SW_BLOCK_DEMO_APP_NODE_NAME="$APP_NODE" SW_BLOCK_DEMO_READER_NODE_NAME="$SURVIVOR_APP_NODE" SW_BLOCK_ALPHA_NODE_SPECS="$NODE_SPECS" SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_EXTERNAL_ISCSI=1 SW_BLOCK_DEMO_EXPECT_NO_AUTO_PROMOTION=1 SW_BLOCK_REJECT_LOOPBACK_PUBLISH_TARGETS=1 SW_BLOCK_ISCSI_CHAP_SECRET_NAME=sw-block-node-loss-chap SW_BLOCK_ISCSI_CHAP_USERNAME=testops-node-loss SW_BLOCK_ISCSI_CHAP_SECRET=testops-node-loss-{{ run_id }} SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-node-loss-survival SW_BLOCK_DEMO_REQUIRE_PROMOTION_READY_BEFORE_FAILURE=1 SW_BLOCK_DEMO_FAIL_PRIMARY_BEFORE_READER=cordon-node-scale-primary-to-zero SW_BLOCK_DEMO_STOP_AFTER=reader-verified SW_BLOCK_DEMO_KEEP_ON_STOP=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/exit_code.txt; test "$rc" -eq 44'
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/run.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/run.log"
pattern: "fail_primary_before_reader=cordon-node-scale-primary-to-zero"
save_as: node_loss_failure_mode_count
- action: assert_greater
actual: "{{ node_loss_failure_mode_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo; { echo bounded_waits=pass; echo attach=bounded_by_demo_waits; echo failure_injection=bounded_by_scale_wait; echo authority_promotion=bounded_by_240s_inventory_poll; echo csi_reattach=bounded_by_reader_pod_wait; echo data_check=bounded_by_reader_pod_wait; echo cleanup=bounded_by_collect_and_cleanup_phase; } > \"$B/bounded-waits.txt\""
node: node-a
cmd: "B={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo; { echo bounded_waits=pass; echo attach=bounded_by_demo_waits; echo failure_injection=bounded_by_scale_wait; echo authority_promotion=bounded_by_240s_inventory_poll; echo csi_reattach=bounded_by_reader_pod_wait; echo data_check=bounded_by_reader_pod_wait; echo cleanup=bounded_by_collect_and_cleanup_phase; } > \"$B/bounded-waits.txt\""
- action: exec
node: m02
node: node-a
timeout: 4m
cmd: |
cd {{ product_root }}
bash -c 'set -euo pipefail
OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation
OUT={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation
mkdir -p "$OUT"
pf_port=$(python3 - <<"PY"
import socket
@@ -193,213 +198,215 @@ phases:
- name: recovery_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/writer.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/writer.log"
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/reader.log"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/reader.log"
pattern: "/data/demo.bin: OK"
save_as: reader_checksum_count
- action: assert_greater
actual: "{{ reader_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "ack_profile: sync-quorum"
save_as: sync_quorum_ack_count
- action: assert_greater
actual: "{{ sync_quorum_ack_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "failure_class=primary-kubernetes-node-cordoned-blockvolume-stop"
save_as: node_failure_class_count
- action: assert_greater
actual: "{{ node_failure_class_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "M=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; before=$(sed -n 's/^before_primary_node=//p' \"$M\" | head -1); failed=$(sed -n 's/^failed_node=//p' \"$M\" | head -1); test -n \"$before\" && test \"$before\" = \"$failed\""
node: node-a
cmd: "M={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; before=$(sed -n 's/^before_primary_node=//p' \"$M\" | head -1); failed=$(sed -n 's/^failed_node=//p' \"$M\" | head -1); test -n \"$before\" && test \"$before\" = \"$failed\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "candidate_ready=true"
save_as: candidate_ready_count
- action: assert_greater
actual: "{{ candidate_ready_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "failover_status: recovered_same_primary"
save_as: failover_promoted_count
- action: assert_greater
actual: "{{ failover_promoted_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "M=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; recovered=$(sed -n 's/^recovered_replica=//p' \"$M\" | tail -1); failed=$(sed -n 's/^failed_replica=//p' \"$M\" | head -1); test -n \"$recovered\" && test \"$recovered\" = \"$failed\" && grep -q '^auto_promotion_while_node_lost=none$' \"$M\""
node: node-a
cmd: "M={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; recovered=$(sed -n 's/^recovered_replica=//p' \"$M\" | tail -1); failed=$(sed -n 's/^failed_replica=//p' \"$M\" | head -1); test -n \"$recovered\" && test \"$recovered\" = \"$failed\" && grep -q '^auto_promotion_while_node_lost=none$' \"$M\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "post_failure_primary_count=1"
save_as: single_primary_count
- action: assert_greater
actual: "{{ single_primary_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "node_loss_recovery_claimed=true"
save_as: node_loss_recovery_claim_count
- action: assert_greater
actual: "{{ node_loss_recovery_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "data_check_after_node_loss=reader_checksum_passed"
save_as: node_loss_checksum_count
- action: assert_greater
actual: "{{ node_loss_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "pod_recreate_used=true"
save_as: pod_recreate_count
- action: assert_greater
actual: "{{ pod_recreate_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "transparent_failover_claimed=false"
save_as: no_transparent_claim_count
- action: assert_greater
actual: "{{ no_transparent_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "physical_host_loss_claimed=false"
save_as: no_physical_host_loss_claim_count
- action: assert_greater
actual: "{{ no_physical_host_loss_claim_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt"
pattern: "old_primary_stale_io_success_count=0"
save_as: stale_primary_fenced_count
- action: assert_greater
actual: "{{ stale_primary_fenced_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/bounded-waits.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/bounded-waits.txt"
pattern: "bounded_waits=pass"
save_as: bounded_waits_count
- action: assert_greater
actual: "{{ bounded_waits_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/ops-inventory-before-primary-failure/volume-inventory-summary.txt"
pattern: "replicas_on_distinct_nodes=true frontends_non_loopback=true"
save_as: topology_marker_count
- action: assert_greater
actual: "{{ topology_marker_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/ops-inventory-after-primary-failure/volume-inventory-summary.txt"
pattern: "rf=3 desired=3 observed=3"
save_as: rf3_after_count
- action: assert_greater
actual: "{{ rf3_after_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "M=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; before=$(sed -n 's/^before_publish_target_frontend=//p' \"$M\" | head -1); portal=$(sed -n 's/^after_publish_target_frontend=//p' \"$M\" | tail -1); test -n \"$portal\" && test \"$portal\" = \"$before\" && ! printf '%s\n' \"$portal\" | grep -q '^127\\.0\\.0\\.1:' && grep -q \"NodeStageVolume: .* staged transport=iscsi portal=${portal}\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/blockcsi-node.log"
node: node-a
cmd: "M={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/primary-failure-recovery.txt; before=$(sed -n 's/^before_publish_target_frontend=//p' \"$M\" | head -1); portal=$(sed -n 's/^after_publish_target_frontend=//p' \"$M\" | tail -1); test -n \"$portal\" && test \"$portal\" = \"$before\" && ! printf '%s\n' \"$portal\" | grep -q '^127\\.0\\.0\\.1:' && grep -q \"NodeStageVolume: .* staged transport=iscsi portal=${portal}\" {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/blockcsi-node.log"
- action: exec
node: m02
cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-boundary.txt && grep -q 'node_loss_recovery_claimed=true' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-boundary.txt"
node: node-a
cmd: "test -s {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-boundary.txt && grep -q 'node_loss_recovery_claimed=true' {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-boundary.txt"
- action: exec
node: m02
cmd: "S=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-summary.txt; test -s \"$S\" && grep -q '^node_loss_recovery_summary_version=1$' \"$S\" && grep -q '^result=recovered_same_primary$' \"$S\" && grep -q '^data_check_after_node_loss=reader_checksum_passed$' \"$S\""
node: node-a
cmd: "S={{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/node-loss-recovery-summary.txt; test -s \"$S\" && grep -q '^node_loss_recovery_summary_version=1$' \"$S\" && grep -q '^result=recovered_same_primary$' \"$S\" && grep -q '^data_check_after_node_loss=reader_checksum_passed$' \"$S\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/control-plane-timeline.txt"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/control-plane-timeline.txt"
pattern: "event=primary_failure_injected .*failure_class=primary-kubernetes-node-cordoned-blockvolume-stop"
save_as: timeline_node_failure_count
- action: assert_greater
actual: "{{ timeline_node_failure_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
pattern: "\"event_type\": \"placement_verified\""
save_as: product_event_placement_count
- action: assert_greater
actual: "{{ product_event_placement_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
pattern: "\"event_type\": \"promotion_candidate_evaluated\""
save_as: product_event_candidate_count
- action: assert_greater
actual: "{{ product_event_candidate_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/product-observation/cluster-evidence.json"
pattern: "\"event_type\": \"csi_reattach_observed\""
save_as: product_event_csi_reattach_count
- action: assert_greater
actual: "{{ product_event_csi_reattach_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordon-primary-node.log && grep -qi 'cordoned' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordon-primary-node.log"
node: node-a
cmd: "test -s {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordon-primary-node.log && grep -qi 'cordoned' {{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordon-primary-node.log"
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
node: node-a
timeout: 4m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/uninstall"
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
env.SW_BLOCK_ISCSI_CHAP_SECRET_NAME: "sw-block-node-loss-chap"
- action: exec
node: m02
cmd: "N=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordoned-primary-node.txt; if test -s \"$N\"; then node=$(cat \"$N\"); kubectl uncordon \"$node\" >/dev/null 2>&1 || true; test \"$(kubectl get node \"$node\" -o jsonpath='{.spec.unschedulable}' 2>/dev/null || true)\" != \"true\"; fi"
node: node-a
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; N=$SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-node-loss-survival/demo/cordoned-primary-node.txt; if test -s \"$N\"; then node=$(cat \"$N\"); kubectl uncordon \"$node\" >/dev/null 2>&1 || true; test \"$(kubectl get node \"$node\" -o jsonpath='{.spec.unschedulable}' 2>/dev/null || true)\" != \"true\"; fi"
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
- action: pre_run_cleanup
node: m02
node: node-a
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
node: node-a
cmd: "sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-node-loss-survival; test ! -e /var/lib/sw-block/testops-{{ run_id }}-node-loss-survival; pkill -f 'kubectl.*port-forward.*blockmaste[r]' >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
node: node-a
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
node: node-a
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- action: collect_path
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-survival"
node: node-a
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-node-loss-survival"
name: "remote-phases"
ignore_error: true
@@ -1,289 +0,0 @@
# Runner-native Node-Loss D3 topology eligibility gate.
#
# This is not the recovery gate. It proves the alpha Kubernetes path can render
# RF=3 across real Kubernetes nodes with non-loopback iSCSI/status endpoints,
# CHAP-protected external iSCSI, loopback publish-target rejection, and stable
# inventory eligibility markers. Three Kubernetes nodes may share two physical
# machines for this MVP gate, but the physical/fault-domain shape is recorded
# and the close report must not over-claim full physical-host loss unless the
# artifacts prove distinct physical hosts. D4 consumes this topology to inject
# primary node loss and prove CSI/pod-recreate recovery.
name: node-loss-topology-eligibility-chain
timeout: 28m
env:
product_root: "/tmp/seaweed_block"
ssh_key: "C:\\work\\dev_server\\testdev_key"
topology:
nodes:
m02:
host: 192.168.1.184
user: testdev
key: "{{ ssh_key }}"
phases:
- name: pre_clean
actions:
- action: pre_run_cleanup
node: m02
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
nvme_disconnect: "true"
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
- action: exec
node: m02
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo"
- action: exec
node: m02
cmd: "kubectl -n default delete pod sw-block-demo-reader sw-block-demo-writer --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl -n default delete pvc sw-block-demo-pvc --ignore-not-found=true --wait=true --timeout=120s >/dev/null 2>&1 || true; kubectl delete sc sw-block-dynamic --ignore-not-found=true >/dev/null 2>&1 || true; pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true; sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-node-loss-topology >/dev/null 2>&1 || true"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
- name: preflight
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/preflight.txt 2>&1"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/preflight.txt"
pattern: "summary status=PASS"
save_as: preflight_count
- action: assert_greater
actual: "{{ preflight_count }}"
threshold: "0"
- name: discover_multinode_topology
actions:
- action: exec
node: m02
cmd: |
set -euo pipefail
B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology
cd {{ product_root }}
bash scripts/preflight-node-loss-lab.sh \
--min-k8s-nodes 3 \
--topology-out "$B/cluster-topology.txt" \
--topology-json-out "$B/cluster-topology.json" \
--env-out "$B/node-specs.env" \
--placement-out "$B/node-placement.before.txt" \
> "$B/node-loss-lab-preflight.txt" 2>&1
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/node-placement.before.txt"
pattern: "node_loss_topology_eligible=true"
save_as: topology_eligible_count
- action: assert_greater
actual: "{{ topology_eligible_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/node-placement.before.txt"
pattern: "selected_node_count=3"
save_as: selected_node_count
- action: assert_greater
actual: "{{ selected_node_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/node-placement.before.txt"
pattern: "physical_host_loss_claimed=false"
save_as: no_physical_host_loss_claim_count
- action: assert_greater
actual: "{{ no_physical_host_loss_claim_count }}"
threshold: "0"
- name: pin_build_alpha_images
actions:
- action: exec
node: m02
timeout: 8m
cmd: |
set -euo pipefail
B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology
cd {{ product_root }}
set -a
source "$B/node-specs.env"
set +a
SW_BLOCK_IMPORT_K3S=1 \
SW_BLOCK_IMPORT_K3S_NODES="$K3S_IMPORT_NODES" \
SW_BLOCK_IMPORT_K3S_SSH_USER=testdev \
SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key \
SW_BLOCK_ARTIFACT_DIR="$B/pin_build" \
bash scripts/build-alpha-images.sh {{ product_root }}
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMAGE_ID="
save_as: sw_block_image_id_count
- action: assert_greater
actual: "{{ sw_block_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/pin_build/alpha-images.env"
pattern: "SW_BLOCK_CSI_IMAGE_ID="
save_as: sw_block_csi_image_id_count
- action: assert_greater
actual: "{{ sw_block_csi_image_id_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/pin_build/alpha-images.env"
pattern: "SW_BLOCK_IMPORT_K3S_NODES="
save_as: k3s_import_nodes_count
- action: assert_greater
actual: "{{ k3s_import_nodes_count }}"
threshold: "0"
- name: render_rf3_demo_manifest
actions:
- action: exec
node: m02
cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/demo-app-rf3.yaml"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/demo-app-rf3.yaml"
pattern: "replicationFactor: \"3\""
save_as: rf3_manifest_count
- action: assert_greater
actual: "{{ rf3_manifest_count }}"
threshold: "0"
- name: rf3_external_topology
actions:
- action: exec
node: m02
timeout: 16m
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/pin_build/alpha-images.env; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/node-specs.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/demo-app-rf3.yaml SW_BLOCK_DEMO_APP_NODE_NAME=\"$APP_NODE\" SW_BLOCK_ALPHA_NODE_SPECS=\"$NODE_SPECS\" SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_LAUNCHER_EXTERNAL_ISCSI=1 SW_BLOCK_LAUNCHER_EXTERNAL_STATUS=1 SW_BLOCK_REJECT_LOOPBACK_PUBLISH_TARGETS=1 SW_BLOCK_ISCSI_CHAP_SECRET_NAME=sw-block-node-loss-chap SW_BLOCK_ISCSI_CHAP_USERNAME=testops-node-loss SW_BLOCK_ISCSI_CHAP_SECRET=testops-node-loss-{{ run_id }} SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-node-loss-topology SW_BLOCK_DEMO_STOP_AFTER=writer-verified bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/exit_code.txt; test \"$rc\" -eq 44'"
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology; { cat \"$B/node-placement.before.txt\"; echo kubernetes_node_loss_claimed=true; echo physical_host_loss_claimed=false; echo transparent_node_loss_claimed=false; echo recovery_gate=D4-not-this-scenario; } > \"$B/demo/node-loss-claim-boundary.txt\""
- name: topology_asserts
actions:
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/run.log"
pattern: "launcher_external_iscsi=1"
save_as: external_iscsi_count
- action: assert_greater
actual: "{{ external_iscsi_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/run.log"
pattern: "launcher_external_status=1"
save_as: external_status_count
- action: assert_greater
actual: "{{ external_status_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/run.log"
pattern: "reject_loopback_publish_targets=1"
save_as: reject_loopback_count
- action: assert_greater
actual: "{{ reject_loopback_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/run.log"
pattern: "chap_enabled=1"
save_as: chap_enabled_count
- action: assert_greater
actual: "{{ chap_enabled_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/writer.log"
pattern: "/data/demo.bin: OK"
save_as: writer_checksum_count
- action: assert_greater
actual: "{{ writer_checksum_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/controlled-stop-writer-verified.txt"
pattern: "phase=writer-verified"
save_as: writer_verified_stop_count
- action: assert_greater
actual: "{{ writer_verified_stop_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/node-loss-claim-boundary.txt"
pattern: "physical_host_loss_claimed=false"
save_as: physical_host_nonclaim_count
- action: assert_greater
actual: "{{ physical_host_nonclaim_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo; test \"$(grep -c -- '--replica-id=r' \"$B/generated-blockvolume.yaml\")\" -ge 3; test \"$(grep -c -- '--allow-external-iscsi-bind' \"$B/generated-blockvolume.yaml\")\" -ge 3; test \"$(grep -c -- '--master-tls-cert=' \"$B/generated-blockvolume.yaml\")\" -ge 3"
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo; ! grep -Eq -- '--(iscsi-listen|status-addr)=127\\.0\\.0\\.1|--(iscsi-listen|status-addr)=localhost' \"$B/generated-blockvolume.yaml\""
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/csi-controller.rendered.yaml"
pattern: "--reject-loopback-publish-targets"
save_as: csi_controller_reject_loopback_count
- action: assert_greater
actual: "{{ csi_controller_reject_loopback_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/csi-node.rendered.yaml"
pattern: "--reject-loopback-publish-targets"
save_as: csi_node_reject_loopback_count
- action: assert_greater
actual: "{{ csi_node_reject_loopback_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/ops-inventory-writer-verified/volume-inventory-summary.txt"
pattern: "rf=3 desired=3 observed=3"
save_as: rf3_observed_count
- action: assert_greater
actual: "{{ rf3_observed_count }}"
threshold: "0"
- action: grep_log
node: m02
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/ops-inventory-writer-verified/volume-inventory-summary.txt"
pattern: "replicas_on_distinct_nodes=true frontends_non_loopback=true"
save_as: topology_marker_count
- action: assert_greater
actual: "{{ topology_marker_count }}"
threshold: "0"
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo/ops-inventory-writer-verified; test \"$(grep -c '^replica: volume=.* node=' \"$B/volume-inventory-summary.txt\")\" -ge 3; ! grep -Eq 'frontend=127\\.0\\.0\\.1|status_addr=127\\.0\\.0\\.1|frontend=localhost|status_addr=localhost' \"$B/volume-inventory-summary.txt\""
- action: exec
node: m02
cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/demo; grep -q 'NodeStageVolume: .* staged transport=iscsi' \"$B/blockcsi-node.log\"; ! grep -q 'NodeStageVolume: .* portal=127.0.0.1' \"$B/blockcsi-node.log\""
- name: collect_and_cleanup
always: true
actions:
- action: exec
node: m02
timeout: 3m
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-node-loss-topology/uninstall"
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
env.SW_BLOCK_ISCSI_CHAP_SECRET_NAME: "sw-block-node-loss-chap"
- action: exec
node: m02
cmd: "sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-node-loss-topology; test ! -e /var/lib/sw-block/testops-{{ run_id }}-node-loss-topology"
- action: assert_no_active_iscsi_sessions
node: m02
iqn_substr: "io.seaweedfs"
- action: assert_no_processes
node: m02
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
Loaded 100 of 183 files, more files were not shown because too many files have changed in this diff. Show more