diff --git a/seaweed-block/docs/wiki/deep-dives/iscsi-alua-multipath.md b/seaweed-block/docs/wiki/deep-dives/iscsi-alua-multipath.md index 54d755c583..8e614064a9 100644 --- a/seaweed-block/docs/wiki/deep-dives/iscsi-alua-multipath.md +++ b/seaweed-block/docs/wiki/deep-dives/iscsi-alua-multipath.md @@ -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. diff --git a/seaweed-block/docs/wiki/deep-dives/testops-authoring.md b/seaweed-block/docs/wiki/deep-dives/testops-authoring.md index 6da768fb5f..a8368d824a 100644 --- a/seaweed-block/docs/wiki/deep-dives/testops-authoring.md +++ b/seaweed-block/docs/wiki/deep-dives/testops-authoring.md @@ -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/` | diff --git a/seaweed-block/docs/wiki/testops-map.md b/seaweed-block/docs/wiki/testops-map.md index 8d3cbb39c8..9f2f4feb23 100644 --- a/seaweed-block/docs/wiki/testops-map.md +++ b/seaweed-block/docs/wiki/testops-map.md @@ -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: diff --git a/seaweed-block/internal/docs/product-roadmap.md b/seaweed-block/internal/docs/product-roadmap.md index e4b25c6b92..b837d630e1 100644 --- a/seaweed-block/internal/docs/product-roadmap.md +++ b/seaweed-block/internal/docs/product-roadmap.md @@ -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 diff --git a/seaweed-block/internal/docs/ref/testops-runner-binary-contract.md b/seaweed-block/internal/docs/ref/testops-runner-binary-contract.md index a4425ebde3..aed5ff028c 100644 --- a/seaweed-block/internal/docs/ref/testops-runner-binary-contract.md +++ b/seaweed-block/internal/docs/ref/testops-runner-binary-contract.md @@ -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= \ + --env node_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 /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= \ +SW_BLOCK_NODE_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: diff --git a/seaweed-block/scripts/release_gate_artifact_root_test.go b/seaweed-block/scripts/release_gate_artifact_root_test.go new file mode 100644 index 0000000000..7620270597 --- /dev/null +++ b/seaweed-block/scripts/release_gate_artifact_root_test.go @@ -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) + } +} diff --git a/seaweed-block/scripts/run-operation-milestone-release-readiness.ps1 b/seaweed-block/scripts/run-operation-milestone-release-readiness.ps1 deleted file mode 100644 index 5591ca28a9..0000000000 --- a/seaweed-block/scripts/run-operation-milestone-release-readiness.ps1 +++ /dev/null @@ -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 '^(?.+)@(?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-" - Add-Summary "example_SW_BLOCK_CSI_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block-csi:sha-" - [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 -} diff --git a/seaweed-block/scripts/testops-artifact-root-guard-test.sh b/seaweed-block/scripts/testops-artifact-root-guard-test.sh new file mode 100644 index 0000000000..e995a57af3 --- /dev/null +++ b/seaweed-block/scripts/testops-artifact-root-guard-test.sh @@ -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 diff --git a/seaweed-block/scripts/testops-run-protocol-release-gate.ps1 b/seaweed-block/scripts/testops-run-protocol-release-gate.ps1 index 04163809aa..2772303a64 100644 --- a/seaweed-block/scripts/testops-run-protocol-release-gate.ps1 +++ b/seaweed-block/scripts/testops-run-protocol-release-gate.ps1 @@ -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 diff --git a/seaweed-block/scripts/testops-run-protocol-release-gate.sh b/seaweed-block/scripts/testops-run-protocol-release-gate.sh index 8844e2ab96..59f3ab41ee 100755 --- a/seaweed-block/scripts/testops-run-protocol-release-gate.sh +++ b/seaweed-block/scripts/testops-run-protocol-release-gate.sh @@ -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" \ diff --git a/seaweed-block/scripts/testops_artifact_root_test.go b/seaweed-block/scripts/testops_artifact_root_test.go new file mode 100644 index 0000000000..a548e721c9 --- /dev/null +++ b/seaweed-block/scripts/testops_artifact_root_test.go @@ -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, "'", "'\\''") + "'" +} diff --git a/seaweed-block/scripts/uninstall-k8s-alpha.sh b/seaweed-block/scripts/uninstall-k8s-alpha.sh index ec26e226a1..b56e9fe7f2 100755 --- a/seaweed-block/scripts/uninstall-k8s-alpha.sh +++ b/seaweed-block/scripts/uninstall-k8s-alpha.sh @@ -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 diff --git a/seaweed-block/scripts/uninstall_k8s_alpha_test.go b/seaweed-block/scripts/uninstall_k8s_alpha_test.go index 87f1456e0b..3a9b94c5a7 100644 --- a/seaweed-block/scripts/uninstall_k8s_alpha_test.go +++ b/seaweed-block/scripts/uninstall_k8s_alpha_test.go @@ -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")) diff --git a/seaweed-block/testops/README.md b/seaweed-block/testops/README.md index 47638a232c..7dcd0e56e4 100644 --- a/seaweed-block/testops/README.md +++ b/seaweed-block/testops/README.md @@ -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 ./` | 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 ./` | +| 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 /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 ` - /g15d-k8s/testops-runs/protocol-release-gate-native/ -``` - -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 -`//runs//`. - -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 /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. diff --git a/seaweed-block/testops/scenarios/ack-eligibility-publication-chain.yaml b/seaweed-block/testops/scenarios/ack-eligibility-publication-chain.yaml deleted file mode 100644 index 965dee8828..0000000000 --- a/seaweed-block/testops/scenarios/ack-eligibility-publication-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/activation-day1-first-volume-chain.yaml b/seaweed-block/testops/scenarios/activation-day1-first-volume-chain.yaml index 7ac31fcd4a..aed52b5e3d 100644 --- a/seaweed-block/testops/scenarios/activation-day1-first-volume-chain.yaml +++ b/seaweed-block/testops/scenarios/activation-day1-first-volume-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 " diff --git a/seaweed-block/testops/scenarios/activation-day1-install-chain.yaml b/seaweed-block/testops/scenarios/activation-day1-install-chain.yaml index 33152430e8..bfeec21b15 100644 --- a/seaweed-block/testops/scenarios/activation-day1-install-chain.yaml +++ b/seaweed-block/testops/scenarios/activation-day1-install-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 diff --git a/seaweed-block/testops/scenarios/authority-executor-callsite-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-callsite-chain.yaml deleted file mode 100644 index 8abb5d29cf..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-callsite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-http-runtime-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-http-runtime-chain.yaml deleted file mode 100644 index 300f733144..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-http-runtime-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-live-close-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-live-close-chain.yaml deleted file mode 100644 index a89e7675a3..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-live-close-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-multivolume-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-multivolume-chain.yaml deleted file mode 100644 index 7f75a0557d..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-multivolume-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-negative-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-negative-chain.yaml deleted file mode 100644 index 7ebc95e98d..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-negative-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-rbac-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-rbac-chain.yaml deleted file mode 100644 index 5c88478ad5..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-rbac-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-rebuild-target-rbac-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-rebuild-target-rbac-chain.yaml deleted file mode 100644 index b0c4fa8fdb..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-rebuild-target-rbac-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-runtime-callsite-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-runtime-callsite-chain.yaml deleted file mode 100644 index 1d855dc875..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-runtime-callsite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/authority-executor-target-rbac-chain.yaml b/seaweed-block/testops/scenarios/authority-executor-target-rbac-chain.yaml deleted file mode 100644 index 1af99792c8..0000000000 --- a/seaweed-block/testops/scenarios/authority-executor-target-rbac-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/blockvolume-runtime-endpoint-chain.yaml b/seaweed-block/testops/scenarios/blockvolume-runtime-endpoint-chain.yaml deleted file mode 100644 index 270e3ab1fb..0000000000 --- a/seaweed-block/testops/scenarios/blockvolume-runtime-endpoint-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/caught-up-publication-preflight-chain.yaml b/seaweed-block/testops/scenarios/caught-up-publication-preflight-chain.yaml deleted file mode 100644 index 1fb074fb12..0000000000 --- a/seaweed-block/testops/scenarios/caught-up-publication-preflight-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/cleanup-residue-chain.yaml b/seaweed-block/testops/scenarios/cleanup-residue-chain.yaml deleted file mode 100644 index 6d5e6ba88c..0000000000 --- a/seaweed-block/testops/scenarios/cleanup-residue-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/cluster-ops-inventory-chain.yaml b/seaweed-block/testops/scenarios/cluster-ops-inventory-chain.yaml deleted file mode 100644 index b81d853e14..0000000000 --- a/seaweed-block/testops/scenarios/cluster-ops-inventory-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/csi-lifecycle-component-gate.yaml b/seaweed-block/testops/scenarios/csi-lifecycle-component-gate.yaml deleted file mode 100644 index dd0f465e29..0000000000 --- a/seaweed-block/testops/scenarios/csi-lifecycle-component-gate.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-chain.yaml b/seaweed-block/testops/scenarios/csi-rf1-durable-restart-chain.yaml deleted file mode 100644 index 3bb285aa17..0000000000 --- a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-component-gate.yaml b/seaweed-block/testops/scenarios/csi-rf1-durable-restart-component-gate.yaml deleted file mode 100644 index 79be56d15d..0000000000 --- a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-component-gate.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-failure-chain.yaml b/seaweed-block/testops/scenarios/csi-rf1-durable-restart-failure-chain.yaml deleted file mode 100644 index df25ff003e..0000000000 --- a/seaweed-block/testops/scenarios/csi-rf1-durable-restart-failure-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/data-plane-address-capability-chain.yaml b/seaweed-block/testops/scenarios/data-plane-address-capability-chain.yaml deleted file mode 100644 index 4a7876febd..0000000000 --- a/seaweed-block/testops/scenarios/data-plane-address-capability-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-authority-callsite-chain.yaml b/seaweed-block/testops/scenarios/failback-authority-callsite-chain.yaml deleted file mode 100644 index 8ffbc64abb..0000000000 --- a/seaweed-block/testops/scenarios/failback-authority-callsite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-authority-runtime-chain.yaml b/seaweed-block/testops/scenarios/failback-authority-runtime-chain.yaml deleted file mode 100644 index de3401caa2..0000000000 --- a/seaweed-block/testops/scenarios/failback-authority-runtime-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-chart-runtime-chain.yaml b/seaweed-block/testops/scenarios/failback-chart-runtime-chain.yaml deleted file mode 100644 index a8cfb445ea..0000000000 --- a/seaweed-block/testops/scenarios/failback-chart-runtime-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-deployed-grpc-smoke-chain.yaml b/seaweed-block/testops/scenarios/failback-deployed-grpc-smoke-chain.yaml deleted file mode 100644 index 0755e0b2bf..0000000000 --- a/seaweed-block/testops/scenarios/failback-deployed-grpc-smoke-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-deployed-suite-chain.yaml b/seaweed-block/testops/scenarios/failback-deployed-suite-chain.yaml deleted file mode 100644 index c817f2a6f5..0000000000 --- a/seaweed-block/testops/scenarios/failback-deployed-suite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-docs-alignment-chain.yaml b/seaweed-block/testops/scenarios/failback-docs-alignment-chain.yaml deleted file mode 100644 index 10b2df4b6a..0000000000 --- a/seaweed-block/testops/scenarios/failback-docs-alignment-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-executor-boundary-chain.yaml b/seaweed-block/testops/scenarios/failback-executor-boundary-chain.yaml deleted file mode 100644 index e1e1dc28c0..0000000000 --- a/seaweed-block/testops/scenarios/failback-executor-boundary-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-executor-grpc-runtime-chain.yaml b/seaweed-block/testops/scenarios/failback-executor-grpc-runtime-chain.yaml deleted file mode 100644 index 4d0e1e2cf5..0000000000 --- a/seaweed-block/testops/scenarios/failback-executor-grpc-runtime-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-executor-policy-safety-chain.yaml b/seaweed-block/testops/scenarios/failback-executor-policy-safety-chain.yaml deleted file mode 100644 index 566ec9dbe2..0000000000 --- a/seaweed-block/testops/scenarios/failback-executor-policy-safety-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-frontend-publication-target-chain.yaml b/seaweed-block/testops/scenarios/failback-frontend-publication-target-chain.yaml deleted file mode 100644 index d9c3bba02c..0000000000 --- a/seaweed-block/testops/scenarios/failback-frontend-publication-target-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-frontend-workload-close-chain.yaml b/seaweed-block/testops/scenarios/failback-frontend-workload-close-chain.yaml deleted file mode 100644 index fc1df7b4ba..0000000000 --- a/seaweed-block/testops/scenarios/failback-frontend-workload-close-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-grpc-runtime-endpoint-decoupling-chain.yaml b/seaweed-block/testops/scenarios/failback-grpc-runtime-endpoint-decoupling-chain.yaml deleted file mode 100644 index a9be0971ab..0000000000 --- a/seaweed-block/testops/scenarios/failback-grpc-runtime-endpoint-decoupling-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-handoff-isolation-chain.yaml b/seaweed-block/testops/scenarios/failback-handoff-isolation-chain.yaml deleted file mode 100644 index 49cbc90fcc..0000000000 --- a/seaweed-block/testops/scenarios/failback-handoff-isolation-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-integrated-grpc-smoke-chain.yaml b/seaweed-block/testops/scenarios/failback-integrated-grpc-smoke-chain.yaml deleted file mode 100644 index cea0203a29..0000000000 --- a/seaweed-block/testops/scenarios/failback-integrated-grpc-smoke-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-live-deployed-suite-chain.yaml b/seaweed-block/testops/scenarios/failback-live-deployed-suite-chain.yaml deleted file mode 100644 index a3a168c31a..0000000000 --- a/seaweed-block/testops/scenarios/failback-live-deployed-suite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-runtime-contract-chain.yaml b/seaweed-block/testops/scenarios/failback-runtime-contract-chain.yaml deleted file mode 100644 index 3770d43f04..0000000000 --- a/seaweed-block/testops/scenarios/failback-runtime-contract-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-service-rpc-chain.yaml b/seaweed-block/testops/scenarios/failback-service-rpc-chain.yaml deleted file mode 100644 index c2da5ac3ef..0000000000 --- a/seaweed-block/testops/scenarios/failback-service-rpc-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-target-activation-policy-chain.yaml b/seaweed-block/testops/scenarios/failback-target-activation-policy-chain.yaml deleted file mode 100644 index 48ddcb8eb3..0000000000 --- a/seaweed-block/testops/scenarios/failback-target-activation-policy-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-target-authority-chain.yaml b/seaweed-block/testops/scenarios/failback-target-authority-chain.yaml deleted file mode 100644 index 40fbb66fb2..0000000000 --- a/seaweed-block/testops/scenarios/failback-target-authority-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-target-executor-handoff-chain.yaml b/seaweed-block/testops/scenarios/failback-target-executor-handoff-chain.yaml deleted file mode 100644 index f68457c457..0000000000 --- a/seaweed-block/testops/scenarios/failback-target-executor-handoff-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/failback-target-owner-chain.yaml b/seaweed-block/testops/scenarios/failback-target-owner-chain.yaml deleted file mode 100644 index fcf58ea46e..0000000000 --- a/seaweed-block/testops/scenarios/failback-target-owner-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-authority-owner-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-authority-owner-chain.yaml deleted file mode 100644 index 3c26e08401..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-authority-owner-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-executor-boundary-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-executor-boundary-chain.yaml deleted file mode 100644 index 669c8669ec..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-executor-boundary-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-executor-callsite-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-executor-callsite-chain.yaml deleted file mode 100644 index 84605db701..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-executor-callsite-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-live-api-boundary-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-live-api-boundary-chain.yaml deleted file mode 100644 index ac4171821a..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-live-api-boundary-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-preflight-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-preflight-chain.yaml deleted file mode 100644 index 60405b3966..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-preflight-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-runtime-contract-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-runtime-contract-chain.yaml deleted file mode 100644 index 1350272285..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-runtime-contract-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/frontend-publication-target-contract-chain.yaml b/seaweed-block/testops/scenarios/frontend-publication-target-contract-chain.yaml deleted file mode 100644 index 864c6b570b..0000000000 --- a/seaweed-block/testops/scenarios/frontend-publication-target-contract-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/helm-first-volume-chain.yaml b/seaweed-block/testops/scenarios/helm-first-volume-chain.yaml deleted file mode 100644 index 4fa90e32e0..0000000000 --- a/seaweed-block/testops/scenarios/helm-first-volume-chain.yaml +++ /dev/null @@ -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: "]*>(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" diff --git a/seaweed-block/testops/scenarios/helm-first-volume-via-sw-block-cli-chain.yaml b/seaweed-block/testops/scenarios/helm-first-volume-via-sw-block-cli-chain.yaml deleted file mode 100644 index 50a9f7734a..0000000000 --- a/seaweed-block/testops/scenarios/helm-first-volume-via-sw-block-cli-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-lifecycle-upgrade-rollback-chain.yaml b/seaweed-block/testops/scenarios/helm-lifecycle-upgrade-rollback-chain.yaml deleted file mode 100644 index c2b55c0381..0000000000 --- a/seaweed-block/testops/scenarios/helm-lifecycle-upgrade-rollback-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-day1-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-day1-chain.yaml deleted file mode 100644 index b4ff7a714d..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-day1-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-interleaved-failover-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-rf3-interleaved-failover-chain.yaml deleted file mode 100644 index 54cafc87c9..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-interleaved-failover-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-mounted-failover-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-rf3-mounted-failover-chain.yaml deleted file mode 100644 index 3f47f22c2e..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-mounted-failover-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-readiness-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-rf3-readiness-chain.yaml deleted file mode 100644 index 0f25600a6c..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-readiness-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-reattach-recovery-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-rf3-reattach-recovery-chain.yaml deleted file mode 100644 index df537e0e30..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-reattach-recovery-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-restart-smoke-chain.yaml b/seaweed-block/testops/scenarios/helm-multi-volume-rf3-restart-smoke-chain.yaml deleted file mode 100644 index 236c368554..0000000000 --- a/seaweed-block/testops/scenarios/helm-multi-volume-rf3-restart-smoke-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/helm-release-hygiene-chain.yaml b/seaweed-block/testops/scenarios/helm-release-hygiene-chain.yaml deleted file mode 100644 index 92db0ac8fc..0000000000 --- a/seaweed-block/testops/scenarios/helm-release-hygiene-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/helm-rf3-promotion-restart-persistence-chain.yaml b/seaweed-block/testops/scenarios/helm-rf3-promotion-restart-persistence-chain.yaml deleted file mode 100644 index 1d8c300f91..0000000000 --- a/seaweed-block/testops/scenarios/helm-rf3-promotion-restart-persistence-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/helm-single-node-first-volume-chain.yaml b/seaweed-block/testops/scenarios/helm-single-node-first-volume-chain.yaml deleted file mode 100644 index c2f50d1088..0000000000 --- a/seaweed-block/testops/scenarios/helm-single-node-first-volume-chain.yaml +++ /dev/null @@ -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: "/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" diff --git a/seaweed-block/testops/scenarios/helm-single-node-restart-persistence-chain.yaml b/seaweed-block/testops/scenarios/helm-single-node-restart-persistence-chain.yaml deleted file mode 100644 index 68dccef8f9..0000000000 --- a/seaweed-block/testops/scenarios/helm-single-node-restart-persistence-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/helm-support-bundle-diagnostics-chain.yaml b/seaweed-block/testops/scenarios/helm-support-bundle-diagnostics-chain.yaml deleted file mode 100644 index f41240b490..0000000000 --- a/seaweed-block/testops/scenarios/helm-support-bundle-diagnostics-chain.yaml +++ /dev/null @@ -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" diff --git a/seaweed-block/testops/scenarios/iscsi-os-initiator-compat-chain.yaml b/seaweed-block/testops/scenarios/iscsi-os-initiator-compat-chain.yaml deleted file mode 100644 index 7c99aa1fb1..0000000000 --- a/seaweed-block/testops/scenarios/iscsi-os-initiator-compat-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/iscsi-p6-alua-failover-chain.yaml b/seaweed-block/testops/scenarios/iscsi-p6-alua-failover-chain.yaml index 7be16c870a..b0fba7659a 100644 --- a/seaweed-block/testops/scenarios/iscsi-p6-alua-failover-chain.yaml +++ b/seaweed-block/testops/scenarios/iscsi-p6-alua-failover-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 diff --git a/seaweed-block/testops/scenarios/iscsi-p8-compat-soak-chain.yaml b/seaweed-block/testops/scenarios/iscsi-p8-compat-soak-chain.yaml index 0c7fd5f9d1..3155c8a785 100644 --- a/seaweed-block/testops/scenarios/iscsi-p8-compat-soak-chain.yaml +++ b/seaweed-block/testops/scenarios/iscsi-p8-compat-soak-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 diff --git a/seaweed-block/testops/scenarios/iscsi-returned-replica-chain.yaml b/seaweed-block/testops/scenarios/iscsi-returned-replica-chain.yaml deleted file mode 100644 index f2346ba508..0000000000 --- a/seaweed-block/testops/scenarios/iscsi-returned-replica-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/layout-realcluster-integration-gate.yaml b/seaweed-block/testops/scenarios/layout-realcluster-integration-gate.yaml deleted file mode 100644 index f90df901c2..0000000000 --- a/seaweed-block/testops/scenarios/layout-realcluster-integration-gate.yaml +++ /dev/null @@ -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= \ -# -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" diff --git a/seaweed-block/testops/scenarios/lifecycle-owner-admission-gate-chain.yaml b/seaweed-block/testops/scenarios/lifecycle-owner-admission-gate-chain.yaml deleted file mode 100644 index d0f0be1b73..0000000000 --- a/seaweed-block/testops/scenarios/lifecycle-owner-admission-gate-chain.yaml +++ /dev/null @@ -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$" diff --git a/seaweed-block/testops/scenarios/lifecycle-owner-api-boundary-chain.yaml b/seaweed-block/testops/scenarios/lifecycle-owner-api-boundary-chain.yaml deleted file mode 100644 index cf2c227415..0000000000 --- a/seaweed-block/testops/scenarios/lifecycle-owner-api-boundary-chain.yaml +++ /dev/null @@ -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$" diff --git a/seaweed-block/testops/scenarios/lifecycle-owner-delete-safety-decision-chain.yaml b/seaweed-block/testops/scenarios/lifecycle-owner-delete-safety-decision-chain.yaml deleted file mode 100644 index 14857e6cb1..0000000000 --- a/seaweed-block/testops/scenarios/lifecycle-owner-delete-safety-decision-chain.yaml +++ /dev/null @@ -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$" diff --git a/seaweed-block/testops/scenarios/light-use-first-volume-breaks-chain.yaml b/seaweed-block/testops/scenarios/light-use-first-volume-breaks-chain.yaml deleted file mode 100644 index 0ce00cbedb..0000000000 --- a/seaweed-block/testops/scenarios/light-use-first-volume-breaks-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/light-use-first-volume-chain.yaml b/seaweed-block/testops/scenarios/light-use-first-volume-chain.yaml deleted file mode 100644 index 24d83232ce..0000000000 --- a/seaweed-block/testops/scenarios/light-use-first-volume-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/light-use-first-volume-failure-bundle-chain.yaml b/seaweed-block/testops/scenarios/light-use-first-volume-failure-bundle-chain.yaml index ef2ffa6377..350d89ace1 100644 --- a/seaweed-block/testops/scenarios/light-use-first-volume-failure-bundle-chain.yaml +++ b/seaweed-block/testops/scenarios/light-use-first-volume-failure-bundle-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 diff --git a/seaweed-block/testops/scenarios/light-use-first-volume-retry-chain.yaml b/seaweed-block/testops/scenarios/light-use-first-volume-retry-chain.yaml deleted file mode 100644 index 47cb6895ba..0000000000 --- a/seaweed-block/testops/scenarios/light-use-first-volume-retry-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/master-failback-runtime-factory-chain.yaml b/seaweed-block/testops/scenarios/master-failback-runtime-factory-chain.yaml deleted file mode 100644 index 8fd32561f1..0000000000 --- a/seaweed-block/testops/scenarios/master-failback-runtime-factory-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-app-baseline-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-app-baseline-chain.yaml deleted file mode 100644 index f8e14c7ed1..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-app-baseline-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-degraded-replica-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-degraded-replica-chain.yaml deleted file mode 100644 index dc7007e24f..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-degraded-replica-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-placement-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-placement-chain.yaml deleted file mode 100644 index 69b0409fcd..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-placement-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-primary-failure-safe-refusal-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-primary-failure-safe-refusal-chain.yaml deleted file mode 100644 index 8e6b5164fa..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-primary-failure-safe-refusal-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-ready-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-ready-chain.yaml deleted file mode 100644 index 7e7e256a0e..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-ready-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-recovery-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-recovery-chain.yaml deleted file mode 100644 index abd8a77725..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-promotion-recovery-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf2-safe-refusal-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf2-safe-refusal-chain.yaml deleted file mode 100644 index 3caa10b18c..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf2-safe-refusal-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/mounted-failover-rf3-sync-quorum-recovery-chain.yaml b/seaweed-block/testops/scenarios/mounted-failover-rf3-sync-quorum-recovery-chain.yaml deleted file mode 100644 index 94282ddc0e..0000000000 --- a/seaweed-block/testops/scenarios/mounted-failover-rf3-sync-quorum-recovery-chain.yaml +++ /dev/null @@ -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 diff --git a/seaweed-block/testops/scenarios/node-loss-survival-rf3-reattach-chain.yaml b/seaweed-block/testops/scenarios/node-loss-survival-rf3-reattach-chain.yaml index be14ce5b4e..a581bb8797 100644 --- a/seaweed-block/testops/scenarios/node-loss-survival-rf3-reattach-chain.yaml +++ b/seaweed-block/testops/scenarios/node-loss-survival-rf3-reattach-chain.yaml @@ -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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= + node_ssh_key: "" # key path on the test node for the image import; set with -env node_ssh_key= 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 diff --git a/seaweed-block/testops/scenarios/node-loss-topology-eligibility-chain.yaml b/seaweed-block/testops/scenarios/node-loss-topology-eligibility-chain.yaml deleted file mode 100644 index fd28422a77..0000000000 --- a/seaweed-block/testops/scenarios/node-loss-topology-eligibility-chain.yaml +++ /dev/null @@ -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 " diff --git a/seaweed-block/testops/scenarios/nvme-ana-baseline-chain.yaml b/seaweed-block/testops/scenarios/nvme-ana-baseline-chain.yaml deleted file mode 100644 index 8c3a8c07c4..0000000000 --- a/seaweed-block/testops/scenarios/nvme-ana-baseline-chain.yaml +++ /dev/null @@ -1,71 +0,0 @@ -name: nvme-ana-baseline-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: nvme_ana_baseline_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "cd {{ product_root }} && bash scripts/run-phase99-nvme-ana-baseline-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline/phase99-nvme-ana-baseline-summary.txt" - pattern: "^phase99_nvme_ana_baseline_status=ok$" - save_as: phase99_ok - - action: assert_greater - actual: "{{ phase99_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline/phase99-nvme-ana-baseline-summary.txt" - pattern: "^ana_identify_and_log_consistent=true$" - save_as: ana_consistent - - action: assert_greater - actual: "{{ ana_consistent }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline/phase99-nvme-ana-baseline-summary.txt" - pattern: "^projection_ana_state_mapping=true$" - save_as: projection_ana - - action: assert_greater - actual: "{{ projection_ana }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline/phase99-nvme-ana-baseline-summary.txt" - pattern: "^csi_nvme_node_stage=true$" - save_as: csi_nvme_stage - - action: assert_greater - actual: "{{ csi_nvme_stage }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline/phase99-nvme-ana-baseline-summary.txt" - pattern: "^nvme_scenarios_validate=pass$" - save_as: scenario_validate - - action: assert_greater - actual: "{{ scenario_validate }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase99-nvme-ana-baseline" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-ana-change-notice-chain.yaml b/seaweed-block/testops/scenarios/nvme-ana-change-notice-chain.yaml deleted file mode 100644 index bdcbfe5b18..0000000000 --- a/seaweed-block/testops/scenarios/nvme-ana-change-notice-chain.yaml +++ /dev/null @@ -1,93 +0,0 @@ -name: nvme-ana-change-notice-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: phase127_nvme_ana_change_notice - actions: - - action: exec - node: m02 - timeout: 8m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer bash scripts/run-phase127-nvme-ana-change-notice-gate.sh {{ product_root }}" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^phase127_nvme_ana_change_notice_status=ok$" - save_as: phase127_ok - - action: assert_greater - actual: "{{ phase127_ok }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^ana_provider_oaes_ana_change_notice=true$" - save_as: oaes_provider_count - - action: assert_greater - actual: "{{ oaes_provider_count }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^no_provider_oaes_zero=true$" - save_as: oaes_no_provider_count - - action: assert_greater - actual: "{{ oaes_no_provider_count }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^aer_completes_on_ana_change=true$" - save_as: aer_completion_count - - action: assert_greater - actual: "{{ aer_completion_count }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^aer_limit_still_enforced=true$" - save_as: aer_limit_count - - action: assert_greater - actual: "{{ aer_limit_count }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-summary.txt" - pattern: "^host_live_aer_claim=false$" - save_as: host_live_claim_count - - action: assert_greater - actual: "{{ host_live_claim_count }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase127-nvme-aer/phase127-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 }}-phase127-nvme-aer" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-ana-change-notice-host-chain.yaml b/seaweed-block/testops/scenarios/nvme-ana-change-notice-host-chain.yaml deleted file mode 100644 index b74ad5fbb1..0000000000 --- a/seaweed-block/testops/scenarios/nvme-ana-change-notice-host-chain.yaml +++ /dev/null @@ -1,94 +0,0 @@ -# Live host NVMe ANA Change Notice gate. -# -# This is the Phase 128 runner entry point. It runs the standalone mounted -# NVMe/TCP failover gate under the Linux kernel nvme_async_event tracepoint and -# requires a real host-observed ANA Change Notice AER. -# -# Expected invocation from sw-test-runner-standalone: -# swblock run \ -# -env product_root=/tmp/seaweed_block \ -# -env ssh_key=/path/to/testdev_key \ -# testops/scenarios/nvme-ana-change-notice-host-chain.yaml - -name: nvme-ana-change-notice-host-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,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 }}-nvme-ana-host && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host" - - action: assert_no_processes - node: m02 - pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume " - - - name: host_aer_gate - actions: - - action: exec - node: m02 - timeout: 15m - cmd: "cd {{ product_root }} && bash scripts/run-phase128-nvme-ana-change-notice-host-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host/phase128-nvme-ana-change-notice-host-summary.txt" - pattern: "^phase128_nvme_ana_change_notice_host_gate_status=ok$" - save_as: phase128_ok_count - - action: assert_greater - actual: "{{ phase128_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host/phase128-nvme-ana-change-notice-host-summary.txt" - pattern: "^host_aer_observed=true$" - save_as: host_aer_observed_count - - action: assert_greater - actual: "{{ host_aer_observed_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host/phase128-nvme-ana-change-notice-host-summary.txt" - pattern: "^ana_log_change_count_advanced=true$" - save_as: ana_count_advanced_count - - action: assert_greater - actual: "{{ ana_count_advanced_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-ana-host/phase128-nvme-ana-change-notice-host-summary.txt" - pattern: "^mounted_io_after_notice=ok$" - save_as: mounted_io_ok_count - - action: assert_greater - actual: "{{ mounted_io_ok_count }}" - threshold: "0" - - - 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 }}-nvme-ana-host" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-bounded-soak-chain.yaml b/seaweed-block/testops/scenarios/nvme-bounded-soak-chain.yaml deleted file mode 100644 index be50d31b36..0000000000 --- a/seaweed-block/testops/scenarios/nvme-bounded-soak-chain.yaml +++ /dev/null @@ -1,112 +0,0 @@ -name: nvme-bounded-soak-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 }}-phase101-nvme-soak && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak" - - - name: nvme_bounded_soak - actions: - - action: exec - node: m02 - timeout: 20m - cmd: "cd {{ product_root }} && bash scripts/run-nvme-mounted-failover-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate" - env.SW_BLOCK_NVME_SOAK_ITERATIONS: "5" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^phase101_nvme_soak_status=ok$" - save_as: soak_ok - - action: assert_greater - actual: "{{ soak_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^before_path_count=2$" - save_as: before_two_paths - - action: assert_greater - actual: "{{ before_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^soak_completed_iterations=5$" - save_as: completed_iterations - - action: assert_greater - actual: "{{ completed_iterations }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^soak_1_path_count=2$" - save_as: first_iter_two_paths - - action: assert_greater - actual: "{{ first_iter_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^soak_5_path_count=2$" - save_as: last_iter_two_paths - - action: assert_greater - actual: "{{ last_iter_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^soak_false_ready_count=0$" - save_as: no_false_ready - - action: assert_greater - actual: "{{ no_false_ready }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^soak_identity_drift_count=0$" - save_as: no_identity_drift - - action: assert_greater - actual: "{{ no_identity_drift }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak/gate/phase101-nvme-soak-summary.txt" - pattern: "^final_nvme_residue_count=0$" - save_as: nvme_clean - - action: assert_greater - actual: "{{ nvme_clean }}" - 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: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-soak" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-csi-multipath-component-chain.yaml b/seaweed-block/testops/scenarios/nvme-csi-multipath-component-chain.yaml deleted file mode 100644 index 5288e80545..0000000000 --- a/seaweed-block/testops/scenarios/nvme-csi-multipath-component-chain.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: nvme-csi-multipath-component-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: nvme_csi_multipath_component_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "cd {{ product_root }} && bash scripts/run-phase100-nvme-csi-multipath-component-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component/phase100-nvme-csi-multipath-component-summary.txt" - pattern: "^phase100_nvme_csi_multipath_component_status=ok$" - save_as: phase100_ok - - action: assert_greater - actual: "{{ phase100_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component/phase100-nvme-csi-multipath-component-summary.txt" - pattern: "^control_status_nvme_multipath_grouping=true$" - save_as: grouping_ok - - action: assert_greater - actual: "{{ grouping_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component/phase100-nvme-csi-multipath-component-summary.txt" - pattern: "^node_stage_nvme_multipath_connects_all_targets=true$" - save_as: stage_ok - - action: assert_greater - actual: "{{ stage_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component/phase100-nvme-csi-multipath-component-summary.txt" - pattern: "^live_k8s_nvme_multipath_required_for_release=true$" - save_as: live_required - - action: assert_greater - actual: "{{ live_required }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-component" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-csi-multipath-live-chain.yaml b/seaweed-block/testops/scenarios/nvme-csi-multipath-live-chain.yaml deleted file mode 100644 index 50eb64b8b8..0000000000 --- a/seaweed-block/testops/scenarios/nvme-csi-multipath-live-chain.yaml +++ /dev/null @@ -1,107 +0,0 @@ -name: nvme-csi-multipath-live-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: "kubectl -n default delete pod sw-block-dynamic-smoke --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-dynamic-v1 --ignore-not-found=true --wait=true --timeout=120s; kubectl get pv --no-headers 2>/dev/null | awk '$6==\"sw-block-dynamic\" {print $1}' | xargs -r -I{} kubectl patch pv {} --type=merge -p '{\"metadata\":{\"finalizers\":null}}'; kubectl get pv --no-headers 2>/dev/null | awk '$6==\"sw-block-dynamic\" {print $1}' | xargs -r kubectl delete pv --ignore-not-found=true --wait=false; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live" - - action: assert_no_active_iscsi_sessions - node: m02 - iqn_substr: "io.seaweedfs" - - - 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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/pin_build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/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: nvme_multipath_dynamic_pvc - actions: - - action: exec - node: m02 - timeout: 15m - cmd: "cd {{ product_root }} && bash scripts/run-phase100-nvme-csi-multipath-live-gate.sh {{ product_root }}" - env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/pin_build/alpha-images.env" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/live_gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/live_gate/phase100-nvme-csi-multipath-live-summary.txt" - pattern: "^phase100_nvme_csi_multipath_live_status=ok$" - save_as: live_ok - - action: assert_greater - actual: "{{ live_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/live_gate/phase100-nvme-csi-multipath-live-summary.txt" - pattern: "^generated_nvme_listen_count=2$" - save_as: two_nvme_paths - - action: assert_greater - actual: "{{ two_nvme_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/live_gate/phase100-nvme-csi-multipath-live-summary.txt" - pattern: "^node_stage_nvme_multipath_count=[1-9][0-9]*$" - save_as: node_stage_multipath - - action: assert_greater - actual: "{{ node_stage_multipath }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live/live_gate/phase100-nvme-csi-multipath-live-summary.txt" - pattern: "^nvme_residue_count=0$" - save_as: nvme_clean - - action: assert_greater - actual: "{{ nvme_clean }}" - 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: exec - node: m02 - cmd: "kubectl -n default delete pod sw-block-dynamic-smoke --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-dynamic-v1 --ignore-not-found=true --wait=true --timeout=120s; kubectl get pv --no-headers 2>/dev/null | awk '$6==\"sw-block-dynamic\" {print $1}' | xargs -r -I{} kubectl patch pv {} --type=merge -p '{\"metadata\":{\"finalizers\":null}}'; kubectl get pv --no-headers 2>/dev/null | awk '$6==\"sw-block-dynamic\" {print $1}' | xargs -r kubectl delete pv --ignore-not-found=true --wait=false; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true" - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase100-nvme-csi-multipath-live" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-k8s-mounted-restage-chain.yaml b/seaweed-block/testops/scenarios/nvme-k8s-mounted-restage-chain.yaml index 95f89a8d45..61545c98c2 100644 --- a/seaweed-block/testops/scenarios/nvme-k8s-mounted-restage-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-k8s-mounted-restage-chain.yaml @@ -10,42 +10,46 @@ timeout: 10m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= topology: nodes: - m02: - host: 192.168.1.184 - user: testdev + node-a: + host: "{{ node_host }}" + user: "{{ node_user }}" key: "{{ ssh_key }}" phases: - name: gate actions: - action: exec - node: m02 + node: node-a timeout: 8m - cmd: "cd {{ product_root }} && bash scripts/run-phase129-nvme-k8s-mounted-restage-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-mounted-restage" + 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/run-phase129-nvme-k8s-mounted-restage-gate.sh {{ product_root }}" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-mounted-restage" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" pattern: "^phase129_nvme_k8s_mounted_restage_status=ok$" save_as: phase129_ok_count - action: assert_greater actual: "{{ phase129_ok_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" pattern: "^mounted_nodestage_reconnects_missing_path=true$" save_as: reconnect_contract_count - action: assert_greater actual: "{{ reconnect_contract_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-mounted-restage/phase129-nvme-k8s-mounted-restage-summary.txt" pattern: "^automatic_k8s_reconnect_claim=false$" save_as: automatic_nonclaim_count - action: assert_greater @@ -56,7 +60,7 @@ phases: always: true actions: - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-mounted-restage" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-mounted-restage" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-k8s-reconnect-owner-chain.yaml b/seaweed-block/testops/scenarios/nvme-k8s-reconnect-owner-chain.yaml deleted file mode 100644 index 4b3aedee07..0000000000 --- a/seaweed-block/testops/scenarios/nvme-k8s-reconnect-owner-chain.yaml +++ /dev/null @@ -1,71 +0,0 @@ -# Phase 130 CSI-node NVMe reconnect owner/trigger gate. -# -# This is a source/component gate. It proves the product has an explicit -# CSI-node owner loop that invokes the mounted NVMe reconnect primitive from -# refreshed publish evidence. It deliberately does not claim the full live -# Kubernetes failover close gate; Phase 131 owns pod UID, mounted I/O, and CRD / -# report / dashboard agreement under a real path-set change. - -name: nvme-k8s-reconnect-owner-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: gate - actions: - - action: exec - node: m02 - timeout: 8m - cmd: "cd {{ product_root }} && bash scripts/run-phase130-nvme-reconnect-owner-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner/phase130-nvme-reconnect-owner-summary.txt" - pattern: "^phase130_nvme_k8s_reconnect_owner_status=ok$" - save_as: phase130_ok_count - - action: assert_greater - actual: "{{ phase130_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner/phase130-nvme-reconnect-owner-summary.txt" - pattern: "^reconnect_owner=csi-node$" - save_as: owner_count - - action: assert_greater - actual: "{{ owner_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner/phase130-nvme-reconnect-owner-summary.txt" - pattern: "^owner_loop_invokes_reconnect=true$" - save_as: loop_count - - action: assert_greater - actual: "{{ loop_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner/phase130-nvme-reconnect-owner-summary.txt" - pattern: "^live_k8s_failover_claim=false$" - save_as: live_nonclaim_count - - action: assert_greater - actual: "{{ live_nonclaim_count }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-reconnect-owner" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml b/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml deleted file mode 100644 index 1ba09e22b2..0000000000 --- a/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml +++ /dev/null @@ -1,79 +0,0 @@ -name: nvme-multihost-roce-preflight-chain -timeout: 15m - -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: preflight - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight && cd {{ product_root }} && bash scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^phase103_nvme_multihost_roce_preflight_status=ok$" - save_as: phase103_ok - - action: assert_greater - actual: "{{ phase103_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^read_only=true$" - save_as: read_only - - action: assert_greater - actual: "{{ read_only }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^nvme_tcp_preflight_ready=true$" - save_as: nvme_tcp_ready - - action: assert_greater - actual: "{{ nvme_tcp_ready }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^roce_live_io_claim=false$" - save_as: no_roce_io_claim - - action: assert_greater - actual: "{{ no_roce_io_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight/gate/phase103-nvme-multihost-roce-preflight-summary.txt" - pattern: "^performance_claim_allowed=false$" - save_as: no_perf_claim - - action: assert_greater - actual: "{{ no_perf_claim }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase103-nvme-roce-preflight" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-p4-multipath-failover-chain.yaml b/seaweed-block/testops/scenarios/nvme-p4-multipath-failover-chain.yaml index 0c6dc767d0..3681e72576 100644 --- a/seaweed-block/testops/scenarios/nvme-p4-multipath-failover-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-p4-multipath-failover-chain.yaml @@ -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/nvme-p4-multipath-failover-chain.yaml name: nvme-p4-multipath-failover-chain @@ -16,45 +19,49 @@ 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 }}-nvme-p4-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-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 }}-nvme-p4-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p4-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 }}-nvme-p4-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockvolume ./cmd/blockvolume" + cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockmaster ./cmd/blockmaster && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-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 }}-nvme-p4-chain/pin_build/git.sha && git status --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/git.status && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockvolume.version.txt" + node: node-a + cmd: "cd {{ product_root }} && git rev-parse HEAD > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/git.sha && git status --short > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/git.status && {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockmaster --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockmaster.version.txt && {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin/blockvolume --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockvolume.version.txt" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockvolume.version.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/pin_build/blockvolume.version.txt" pattern: "blockvolume revision=" save_as: blockvolume_version_count - action: assert_greater @@ -64,16 +71,16 @@ phases: - name: multipath_discovery actions: - action: exec - node: m02 + node: node-a timeout: 8m cmd: "cd {{ product_root }} && bash scripts/run-nvme-multipath-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery" - env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery" + env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-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 }}-nvme-p4-chain/multipath_discovery/run.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/run.log" pattern: "\\[nvme-mpath\\] PASS:" save_as: multipath_pass_count - action: assert_greater @@ -83,8 +90,8 @@ phases: # Field-level gate: cross-path identity ANAGRPID == 1 (was # the only field bash already gated; kept for parity). - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/identity-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/identity-summary.txt" pattern: "anagrpid=1" save_as: multipath_anagrpid_count - action: assert_greater @@ -97,8 +104,8 @@ phases: # multiple controllers." Bash never gated the value, only # observed it in id-ctrl text. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-id-ctrl.dev1.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-id-ctrl.dev1.txt" pattern: "^cmic\\s*:\\s*0xa$" save_as: cmic_match_count - action: assert_greater @@ -109,8 +116,8 @@ phases: # Revert of 035702f flips this to 0x0; kernel rejects with # "Duplicate unshared namespace 1." Bash never gated. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-id-ns.dev1.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-id-ns.dev1.txt" pattern: "^nmic\\s*:\\s*0x1$" save_as: nmic_match_count - action: assert_greater @@ -122,8 +129,8 @@ phases: # recognized value (any of 0x01/0x02/0x03/0x04/0x0F); # post-promotion drift to non_optimized would have slipped. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-ana-log.dev1.summary" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-ana-log.dev1.summary" pattern: "^ana_state=0x01 optimized$" save_as: ana_optimized_count - action: assert_greater @@ -132,8 +139,8 @@ phases: # Field-level gate: single ANA group reported. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-ana-log.dev1.summary" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/multipath_discovery/nvme-ana-log.dev1.summary" pattern: "^ana_group_count=1$" save_as: ana_group_count_match - action: assert_greater @@ -141,36 +148,36 @@ phases: threshold: "0" - 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-nvme-mounted-failover-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover" - env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover" + env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/bin" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/run.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/run.log" pattern: "\\[nvme-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 }}-nvme-p4-chain/mounted_failover/pre-check-after-failover.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-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 }}-nvme-p4-chain/mounted_failover/post-check.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/post-check.log" pattern: "/post.bin: OK" save_as: post_checksum_count - action: assert_greater @@ -183,8 +190,8 @@ phases: # at 1). A regression in assignment-epoch logic surfaces as # Epoch=0 or Epoch=1. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" pattern: "\"Epoch\":[2-9][0-9]*" save_as: r2_epoch_ge2_count - action: assert_greater @@ -193,8 +200,8 @@ phases: # Field-level gate: r2 promoted to AuthorityRole=primary. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" pattern: "\"AuthorityRole\":\"primary\"" save_as: r2_role_primary_count - action: assert_greater @@ -207,8 +214,8 @@ phases: # r2 could be authoritative-primary while still rejecting # I/O. - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/mounted_failover/status-r2-primary.json" pattern: "\"FrontendPrimaryReady\":true" save_as: r2_frontend_ready_count - action: assert_greater @@ -218,25 +225,25 @@ phases: - name: final_asserts actions: - action: exec - node: m02 - cmd: "sudo nvme list-subsys -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p4-chain/nvme-list-subsys.final.json" + node: node-a + cmd: "sudo nvme list-subsys -o json > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain/nvme-list-subsys.final.json" - 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 }}-nvme-p4-chain" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p4-chain" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-p5-csi-protocol-chain.yaml b/seaweed-block/testops/scenarios/nvme-p5-csi-protocol-chain.yaml index d9e2427a93..4205cc2e62 100644 --- a/seaweed-block/testops/scenarios/nvme-p5-csi-protocol-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-p5-csi-protocol-chain.yaml @@ -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/nvme-p5-csi-protocol-chain.yaml name: nvme-p5-csi-protocol-chain @@ -16,44 +19,48 @@ 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 }}-nvme-p5-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain" + 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 }}-nvme-p5-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p5-chain" + 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_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 }}-nvme-p5-chain/pin_build" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" pattern: "SW_BLOCK_IMAGE_ID=" save_as: pin_image_id_count - action: assert_greater @@ -63,22 +70,22 @@ phases: - name: nvme_dynamic_pvc actions: - action: exec - node: m02 + node: node-a timeout: 10m cmd: "cd {{ product_root }} && bash scripts/run-k8s-alpha-nvme.sh {{ product_root }}" - env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc" + env.SW_BLOCK_ALPHA_IMAGES_ENV: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc/run.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc/run.log" pattern: "\\[alpha-nvme\\] PASS:" save_as: nvme_pass_count - action: assert_greater actual: "{{ nvme_pass_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc/generated-blockvolume.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/nvme_dynamic_pvc/generated-blockvolume.yaml" pattern: "--nvme-listen=" save_as: nvme_arg_count - action: assert_greater @@ -88,22 +95,22 @@ phases: - name: default_iscsi_regression actions: - action: exec - node: m02 + node: node-a timeout: 8m cmd: "cd {{ product_root }} && bash scripts/run-k8s-alpha.sh {{ product_root }}" - env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression" + env.SW_BLOCK_ALPHA_IMAGES_ENV: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/pin_build/alpha-images.env" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression/run.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression/run.log" pattern: "\\[alpha\\] PASS:" save_as: iscsi_pass_count - action: assert_greater actual: "{{ iscsi_pass_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression/generated-blockvolume.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain/default_iscsi_regression/generated-blockvolume.yaml" pattern: "--iscsi-listen=" save_as: iscsi_arg_count - action: assert_greater @@ -113,22 +120,22 @@ phases: - name: final_asserts actions: - 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 }}-nvme-p5-chain" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-chain" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-p5-protocol-component-gate.yaml b/seaweed-block/testops/scenarios/nvme-p5-protocol-component-gate.yaml index 5ad74ed19a..01d0ee8f4e 100644 --- a/seaweed-block/testops/scenarios/nvme-p5-protocol-component-gate.yaml +++ b/seaweed-block/testops/scenarios/nvme-p5-protocol-component-gate.yaml @@ -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/nvme-p5-protocol-component-gate.yaml name: nvme-p5-protocol-component-gate @@ -16,107 +19,111 @@ timeout: 5m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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: 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 " - action: exec - node: m02 - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build" + 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 }}-nvme-p5-protocol-component && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" - name: pin_build actions: - action: exec - node: m02 - cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.status" + node: node-a + cmd: "cd {{ product_root }} && git rev-parse HEAD > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.sha && git status --porcelain > {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.status && test ! -s {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/pin_build/git.status" - name: protocol_component_tests actions: - action: exec - node: m02 + node: node-a timeout: 3m - cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -v ./core/csi ./core/host/master ./core/lifecycle ./core/launcher | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log'" + cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -v ./core/csi ./core/host/master ./core/lifecycle ./core/launcher | tee {{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log'" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15c_ControllerCreateVolume_RecordsProtocolSelection" save_as: csi_protocol_selection_count - action: assert_greater actual: "{{ csi_protocol_selection_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15c_ControllerCreateVolume_RejectsConflictingProtocolParameters" save_as: csi_protocol_conflict_count - action: assert_greater actual: "{{ csi_protocol_conflict_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15c_ControllerCreateVolume_RejectsInvalidProtocol" save_as: csi_protocol_invalid_count - action: assert_greater actual: "{{ csi_protocol_invalid_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15c_LifecycleService_CreateVolumePersistsDesiredIntent" save_as: master_lifecycle_protocol_count - action: assert_greater actual: "{{ master_lifecycle_protocol_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestFileStore_CreateVolumePersistsProtocolSelection" save_as: lifecycle_store_protocol_count - action: assert_greater actual: "{{ lifecycle_store_protocol_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15d_WorkloadPlan_NVMeProtocolCreatesNVMeTargets" save_as: lifecycle_nvme_plan_count - action: assert_greater actual: "{{ lifecycle_nvme_plan_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15d_WorkloadPlan_BlankPoolRF2CreatesReplicaWorkloads" save_as: lifecycle_default_iscsi_count - action: assert_greater actual: "{{ lifecycle_default_iscsi_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15d_K8sRenderer_RendersNVMeBlockVolumeArgs" save_as: launcher_nvme_render_count - action: assert_greater actual: "{{ launcher_nvme_render_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component/protocol-component-go-test.log" pattern: "PASS: TestG15d_K8sRenderer_RendersBlockVolumeDeploymentArgs" save_as: launcher_iscsi_render_count - action: assert_greater @@ -126,17 +133,17 @@ phases: - name: final_asserts actions: - 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: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-nvme-p5-protocol-component" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-path-failure-status-chain.yaml b/seaweed-block/testops/scenarios/nvme-path-failure-status-chain.yaml deleted file mode 100644 index f67e9a5c8e..0000000000 --- a/seaweed-block/testops/scenarios/nvme-path-failure-status-chain.yaml +++ /dev/null @@ -1,95 +0,0 @@ -name: nvme-path-failure-status-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 }}-phase101-nvme-path-failure && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure" - - - name: nvme_path_failure_status - actions: - - action: exec - node: m02 - timeout: 20m - cmd: "cd {{ product_root }} && bash scripts/run-nvme-mounted-failover-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^phase101_nvme_path_failure_status=ok$" - save_as: d2_ok - - action: assert_greater - actual: "{{ d2_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^before_path_count=2$" - save_as: before_two_paths - - action: assert_greater - actual: "{{ before_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^after_path_count=1$" - save_as: after_one_path - - action: assert_greater - actual: "{{ after_one_path }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^after_nvme_reason=nvme_multipath_path_missing$" - save_as: missing_path_reason - - action: assert_greater - actual: "{{ missing_path_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^after_ready_true=false$" - save_as: no_false_ready - - action: assert_greater - actual: "{{ no_false_ready }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure/gate/phase101-nvme-path-failure-summary.txt" - pattern: "^final_nvme_residue_count=0$" - save_as: nvme_clean - - action: assert_greater - actual: "{{ nvme_clean }}" - 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: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-path-failure" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-rdma-k8s-multipath-reconnect-chain.yaml b/seaweed-block/testops/scenarios/nvme-rdma-k8s-multipath-reconnect-chain.yaml deleted file mode 100644 index 1acbdc601b..0000000000 --- a/seaweed-block/testops/scenarios/nvme-rdma-k8s-multipath-reconnect-chain.yaml +++ /dev/null @@ -1,201 +0,0 @@ -name: nvme-rdma-k8s-multipath-reconnect-chain -timeout: 130m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - app_node: "" - app_ssh_addr: "" - -topology: - nodes: - m02: - host: 192.168.1.184 - user: testdev - key: "{{ ssh_key }}" - -phases: - - name: run_close_gate - actions: - - action: exec - node: m02 - timeout: 125m - cmd: "cd {{ product_root }} && bash scripts/run-phase166-nvme-rdma-k8s-multipath-reconnect-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath" - env.SW_BLOCK_PHASE166_RUN_ID: "{{ run_id }}" - env.SW_BLOCK_PHASE166_APP_NODE: "{{ app_node }}" - env.SW_BLOCK_PHASE166_APP_SSH_ADDR: "{{ app_ssh_addr }}" - env.SW_BLOCK_PHASE166_APP_SSH_KEY: "/opt/work/testdev_key" - - - name: assert_terminal_evidence - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^phase166_nvme_rdma_k8s_multipath_reconnect_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_initial_live_rdma_path_count=2$" - save_as: outage_baseline - - action: assert_greater - actual: "{{ outage_baseline }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_degraded_live_rdma_path_count=1$" - save_as: outage_degraded - - action: assert_greater - actual: "{{ outage_degraded }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_mounted_io=ok$" - save_as: outage_io - - action: assert_greater - actual: "{{ outage_io }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_negative_surface_reason=nvme_multipath_path_missing$" - save_as: outage_negative - - action: assert_greater - actual: "{{ outage_negative }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_restored_live_rdma_path_count=2$" - save_as: outage_restored - - action: assert_greater - actual: "{{ outage_restored }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_restore_mounted_io=ok$" - save_as: restore_io - - action: assert_greater - actual: "{{ restore_io }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^desired_rdma_endpoint_changed=true$" - save_as: endpoint_changed - - action: assert_greater - actual: "{{ endpoint_changed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^new_rdma_endpoint_connected=true$" - save_as: endpoint_connected - - action: assert_greater - actual: "{{ endpoint_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^stale_rdma_endpoint_pruned=true$" - save_as: stale_pruned - - action: assert_greater - actual: "{{ stale_pruned }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_live_rdma_path_count=2$" - save_as: endpoint_paths - - action: assert_greater - actual: "{{ endpoint_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_pod_uid_preserved=true$" - save_as: endpoint_uid - - action: assert_greater - actual: "{{ endpoint_uid }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_mounted_io=ok$" - save_as: endpoint_io - - action: assert_greater - actual: "{{ endpoint_io }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_surfaces_agree=true$" - save_as: surfaces - - action: assert_greater - actual: "{{ surfaces }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_tcp_fallback_observed=false$" - save_as: outage_no_tcp - - action: assert_greater - actual: "{{ outage_no_tcp }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_tcp_fallback_observed=false$" - save_as: endpoint_no_tcp - - action: assert_greater - actual: "{{ endpoint_no_tcp }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^outage_is_non_primary=true$" - save_as: non_primary_outage - - action: assert_greater - actual: "{{ non_primary_outage }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^endpoint_transition_io=ok$" - save_as: transition_io - - action: assert_greater - actual: "{{ transition_io }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-summary.txt" - pattern: "^hostpath_cleanup_nodes=m01,m02$" - save_as: hostpath_cleanup - - action: assert_greater - actual: "{{ hostpath_cleanup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase166-nvme-rdma-multipath/phase166-nvme-rdma-k8s-multipath-reconnect-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 }}-phase166-nvme-rdma-multipath" - name: remote-phases - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-rdma-k8s-publish-attach-chain.yaml b/seaweed-block/testops/scenarios/nvme-rdma-k8s-publish-attach-chain.yaml deleted file mode 100644 index 1f0d594c08..0000000000 --- a/seaweed-block/testops/scenarios/nvme-rdma-k8s-publish-attach-chain.yaml +++ /dev/null @@ -1,85 +0,0 @@ -name: nvme-rdma-k8s-publish-attach-chain -timeout: 60m - -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_close_gate - actions: - - action: exec - node: m02 - timeout: 55m - cmd: "cd {{ product_root }} && bash scripts/run-phase165-nvme-rdma-k8s-publish-attach-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s" - env.SW_BLOCK_PHASE165_RUN_ID: "{{ run_id }}" - env.SW_BLOCK_PHASE165_APP_SSH_KEY: "/opt/work/testdev_key" - - - name: assert_terminal_evidence - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-summary.txt" - pattern: "^phase165_nvme_rdma_k8s_publish_attach_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-summary.txt" - pattern: "^active_host_controller_transport=rdma$" - save_as: host_rdma - - action: assert_greater - actual: "{{ host_rdma }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-summary.txt" - pattern: "^swblockvolume_status_transport=rdma$" - save_as: status_rdma - - action: assert_greater - actual: "{{ status_rdma }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_ok - - action: assert_greater - actual: "{{ writer_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_ok - - action: assert_greater - actual: "{{ reader_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase165-nvme-rdma-k8s/phase165-nvme-rdma-k8s-publish-attach-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 }}-phase165-nvme-rdma-k8s" - name: remote-phases - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-rdma-standalone-hardening-chain.yaml b/seaweed-block/testops/scenarios/nvme-rdma-standalone-hardening-chain.yaml deleted file mode 100644 index 6b2b951baf..0000000000 --- a/seaweed-block/testops/scenarios/nvme-rdma-standalone-hardening-chain.yaml +++ /dev/null @@ -1,121 +0,0 @@ -name: nvme-rdma-standalone-hardening-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: run_gate - actions: - - action: exec - node: m02 - timeout: 25m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma && cd {{ product_root }} && SW_BLOCK_PHASE164_RUN_ID={{ run_id }} SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma bash scripts/run-phase164-nvme-rdma-standalone-hardening-gate.sh {{ product_root }}" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^phase164_nvme_rdma_standalone_hardening_status=ok$" - save_as: phase164_ok - - action: assert_greater - actual: "{{ phase164_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^startup_rollback_verified=true$" - save_as: rollback - - action: assert_greater - actual: "{{ rollback }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^small_and_large_io_verified=true$" - save_as: io_shape - - action: assert_greater - actual: "{{ io_shape }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^flush_and_fua_verified=true$" - save_as: flush_fua - - action: assert_greater - actual: "{{ flush_fua }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^durable_restart_reconnect_verified=true$" - save_as: restart - - action: assert_greater - actual: "{{ restart }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^capability_restart_honesty_verified=true$" - save_as: capability_restart - - action: assert_greater - actual: "{{ capability_restart }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^multi_target_isolation_verified=true$" - save_as: isolation - - action: assert_greater - actual: "{{ isolation }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^bounded_connect_churn_verified=true$" - save_as: churn - - action: assert_greater - actual: "{{ churn }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^negative_preflight_refusal_verified=true$" - save_as: refusal - - action: assert_greater - actual: "{{ refusal }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^port_conflict_refusal_verified=true$" - save_as: port_conflict - - action: assert_greater - actual: "{{ port_conflict }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma/phase164-nvme-rdma-standalone-hardening-summary.txt" - pattern: "^cleanup_status=ok$" - save_as: cleanup - - action: assert_greater - actual: "{{ cleanup }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase164-nvme-rdma" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-rdma-standalone-live-chain.yaml b/seaweed-block/testops/scenarios/nvme-rdma-standalone-live-chain.yaml deleted file mode 100644 index a18a88d692..0000000000 --- a/seaweed-block/testops/scenarios/nvme-rdma-standalone-live-chain.yaml +++ /dev/null @@ -1,89 +0,0 @@ -name: nvme-rdma-standalone-live-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: run_gate - actions: - - action: exec - node: m02 - timeout: 15m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma && cd {{ product_root }} && SW_BLOCK_PHASE163_RUN_ID={{ run_id }} SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma bash scripts/run-phase163-nvme-rdma-standalone-live-gate.sh {{ product_root }}" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^phase163_nvme_rdma_standalone_listener_impl_spike_status=ok$" - save_as: phase163_ok - - action: assert_greater - actual: "{{ phase163_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^linux_nvme_connect_rdma_succeeded=true$" - save_as: rdma_connect - - action: assert_greater - actual: "{{ rdma_connect }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^standalone_write_read_verified=true$" - save_as: rdma_io - - action: assert_greater - actual: "{{ rdma_io }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^seaweed_backend_write_observed=true$" - save_as: seaweed_backend - - action: assert_greater - actual: "{{ seaweed_backend }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^capability_endpoint_reports_rdma_supported=true$" - save_as: capability_supported - - action: assert_greater - actual: "{{ capability_supported }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^rdma_not_published_to_csi=true$" - save_as: no_csi_publish - - action: assert_greater - actual: "{{ no_csi_publish }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase163-nvme-rdma/phase163-nvme-rdma-standalone-live-summary.txt" - pattern: "^disconnect_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 }}-phase163-nvme-rdma" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-rdma-transport-seam-chain.yaml b/seaweed-block/testops/scenarios/nvme-rdma-transport-seam-chain.yaml deleted file mode 100644 index dbefa818f3..0000000000 --- a/seaweed-block/testops/scenarios/nvme-rdma-transport-seam-chain.yaml +++ /dev/null @@ -1,79 +0,0 @@ -name: nvme-rdma-transport-seam-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: run_phase118_gate - actions: - - action: exec - node: m02 - timeout: 15m - cmd: "cd {{ product_root }} && bash scripts/run-phase118-nvme-rdma-transport-seam-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^phase118_nvme_rdma_transport_seam_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^target_transport_seam_present=true$" - save_as: seam_present - - action: assert_greater - actual: "{{ seam_present }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^rdma_target_error_typed=true$" - save_as: typed_error - - action: assert_greater - actual: "{{ typed_error }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^blockvolume_rdma_public_refusal=true$" - save_as: public_refusal - - action: assert_greater - actual: "{{ public_refusal }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^rdma_listener_implemented=false$" - save_as: rdma_listener_not_claimed - - action: assert_greater - actual: "{{ rdma_listener_not_claimed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam/gate/phase118-nvme-rdma-transport-seam-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase118-nvme-rdma-transport-seam" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-release-artifact-smoke-chain.yaml b/seaweed-block/testops/scenarios/nvme-release-artifact-smoke-chain.yaml deleted file mode 100644 index 78946d9d5d..0000000000 --- a/seaweed-block/testops/scenarios/nvme-release-artifact-smoke-chain.yaml +++ /dev/null @@ -1,111 +0,0 @@ -name: nvme-release-artifact-smoke-chain -timeout: 90m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - release_image: "" - release_csi_image: "" - -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: "kubectl -n default delete pod sw-block-dynamic-smoke --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-dynamic-v1 --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact" - - - name: nvme_release_artifact_smoke - actions: - - action: exec - node: m02 - timeout: 80m - cmd: "cd {{ product_root }} && bash scripts/run-phase102-nvme-release-artifact-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate" - env.SW_BLOCK_RELEASE_IMAGE: "{{ release_image }}" - env.SW_BLOCK_CSI_RELEASE_IMAGE: "{{ release_csi_image }}" - env.SW_BLOCK_NVME_SOAK_ITERATIONS: "5" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase102_nvme_release_artifact_status=ok$" - save_as: phase102_ok - - action: assert_greater - actual: "{{ phase102_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase100_nvme_csi_multipath_live_status=ok$" - save_as: phase100_ok - - action: assert_greater - actual: "{{ phase100_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase101_nvme_path_failure_status=ok$" - save_as: path_failure_ok - - action: assert_greater - actual: "{{ path_failure_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase101_nvme_stage_unstage_status=ok$" - save_as: stage_unstage_ok - - action: assert_greater - actual: "{{ stage_unstage_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase101_nvme_soak_status=ok$" - save_as: soak_ok - - action: assert_greater - actual: "{{ soak_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase101_soak_false_ready_count=0$" - save_as: no_false_ready - - action: assert_greater - actual: "{{ no_false_ready }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact/gate/phase102-nvme-release-artifact-smoke-summary.txt" - pattern: "^phase101_soak_identity_drift_count=0$" - save_as: no_identity_drift - - action: assert_greater - actual: "{{ no_identity_drift }}" - 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: exec - node: m02 - cmd: "kubectl -n default delete pod sw-block-dynamic-smoke --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-dynamic-v1 --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true" - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase102-nvme-release-artifact" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-stage-unstage-residue-chain.yaml b/seaweed-block/testops/scenarios/nvme-stage-unstage-residue-chain.yaml deleted file mode 100644 index 2ea5a779db..0000000000 --- a/seaweed-block/testops/scenarios/nvme-stage-unstage-residue-chain.yaml +++ /dev/null @@ -1,112 +0,0 @@ -name: nvme-stage-unstage-residue-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 }}-phase101-nvme-stage-unstage && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage" - - - name: nvme_stage_unstage - actions: - - action: exec - node: m02 - timeout: 20m - cmd: "cd {{ product_root }} && bash scripts/run-phase101-nvme-stage-unstage-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate" - env.SW_BLOCK_NVME_STAGE_CYCLES: "3" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^phase101_nvme_stage_unstage_status=ok$" - save_as: d3_ok - - action: assert_greater - actual: "{{ d3_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_1_connected_path_count=2$" - save_as: cycle1_connected - - action: assert_greater - actual: "{{ cycle1_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_2_connected_path_count=2$" - save_as: cycle2_connected - - action: assert_greater - actual: "{{ cycle2_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_3_connected_path_count=2$" - save_as: cycle3_connected - - action: assert_greater - actual: "{{ cycle3_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_1_disconnected_path_count=0$" - save_as: cycle1_clean - - action: assert_greater - actual: "{{ cycle1_clean }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_2_disconnected_path_count=0$" - save_as: cycle2_clean - - action: assert_greater - actual: "{{ cycle2_clean }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^cycle_3_disconnected_path_count=0$" - save_as: cycle3_clean - - action: assert_greater - actual: "{{ cycle3_clean }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage/gate/phase101-nvme-stage-unstage-summary.txt" - pattern: "^final_nvme_residue_count=0$" - save_as: final_clean - - action: assert_greater - actual: "{{ final_clean }}" - 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: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase101-nvme-stage-unstage" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-100gbe-baseline-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-100gbe-baseline-chain.yaml deleted file mode 100644 index d7e91c9052..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-100gbe-baseline-chain.yaml +++ /dev/null @@ -1,127 +0,0 @@ -name: nvme-tcp-100gbe-baseline-chain -timeout: 45m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase122-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase122-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase122 --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase122/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase122/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 38m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe SW_BLOCK_PHASE122_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE122_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase122-nvme-tcp-100gbe-baseline-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^phase122_nvme_tcp_100gbe_baseline_status=ok$" - save_as: phase122_status_ok - - action: assert_greater - actual: "{{ phase122_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^publish_target=10\\.0\\.0\\.[0-9]+:4420$" - save_as: target_is_100gbe - - action: assert_greater - actual: "{{ target_is_100gbe }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^publish_target_network_class=100gbe_tcp$" - save_as: network_class_ok - - action: assert_greater - actual: "{{ network_class_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^publish_target_route_dev=enp1s0np0$" - save_as: route_dev_ok - - action: assert_greater - actual: "{{ route_dev_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^frontend_transport=tcp$" - save_as: frontend_tcp - - action: assert_greater - actual: "{{ frontend_tcp }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^nvme_rdma_supported=false$" - save_as: rdma_false - - action: assert_greater - actual: "{{ rdma_false }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^seq_write_mibps=[0-9]" - save_as: seq_write_metric - - action: assert_greater - actual: "{{ seq_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^seq_read_mibps=[0-9]" - save_as: seq_read_metric - - action: assert_greater - actual: "{{ seq_read_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-summary.txt" - pattern: "^small_write_iops=[0-9]" - save_as: small_write_metric - - action: assert_greater - actual: "{{ small_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase122-nvme-100gbe/phase122-nvme-tcp-100gbe-baseline-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 }}-phase122-nvme-100gbe" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-backend-write-instrumentation-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-backend-write-instrumentation-chain.yaml deleted file mode 100644 index ef28cc62de..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-backend-write-instrumentation-chain.yaml +++ /dev/null @@ -1,119 +0,0 @@ -name: nvme-tcp-backend-write-instrumentation-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase126-block-nvme-tcp-backend-write-instrumentation-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^phase126_block_nvme_tcp_backend_write_instrumentation_status=ok$" - save_as: phase126_status_ok - - action: assert_greater - actual: "{{ phase126_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^target_write_bytes=[1-9][0-9]*$" - save_as: target_bytes - - action: assert_greater - actual: "{{ target_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^backend_write_bytes=[1-9][0-9]*$" - save_as: backend_bytes - - action: assert_greater - actual: "{{ backend_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^target_write_duration_ms=[1-9][0-9]*$" - save_as: target_duration - - action: assert_greater - actual: "{{ target_duration }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^backend_write_duration_ms=[1-9][0-9]*$" - save_as: backend_duration - - action: assert_greater - actual: "{{ backend_duration }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^write_path_observation=\\(backend_write\\|backend_sync\\|target_protocol\\|unknown\\)$" - save_as: observation_named - - action: assert_greater - actual: "{{ observation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-summary.txt" - pattern: "^next_recommendation=phase127_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase126-write-instrumentation/phase126-block-nvme-tcp-backend-write-instrumentation-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 }}-phase126-write-instrumentation" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-bottleneck-triage-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-bottleneck-triage-chain.yaml deleted file mode 100644 index f96d97ff05..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-bottleneck-triage-chain.yaml +++ /dev/null @@ -1,111 +0,0 @@ -name: nvme-tcp-bottleneck-triage-chain -timeout: 50m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase123-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase123-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase123 --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase123/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase123/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 42m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage SW_BLOCK_PHASE123_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE123_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase123-nvme-tcp-bottleneck-triage-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^phase123_nvme_tcp_bottleneck_triage_status=ok$" - save_as: phase123_status_ok - - action: assert_greater - actual: "{{ phase123_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^publish_target=10[.]0[.]0[.][0-9][0-9]*:4420$" - save_as: target_is_data_plane - - action: assert_greater - actual: "{{ target_is_data_plane }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^network_baseline_status=ok$" - save_as: network_baseline_ok - - action: assert_greater - actual: "{{ network_baseline_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^network_baseline_mibps=[0-9]" - save_as: network_metric - - action: assert_greater - actual: "{{ network_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^k8s_mounted_nvme_tcp_mibps=[0-9]" - save_as: k8s_metric - - action: assert_greater - actual: "{{ k8s_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^top_bottleneck=" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-summary.txt" - pattern: "^next_recommendation=phase" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase123-nvme-triage/phase123-nvme-tcp-bottleneck-triage-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 }}-phase123-nvme-triage" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-live-attach-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-cross-node-live-attach-chain.yaml deleted file mode 100644 index 35622bae9e..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-live-attach-chain.yaml +++ /dev/null @@ -1,187 +0,0 @@ -name: nvme-tcp-cross-node-live-attach-chain -timeout: 45m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - helm_release: "sw-block" - helm_namespace: "kube-system" - -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 240s || 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 nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/asserts /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/cleanup" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_images - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "cd {{ product_root }} && if docker image inspect sw-block:local sw-block-csi:local >/dev/null 2>&1; then mkdir -p \"$SW_BLOCK_ARTIFACT_DIR\"; echo \"SW_BLOCK_IMAGE_ID=$(docker image inspect sw-block:local --format '{{.Id}}')\" > \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo \"SW_BLOCK_CSI_IMAGE_ID=$(docker image inspect sw-block-csi:local --format '{{.Id}}')\" >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo cached_images=true >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; else bash scripts/build-alpha-images.sh {{ product_root }}; fi" - env.SW_BLOCK_IMPORT_K3S: "1" - env.SW_BLOCK_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: generate_values - actions: - - action: exec - node: m02 - timeout: 4m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/generate.stdout.txt" - pattern: "^network_mode=external-nvme$" - save_as: external_nvme_count - - action: assert_greater - actual: "{{ external_nvme_count }}" - threshold: "0" - - - name: helm_install_stack - actions: - - action: exec - node: m02 - timeout: 12m - cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/install/helm-template.yaml && ! grep -q -- '--launcher-external-iscsi' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/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 }}-phase106-nvme-live/values/values.nvme.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/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 }}-phase106-nvme-live/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: 10m - cmd: "set -e; APP_NODE=$(cat /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/values/app-node.txt); cd {{ product_root }} && SW_BLOCK_BASIC_APP_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_BASIC_APP_PROTOCOL=nvme 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 }}-phase106-nvme-live/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 }}-phase106-nvme-live/values/values.nvme.yaml" - - - name: live_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/basic-app/first-volume-summary.txt" - pattern: "^first_volume_status=ok$" - save_as: first_volume_ok - - action: assert_greater - actual: "{{ first_volume_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/basic-app/first-volume-summary.txt" - pattern: "^app_protocol=nvme$" - save_as: app_protocol_nvme - - action: assert_greater - actual: "{{ app_protocol_nvme }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/basic-app/first-volume-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_verified - - action: assert_greater - actual: "{{ writer_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/basic-app/first-volume-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_verified - - action: assert_greater - actual: "{{ reader_verified }}" - threshold: "0" - - action: exec - node: m02 - timeout: 2m - cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live; python3 - <<'PY'\nfrom pathlib import Path\nimport json\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live')\nblock_node=(base/'values/blockvolume-node.txt').read_text().strip()\napp_node=(base/'values/app-node.txt').read_text().strip()\nsummary=(base/'basic-app/first-volume-summary.txt').read_text()\nreport=(base/'basic-app/status/report/summary.txt').read_text()\ncluster=json.load(open(base/'basic-app/status/cluster-evidence.json'))\nvols=cluster.get('volumes') or []\nif not vols:\n raise SystemExit('no volumes in cluster evidence')\nvol=vols[0]\ntarget=vol.get('publish_target') or ''\nraw_status=vol.get('status') or ''\nif block_node == app_node:\n raise SystemExit(f'not cross-node: {block_node}')\nif target.startswith('127.') or target.startswith('localhost'):\n raise SystemExit(f'loopback target: {target}')\nif ':4420' not in target:\n raise SystemExit(f'unexpected nvme target: {target}')\nif 'managed_volume=' not in report or ' status=ready reason=first_volume_verified' not in report:\n raise SystemExit('managed-volume report did not surface ready/first_volume_verified')\nif 'managed_volume_nvme=' not in report or target not in report:\n raise SystemExit('managed-volume NVMe report missing publish target')\ntext='\\n'.join([\n 'phase106_nvme_tcp_cross_node_live_status=ok',\n f'blockvolume_node={block_node}',\n f'app_node={app_node}',\n f'publish_target={target}',\n 'publish_target_loopback=false',\n 'protocol=nvme',\n f'raw_cluster_status={raw_status}',\n 'managed_volume_status=ready',\n 'managed_volume_reason=first_volume_verified',\n 'writer_verified=true' if 'writer_verified=true' in summary else 'writer_verified=false',\n 'reader_verified=true' if 'reader_verified=true' in summary else 'reader_verified=false',\n])+'\\n'\n(base/'asserts/phase106-live-summary.txt').write_text(text)\nPY" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/asserts/phase106-live-summary.txt" - pattern: "^phase106_nvme_tcp_cross_node_live_status=ok$" - save_as: live_ok - - action: assert_greater - actual: "{{ live_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/asserts/phase106-live-summary.txt" - pattern: "^publish_target_loopback=false$" - save_as: non_loopback - - action: assert_greater - actual: "{{ non_loopback }}" - threshold: "0" - - - 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 45s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live/cleanup/helm-uninstall.txt || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 3m - cmd: "kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=45s || true; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=45s || true; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=45s || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 1m - cmd: "kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 1m - cmd: "sleep 5; kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 1m - cmd: "sleep 10; kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-example/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-live" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-isolation-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-isolation-chain.yaml deleted file mode 100644 index 5872dec366..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-isolation-chain.yaml +++ /dev/null @@ -1,182 +0,0 @@ -name: nvme-tcp-cross-node-multivolume-isolation-chain -timeout: 45m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - helm_release: "sw-block" - helm_namespace: "kube-system" - volume_count: "2" - -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 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/asserts /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/cleanup" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_images - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "cd {{ product_root }} && if docker image inspect sw-block:local sw-block-csi:local >/dev/null 2>&1; then mkdir -p \"$SW_BLOCK_ARTIFACT_DIR\"; echo \"SW_BLOCK_IMAGE_ID=$(docker image inspect sw-block:local --format '{{.Id}}')\" > \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo \"SW_BLOCK_CSI_IMAGE_ID=$(docker image inspect sw-block-csi:local --format '{{.Id}}')\" >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo cached_images=true >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; else bash scripts/build-alpha-images.sh {{ product_root }}; fi" - env.SW_BLOCK_IMPORT_K3S: "1" - env.SW_BLOCK_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: generate_values - actions: - - action: exec - node: m02 - timeout: 4m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/generate.stdout.txt" - pattern: "^network_mode=external-nvme$" - save_as: external_nvme_count - - action: assert_greater - actual: "{{ external_nvme_count }}" - threshold: "0" - - - name: helm_install_stack - actions: - - action: exec - node: m02 - timeout: 12m - cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/install/helm-template.yaml && ! grep -q -- '--launcher-external-iscsi' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/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 }}-phase107-nvme-multivolume/values/values.nvme.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/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 }}-phase107-nvme-multivolume/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: 10m - cmd: "set -e; APP_NODE=$(cat /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/values/app-node.txt); cd {{ product_root }} && SW_BLOCK_MULTI_VOLUME_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_MULTI_VOLUME_PROTOCOL=nvme 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 }}-phase107-nvme-multivolume/multi-volume" - env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}" - env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "0" - env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/bin/sw-block" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/multi-volume/multi-volume-summary.txt" - pattern: "^multi_volume_status=ok$" - save_as: multi_volume_ok - - action: assert_greater - actual: "{{ multi_volume_ok }}" - threshold: "0" - - - name: isolation_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/multi-volume/multi-volume-summary.txt" - pattern: "^protocol=nvme$" - save_as: protocol_nvme - - action: assert_greater - actual: "{{ protocol_nvme }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/multi-volume/multi-volume-summary.txt" - pattern: "^writer_verified_count=2$" - 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 }}-phase107-nvme-multivolume/multi-volume/multi-volume-summary.txt" - pattern: "^reader_verified_count=2$" - 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 }}-phase107-nvme-multivolume/multi-volume/multi-volume-summary.txt" - pattern: "^managed_volume_count=2$" - save_as: managed_volume_count_ok - - action: assert_greater - actual: "{{ managed_volume_count_ok }}" - threshold: "0" - - action: exec - node: m02 - timeout: 2m - cmd: "python3 - <<'PY'\nfrom pathlib import Path\nimport re\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume')\napp_node=(base/'values/app-node.txt').read_text().strip()\nsummary=(base/'multi-volume/status/report/summary.txt').read_text().splitlines()\nmanaged=[line for line in summary if line.startswith('managed_volume=')]\nnvme=[line for line in summary if line.startswith('managed_volume_nvme=')]\nif len(managed) != 2:\n raise SystemExit(f'managed_volume_count={len(managed)}')\nif len(nvme) != 2:\n raise SystemExit(f'nvme_line_count={len(nvme)}')\nready=[line for line in managed if ' status=ready ' in line and ' reason=first_volume_verified' in line]\nif len(ready) != 2:\n raise SystemExit('not all managed volumes are ready/first_volume_verified')\nids=[]\nnqns=[]\naddrs=[]\nfor line in managed:\n m=re.match(r'managed_volume=([^ ]+)', line)\n if m:\n ids.append(m.group(1))\nfor line in nvme:\n for key, sink in [('nqn', nqns), ('addr', addrs)]:\n m=re.search(rf' {key}=([^ ]+)', line)\n if m:\n sink.append(m.group(1))\nif len(set(ids)) != 2:\n raise SystemExit(f'volume identity collapsed: {ids}')\nif len(set(nqns)) != 2:\n raise SystemExit(f'nqn identity collapsed: {nqns}')\nif any(a.startswith('127.') or a.startswith('localhost') for a in addrs):\n raise SystemExit(f'loopback nvme addr observed: {addrs}')\nif not all(':4420' in a or ':442' in a for a in addrs):\n raise SystemExit(f'unexpected nvme addrs: {addrs}')\ntext='\\n'.join([\n 'phase107_nvme_tcp_multivolume_isolation_status=ok',\n f'app_node={app_node}',\n 'protocol=nvme',\n 'managed_volume_count=2',\n 'writer_verified_count=2',\n 'reader_verified_count=2',\n 'managed_volume_status=ready',\n 'managed_volume_reason=first_volume_verified',\n f'distinct_volume_ids={len(set(ids))}',\n f'distinct_nvme_nqns={len(set(nqns))}',\n 'publish_target_loopback=false',\n 'cross_volume_identity_mixup=false',\n])+'\\n'\n(base/'asserts/phase107-isolation-summary.txt').write_text(text)\nPY" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/asserts/phase107-isolation-summary.txt" - pattern: "^phase107_nvme_tcp_multivolume_isolation_status=ok$" - save_as: isolation_ok - - action: assert_greater - actual: "{{ isolation_ok }}" - threshold: "0" - - - 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 45s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume/cleanup/helm-uninstall.txt || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 3m - cmd: "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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 1m - cmd: "kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m02 - timeout: 1m - cmd: "sleep 5; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase107-nvme-multivolume" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-lifecycle-soak-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-lifecycle-soak-chain.yaml index 70173efb34..a320180bd3 100644 --- a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-lifecycle-soak-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-tcp-cross-node-multivolume-lifecycle-soak-chain.yaml @@ -3,7 +3,12 @@ timeout: 45m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= + import_nodes: "" # extra k3s nodes for the image import; set with -env import_nodes= + node_ssh_key: "" # key path on the test node for the image import; set with -env node_ssh_key= helm_release: "sw-block" helm_namespace: "kube-system" volume_count: "2" @@ -11,39 +16,40 @@ 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,blockcsi,iscsi-target" nvme_disconnect: "true" iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs" - action: exec - node: m02 + node: node-a timeout: 5m - 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 --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/asserts /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/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; 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=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/asserts $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - name: build_and_import_images actions: - action: exec - node: m02 + node: node-a timeout: 10m cmd: "cd {{ product_root }} && if docker image inspect sw-block:local sw-block-csi:local >/dev/null 2>&1; then mkdir -p \"$SW_BLOCK_ARTIFACT_DIR\"; echo \"SW_BLOCK_IMAGE_ID=$(docker image inspect sw-block:local --format '{{.Id}}')\" > \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo \"SW_BLOCK_CSI_IMAGE_ID=$(docker image inspect sw-block-csi:local --format '{{.Id}}')\" >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; echo cached_images=true >> \"$SW_BLOCK_ARTIFACT_DIR/alpha-images.env\"; else bash scripts/build-alpha-images.sh {{ product_root }}; fi" env.SW_BLOCK_IMPORT_K3S: "1" - env.SW_BLOCK_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build" + env.SW_BLOCK_IMPORT_K3S_NODES: "{{ import_nodes }}" + env.SW_BLOCK_IMPORT_K3S_SSH_USER: "{{ node_user }}" + env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ node_ssh_key }}" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/build/alpha-images.env" pattern: "SW_BLOCK_IMAGE_ID=" save_as: image_id_count - action: assert_greater @@ -53,13 +59,13 @@ phases: - name: generate_values actions: - action: exec - node: m02 + node: node-a timeout: 4m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" + cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin/sw-block ./cmd/sw-block && {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/generate.stdout.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/generate.stdout.txt" pattern: "^network_mode=external-nvme$" save_as: external_nvme_count - action: assert_greater @@ -69,13 +75,13 @@ phases: - name: helm_install_stack actions: - action: exec - node: m02 + node: node-a timeout: 12m - cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-template.yaml && ! grep -q -- '--launcher-external-iscsi' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/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 }}-phase108-nvme-lifecycle/values/values.nvme.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/kube-system.after-install.txt" + cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-template.yaml && ! grep -q -- '--launcher-external-iscsi' {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/values/values.nvme.yaml --wait --timeout 10m > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-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 }}-phase108-nvme-lifecycle/install/helm-install.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/install/helm-install.txt" pattern: "STATUS: deployed" save_as: helm_deployed_count - action: assert_greater @@ -85,17 +91,17 @@ phases: - name: lifecycle_soak actions: - action: exec - node: m02 + node: node-a timeout: 20m - cmd: "set -e; BASE=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle; APP_NODE=$(cat \"$BASE/values/app-node.txt\"); cd {{ product_root }}; for cycle in $(seq 1 {{ cycle_count }}); do mkdir -p \"$BASE/cycle-$cycle\"; SW_BLOCK_ARTIFACT_DIR=\"$BASE/cycle-$cycle\" SW_BLOCK_MULTI_VOLUME_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_MULTI_VOLUME_PROTOCOL=nvme SW_BLOCK_MULTI_VOLUME_COUNT={{ volume_count }} SW_BLOCK_MULTI_VOLUME_CLEANUP=1 SW_BLOCK_CLI=\"$BASE/bin/sw-block\" bash scripts/run-multi-volume-example.sh {{ product_root }}; sudo -n nvme list-subsys > \"$BASE/cycle-$cycle/nvme-list-subsys.after-cleanup.txt\" 2>&1 || true; kubectl -n default get pods,pvc -o wide > \"$BASE/cycle-$cycle/default.after-cleanup.txt\" 2>&1 || true; kubectl get pv -o wide > \"$BASE/cycle-$cycle/pv.after-cleanup.txt\" 2>&1 || true; kubectl get storageclass sw-block-multi > \"$BASE/cycle-$cycle/storageclass.after-cleanup.txt\" 2>&1 || true; done" + cmd: "set -e; BASE={{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle; APP_NODE=$(cat \"$BASE/values/app-node.txt\"); cd {{ product_root }}; for cycle in $(seq 1 {{ cycle_count }}); do mkdir -p \"$BASE/cycle-$cycle\"; SW_BLOCK_ARTIFACT_DIR=\"$BASE/cycle-$cycle\" SW_BLOCK_MULTI_VOLUME_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_MULTI_VOLUME_PROTOCOL=nvme SW_BLOCK_MULTI_VOLUME_COUNT={{ volume_count }} SW_BLOCK_MULTI_VOLUME_CLEANUP=1 SW_BLOCK_CLI=\"$BASE/bin/sw-block\" bash scripts/run-multi-volume-example.sh {{ product_root }}; sudo -n nvme list-subsys > \"$BASE/cycle-$cycle/nvme-list-subsys.after-cleanup.txt\" 2>&1 || true; kubectl -n default get pods,pvc -o wide > \"$BASE/cycle-$cycle/default.after-cleanup.txt\" 2>&1 || true; kubectl get pv -o wide > \"$BASE/cycle-$cycle/pv.after-cleanup.txt\" 2>&1 || true; kubectl get storageclass sw-block-multi > \"$BASE/cycle-$cycle/storageclass.after-cleanup.txt\" 2>&1 || true; done" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: exec - node: m02 + node: node-a timeout: 3m - cmd: "python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle')\ncycle_count={{ cycle_count }}\nvolume_count={{ volume_count }}\nlines=['phase108_nvme_tcp_multivolume_lifecycle_soak_status=ok', f'cycle_count={cycle_count}', f'volume_count_per_cycle={volume_count}']\nfor cycle in range(1, cycle_count+1):\n summary={}\n for raw in (base/f'cycle-{cycle}/multi-volume-summary.txt').read_text().splitlines():\n if '=' in raw:\n k,v=raw.split('=',1)\n summary[k]=v\n nvme_text=(base/f'cycle-{cycle}/nvme-list-subsys.after-cleanup.txt').read_text(errors='ignore')\n default_text=(base/f'cycle-{cycle}/default.after-cleanup.txt').read_text(errors='ignore')\n pv_text=(base/f'cycle-{cycle}/pv.after-cleanup.txt').read_text(errors='ignore')\n sc_text=(base/f'cycle-{cycle}/storageclass.after-cleanup.txt').read_text(errors='ignore')\n if summary.get('multi_volume_status') != 'ok':\n raise SystemExit(f'cycle {cycle} status={summary.get(\"multi_volume_status\")}')\n if summary.get('cleanup_status') != 'ok':\n raise SystemExit(f'cycle {cycle} cleanup={summary.get(\"cleanup_status\")}')\n if summary.get('writer_verified_count') != str(volume_count):\n raise SystemExit(f'cycle {cycle} writer_count={summary.get(\"writer_verified_count\")}')\n if summary.get('reader_verified_count') != str(volume_count):\n raise SystemExit(f'cycle {cycle} reader_count={summary.get(\"reader_verified_count\")}')\n nvme_residue=nvme_text.count('nqn.2026-05.io.seaweedfs')\n pvc_residue=default_text.count('sw-block-multi-pvc')\n pod_residue=default_text.count('sw-block-multi-reader') + default_text.count('sw-block-multi-writer')\n pv_residue=pv_text.count('sw-block-multi-pvc')\n sc_residue=0 if 'not found' in sc_text.lower() else sc_text.count('sw-block-multi')\n if any([nvme_residue, pvc_residue, pod_residue, pv_residue, sc_residue]):\n raise SystemExit(f'cycle {cycle} residue nvme={nvme_residue} pvc={pvc_residue} pod={pod_residue} pv={pv_residue} sc={sc_residue}')\n lines += [\n f'cycle_{cycle}_status=ok',\n f'cycle_{cycle}_writer_verified_count={summary.get(\"writer_verified_count\")}',\n f'cycle_{cycle}_reader_verified_count={summary.get(\"reader_verified_count\")}',\n f'cycle_{cycle}_cleanup_status=ok',\n f'cycle_{cycle}_nvme_residue_count=0',\n f'cycle_{cycle}_k8s_residue_count=0',\n ]\n(base/'asserts/phase108-lifecycle-soak-summary.txt').write_text('\\n'.join(lines)+'\\n')\nPY" + cmd: "python3 - <<'PY'\nfrom pathlib import Path\nbase=Path('{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle')\ncycle_count={{ cycle_count }}\nvolume_count={{ volume_count }}\nlines=['phase108_nvme_tcp_multivolume_lifecycle_soak_status=ok', f'cycle_count={cycle_count}', f'volume_count_per_cycle={volume_count}']\nfor cycle in range(1, cycle_count+1):\n summary={}\n for raw in (base/f'cycle-{cycle}/multi-volume-summary.txt').read_text().splitlines():\n if '=' in raw:\n k,v=raw.split('=',1)\n summary[k]=v\n nvme_text=(base/f'cycle-{cycle}/nvme-list-subsys.after-cleanup.txt').read_text(errors='ignore')\n default_text=(base/f'cycle-{cycle}/default.after-cleanup.txt').read_text(errors='ignore')\n pv_text=(base/f'cycle-{cycle}/pv.after-cleanup.txt').read_text(errors='ignore')\n sc_text=(base/f'cycle-{cycle}/storageclass.after-cleanup.txt').read_text(errors='ignore')\n if summary.get('multi_volume_status') != 'ok':\n raise SystemExit(f'cycle {cycle} status={summary.get(\"multi_volume_status\")}')\n if summary.get('cleanup_status') != 'ok':\n raise SystemExit(f'cycle {cycle} cleanup={summary.get(\"cleanup_status\")}')\n if summary.get('writer_verified_count') != str(volume_count):\n raise SystemExit(f'cycle {cycle} writer_count={summary.get(\"writer_verified_count\")}')\n if summary.get('reader_verified_count') != str(volume_count):\n raise SystemExit(f'cycle {cycle} reader_count={summary.get(\"reader_verified_count\")}')\n nvme_residue=nvme_text.count('nqn.2026-05.io.seaweedfs')\n pvc_residue=default_text.count('sw-block-multi-pvc')\n pod_residue=default_text.count('sw-block-multi-reader') + default_text.count('sw-block-multi-writer')\n pv_residue=pv_text.count('sw-block-multi-pvc')\n sc_residue=0 if 'not found' in sc_text.lower() else sc_text.count('sw-block-multi')\n if any([nvme_residue, pvc_residue, pod_residue, pv_residue, sc_residue]):\n raise SystemExit(f'cycle {cycle} residue nvme={nvme_residue} pvc={pvc_residue} pod={pod_residue} pv={pv_residue} sc={sc_residue}')\n lines += [\n f'cycle_{cycle}_status=ok',\n f'cycle_{cycle}_writer_verified_count={summary.get(\"writer_verified_count\")}',\n f'cycle_{cycle}_reader_verified_count={summary.get(\"reader_verified_count\")}',\n f'cycle_{cycle}_cleanup_status=ok',\n f'cycle_{cycle}_nvme_residue_count=0',\n f'cycle_{cycle}_k8s_residue_count=0',\n ]\n(base/'asserts/phase108-lifecycle-soak-summary.txt').write_text('\\n'.join(lines)+'\\n')\nPY" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/asserts/phase108-lifecycle-soak-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/asserts/phase108-lifecycle-soak-summary.txt" pattern: "^phase108_nvme_tcp_multivolume_lifecycle_soak_status=ok$" save_as: lifecycle_soak_ok - action: assert_greater @@ -106,13 +112,14 @@ phases: always: true actions: - action: exec - node: m02 + node: node-a timeout: 3m - cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/verify bash scripts/verify-helm-cleanup.sh {{ product_root }}" + 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; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 120s > $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=$SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/verify bash scripts/verify-helm-cleanup.sh {{ product_root }}" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/verify/cleanup-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle/cleanup/verify/cleanup-summary.txt" pattern: "^cleanup_status=ok$" save_as: cleanup_ok - action: assert_greater @@ -123,7 +130,7 @@ phases: always: true actions: - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase108-nvme-lifecycle" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-publish-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-cross-node-publish-chain.yaml deleted file mode 100644 index 8984d19b62..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-cross-node-publish-chain.yaml +++ /dev/null @@ -1,95 +0,0 @@ -name: nvme-tcp-cross-node-publish-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: publish_gate - actions: - - action: exec - node: m02 - timeout: 15m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish && cd {{ product_root }} && bash scripts/run-phase106-nvme-tcp-cross-node-publish-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^phase106_nvme_tcp_cross_node_publish_status=ok$" - save_as: phase106_ok - - action: assert_greater - actual: "{{ phase106_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^generated_external_nvme=true$" - save_as: external_nvme - - action: assert_greater - actual: "{{ external_nvme }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^generated_external_iscsi=false$" - save_as: no_external_iscsi_values - - action: assert_greater - actual: "{{ no_external_iscsi_values }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^helm_rendered_launcher_external_nvme=true$" - save_as: helm_external_nvme - - action: assert_greater - actual: "{{ helm_external_nvme }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^helm_rendered_launcher_external_iscsi=false$" - save_as: no_external_iscsi_helm - - action: assert_greater - actual: "{{ no_external_iscsi_helm }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^helm_rendered_chap=false$" - save_as: no_chap - - action: assert_greater - actual: "{{ no_chap }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^live_io_claim=false$" - save_as: no_live_io_claim - - action: assert_greater - actual: "{{ no_live_io_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish/gate/phase106-nvme-tcp-cross-node-publish-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase106-nvme-publish" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-durable-backend-write-batching-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-durable-backend-write-batching-chain.yaml deleted file mode 100644 index b0e32932ee..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-durable-backend-write-batching-chain.yaml +++ /dev/null @@ -1,111 +0,0 @@ -name: nvme-tcp-durable-backend-write-batching-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching SW_BLOCK_PHASE134_SEQ_MIB=64 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase134-durable-backend-write-batching-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^phase134_durable_backend_write_batching_status=ok$" - save_as: phase134_status_ok - - action: assert_greater - actual: "{{ phase134_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^unit_batch_regression_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^strict_ack_batch_disabled=true$" - save_as: strict_ack_guard - - action: assert_greater - actual: "{{ strict_ack_guard }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^backend_storage_batch_calls=[1-9][0-9]*$" - save_as: batch_calls - - action: assert_greater - actual: "{{ batch_calls }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^backend_storage_batch_blocks=[1-9][0-9]*$" - save_as: batch_blocks - - action: assert_greater - actual: "{{ batch_blocks }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batching_effective - - action: assert_greater - actual: "{{ batching_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase134-write-batching/phase134-durable-backend-write-batching-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 }}-phase134-write-batching" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-frontend-request-size-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-frontend-request-size-profile-chain.yaml deleted file mode 100644 index cf14ee4726..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-frontend-request-size-profile-chain.yaml +++ /dev/null @@ -1,143 +0,0 @@ -name: nvme-tcp-frontend-request-size-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size SW_BLOCK_PHASE140_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase140-frontend-request-size-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^phase140_frontend_request_size_profile_status=ok$" - save_as: phase140_status_ok - - action: assert_greater - actual: "{{ phase140_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^unit_target_request_profile_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batch_effective - - action: assert_greater - actual: "{{ batch_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^nvme_tcp_max_h2c_data_length_bytes=32768$" - save_as: max_h2c - - action: assert_greater - actual: "{{ max_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^target_write_request_max_bytes=[1-9][0-9]*$" - save_as: target_request_max - - action: assert_greater - actual: "{{ target_request_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^backend_write_request_max_bytes=32768$" - save_as: backend_request_max - - action: assert_greater - actual: "{{ backend_request_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^backend_full_block_batch_max=8$" - save_as: batch_max - - action: assert_greater - actual: "{{ batch_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^frontend_request_size_owner=\\(host_nvme\\|target_limit\\|backend_limit\\|unknown\\)$" - save_as: owner_named - - action: assert_greater - actual: "{{ owner_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^phase140_shape_result=\\(host_limited\\|target_limited\\|backend_limited\\|tunable\\|unknown\\)$" - save_as: shape_result - - action: assert_greater - actual: "{{ shape_result }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-summary.txt" - pattern: "^next_recommendation=phase141_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase140-request-size/phase140-frontend-request-size-profile-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 }}-phase140-request-size" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-desired-path-change-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-desired-path-change-chain.yaml deleted file mode 100644 index 8d0c24f891..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-desired-path-change-chain.yaml +++ /dev/null @@ -1,162 +0,0 @@ -name: nvme-tcp-k8s-desired-path-change-chain -timeout: 60m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase132-mounted --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase132_gate - actions: - - action: exec - node: m02 - timeout: 45m - cmd: "cd {{ product_root }} && bash scripts/run-phase132-nvme-k8s-desired-path-change-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^phase132_nvme_k8s_desired_path_change_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^initial_path_count=2$" - save_as: initial_two - - action: assert_greater - actual: "{{ initial_two }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^desired_path_set_changed=true$" - save_as: desired_changed - - action: assert_greater - actual: "{{ desired_changed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^path_loss_or_replacement_detected=true$" - save_as: replacement_detected - - action: assert_greater - actual: "{{ replacement_detected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^reconnect_owner=csi-node$" - save_as: owner - - action: assert_greater - actual: "{{ owner }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^reconnect_invoked=true$" - save_as: reconnect_invoked - - action: assert_greater - actual: "{{ reconnect_invoked }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^new_desired_path_connected=true$" - save_as: new_path_connected - - action: assert_greater - actual: "{{ new_path_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^pod_uid_preserved=true$" - save_as: uid_preserved - - action: assert_greater - actual: "{{ uid_preserved }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^mounted_io_after_reconnect=ok$" - save_as: io_ok - - action: assert_greater - actual: "{{ io_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^crd_status_agrees=true$" - save_as: crd_agrees - - action: assert_greater - actual: "{{ crd_agrees }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-summary.txt" - pattern: "^report_dashboard_agree=true$" - save_as: report_dashboard_agree - - action: assert_greater - actual: "{{ report_dashboard_agree }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase132-nvme-desired-path-change/gate/phase132-nvme-k8s-desired-path-change-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 }}-phase132-nvme-desired-path-change" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-loss-io-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-loss-io-chain.yaml deleted file mode 100644 index ceee0937cc..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-loss-io-chain.yaml +++ /dev/null @@ -1,122 +0,0 @@ -name: nvme-tcp-k8s-mounted-path-loss-io-chain -timeout: 50m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase112-mounted --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase112_gate - actions: - - action: exec - node: m02 - timeout: 35m - cmd: "cd {{ product_root }} && bash scripts/run-phase112-nvme-k8s-mounted-path-loss-io-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^phase112_nvme_k8s_mounted_path_loss_io_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^mounted_pod_uid_preserved=true$" - save_as: uid_preserved - - action: assert_greater - actual: "{{ uid_preserved }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^mounted_io_after_path_loss=ok$" - save_as: mounted_io_ok - - action: assert_greater - actual: "{{ mounted_io_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^after_path_count=1$" - save_as: after_one_path - - action: assert_greater - actual: "{{ after_one_path }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^crd_reason=nvme_multipath_path_missing$" - save_as: crd_reason - - action: assert_greater - actual: "{{ crd_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-summary.txt" - pattern: "^surface_ready_true_count=0$" - save_as: no_ready_true - - action: assert_greater - actual: "{{ no_ready_true }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase112-nvme-mounted-path-loss-io/gate/phase112-nvme-k8s-mounted-path-loss-io-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 }}-phase112-nvme-mounted-path-loss-io" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-restore-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-restore-chain.yaml deleted file mode 100644 index 0db5acceb6..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-mounted-path-restore-chain.yaml +++ /dev/null @@ -1,154 +0,0 @@ -name: nvme-tcp-k8s-mounted-path-restore-chain -timeout: 60m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase112-mounted sw-block-phase113-mounted --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase113_gate - actions: - - action: exec - node: m02 - timeout: 45m - cmd: "cd {{ product_root }} && bash scripts/run-phase113-nvme-k8s-mounted-path-restore-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^phase113_nvme_k8s_mounted_path_restore_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^mounted_pod_uid_preserved=true$" - save_as: uid_preserved_after_loss - - action: assert_greater - actual: "{{ uid_preserved_after_loss }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^mounted_io_after_path_loss=ok$" - save_as: mounted_io_after_loss - - action: assert_greater - actual: "{{ mounted_io_after_loss }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^after_path_count=1$" - save_as: after_one_path - - action: assert_greater - actual: "{{ after_one_path }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^crd_reason=nvme_multipath_path_missing$" - save_as: degraded_reason - - action: assert_greater - actual: "{{ degraded_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^mounted_pod_uid_preserved_after_restore=true$" - save_as: uid_preserved_after_restore - - action: assert_greater - actual: "{{ uid_preserved_after_restore }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^mounted_io_after_restore=ok$" - save_as: mounted_io_after_restore - - action: assert_greater - actual: "{{ mounted_io_after_restore }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^restored_path_count=2$" - save_as: restored_two_paths - - action: assert_greater - actual: "{{ restored_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^restore_crd_reason=first_volume_verified$" - save_as: restore_crd_reason - - action: assert_greater - actual: "{{ restore_crd_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-summary.txt" - pattern: "^surface_ready_true_count=0$" - save_as: no_ready_true_while_degraded - - action: assert_greater - actual: "{{ no_ready_true_while_degraded }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase113-nvme-mounted-path-restore/gate/phase113-nvme-k8s-mounted-path-restore-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 }}-phase113-nvme-mounted-path-restore" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-churn-soak-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-churn-soak-chain.yaml deleted file mode 100644 index 69591eb707..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-churn-soak-chain.yaml +++ /dev/null @@ -1,138 +0,0 @@ -name: nvme-tcp-k8s-multivolume-mounted-path-churn-soak-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase115-mounted-1 sw-block-phase115-mounted-2 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; for i in 1 2; do kubectl -n default delete pod sw-block-multi-reader-$i sw-block-multi-writer-$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 delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase115_gate - actions: - - action: exec - node: m02 - timeout: 75m - cmd: "cd {{ product_root }} && bash scripts/run-phase115-nvme-k8s-multivolume-mounted-path-churn-soak-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^phase115_nvme_k8s_multivolume_mounted_path_churn_soak_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^cycle_count=3$" - save_as: cycle_count - - action: assert_greater - actual: "{{ cycle_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^mounted_pods_preserved=true$" - save_as: pods_preserved - - action: assert_greater - actual: "{{ pods_preserved }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^mounted_io_after_loss_count=6$" - save_as: mounted_io_loss - - action: assert_greater - actual: "{{ mounted_io_loss }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^mounted_io_after_restore_count=6$" - save_as: mounted_io_restore - - action: assert_greater - actual: "{{ mounted_io_restore }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^cross_volume_reason_mixup=false$" - save_as: no_reason_mixup - - action: assert_greater - actual: "{{ no_reason_mixup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^cross_volume_publish_target_mixup=false$" - save_as: no_target_mixup - - action: assert_greater - actual: "{{ no_target_mixup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-summary.txt" - pattern: "^all_restored_path_count=2$" - save_as: restored_paths - - action: assert_greater - actual: "{{ restored_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase115-nvme-multivolume-mounted-path-churn-soak/gate/phase115-nvme-k8s-multivolume-mounted-path-churn-soak-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 }}-phase115-nvme-multivolume-mounted-path-churn-soak" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-isolation-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-isolation-chain.yaml deleted file mode 100644 index 1f20a97286..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-multivolume-mounted-path-isolation-chain.yaml +++ /dev/null @@ -1,154 +0,0 @@ -name: nvme-tcp-k8s-multivolume-mounted-path-isolation-chain -timeout: 70m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase114-mounted-1 sw-block-phase114-mounted-2 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; for i in 1 2; do kubectl -n default delete pod sw-block-multi-reader-$i sw-block-multi-writer-$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 delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase114_gate - actions: - - action: exec - node: m02 - timeout: 55m - cmd: "cd {{ product_root }} && bash scripts/run-phase114-nvme-k8s-multivolume-mounted-path-isolation-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^phase114_nvme_k8s_multivolume_mounted_path_isolation_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^mounted_pods_preserved_after_loss=true$" - save_as: pods_preserved_after_loss - - action: assert_greater - actual: "{{ pods_preserved_after_loss }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^mounted_io_after_loss_count=2$" - save_as: mounted_io_after_loss - - action: assert_greater - actual: "{{ mounted_io_after_loss }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^degraded_volume_path_count=1$" - save_as: degraded_path_count - - action: assert_greater - actual: "{{ degraded_path_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^untouched_volume_path_count=2$" - save_as: untouched_path_count - - action: assert_greater - actual: "{{ untouched_path_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^cross_volume_reason_mixup=false$" - save_as: no_cross_reason - - action: assert_greater - actual: "{{ no_cross_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^mounted_pods_preserved_after_restore=true$" - save_as: pods_preserved_after_restore - - action: assert_greater - actual: "{{ pods_preserved_after_restore }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^mounted_io_after_restore_count=2$" - save_as: mounted_io_after_restore - - action: assert_greater - actual: "{{ mounted_io_after_restore }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^restored_volume_count=2$" - save_as: restored_volume_count - - action: assert_greater - actual: "{{ restored_volume_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-summary.txt" - pattern: "^restored_all_path_count=2$" - save_as: restored_path_count - - action: assert_greater - actual: "{{ restored_path_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase114-nvme-multivolume-mounted-path-isolation/gate/phase114-nvme-k8s-multivolume-mounted-path-isolation-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 }}-phase114-nvme-multivolume-mounted-path-isolation" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-path-loss-crd-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-path-loss-crd-chain.yaml deleted file mode 100644 index e8a8e65a64..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-path-loss-crd-chain.yaml +++ /dev/null @@ -1,114 +0,0 @@ -name: nvme-tcp-k8s-path-loss-crd-chain -timeout: 50m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase111_gate - actions: - - action: exec - node: m02 - timeout: 35m - cmd: "cd {{ product_root }} && bash scripts/run-phase111-nvme-k8s-path-loss-crd-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-summary.txt" - pattern: "^phase111_nvme_k8s_path_loss_crd_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-summary.txt" - pattern: "^before_path_count=2$" - save_as: before_two_paths - - action: assert_greater - actual: "{{ before_two_paths }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-summary.txt" - pattern: "^after_path_count=1$" - save_as: after_one_path - - action: assert_greater - actual: "{{ after_one_path }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-summary.txt" - pattern: "^crd_reason=nvme_multipath_path_missing$" - save_as: crd_reason - - action: assert_greater - actual: "{{ crd_reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-summary.txt" - pattern: "^surface_ready_true_count=0$" - save_as: no_ready_true - - action: assert_greater - actual: "{{ no_ready_true }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase111-nvme-k8s-path-loss-crd/gate/phase111-nvme-k8s-path-loss-crd-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 }}-phase111-nvme-k8s-path-loss-crd" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-reconnect-live-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-reconnect-live-chain.yaml deleted file mode 100644 index ab7d432138..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-reconnect-live-chain.yaml +++ /dev/null @@ -1,146 +0,0 @@ -name: nvme-tcp-k8s-reconnect-live-chain -timeout: 60m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase131-mounted --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase131_gate - actions: - - action: exec - node: m02 - timeout: 45m - cmd: "cd {{ product_root }} && bash scripts/run-phase131-nvme-k8s-reconnect-live-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^phase131_nvme_k8s_reconnect_live_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^initial_path_count=2$" - save_as: initial_two - - action: assert_greater - actual: "{{ initial_two }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^path_loss_detected=true$" - save_as: loss_detected - - action: assert_greater - actual: "{{ loss_detected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^reconnect_invoked=true$" - save_as: reconnect_invoked - - action: assert_greater - actual: "{{ reconnect_invoked }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^replacement_path_connected=true$" - save_as: replacement_connected - - action: assert_greater - actual: "{{ replacement_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^pod_uid_preserved=true$" - save_as: uid_preserved - - action: assert_greater - actual: "{{ uid_preserved }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^mounted_io_after_reconnect=ok$" - save_as: io_ok - - action: assert_greater - actual: "{{ io_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^crd_status_agrees=true$" - save_as: crd_agrees - - action: assert_greater - actual: "{{ crd_agrees }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-summary.txt" - pattern: "^report_dashboard_agree=true$" - save_as: report_dashboard_agree - - action: assert_greater - actual: "{{ report_dashboard_agree }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase131-nvme-reconnect-live/gate/phase131-nvme-k8s-reconnect-live-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 }}-phase131-nvme-reconnect-live" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-k8s-stale-path-prune-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-k8s-stale-path-prune-chain.yaml deleted file mode 100644 index 1233fd8f90..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-k8s-stale-path-prune-chain.yaml +++ /dev/null @@ -1,178 +0,0 @@ -name: nvme-tcp-k8s-stale-path-prune-chain -timeout: 60m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase133-mounted --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: build_and_import_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_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_DOCKER_NO_CACHE: "1" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/build/alpha-images.env" - pattern: "SW_BLOCK_IMAGE_ID=" - save_as: image_id_count - - action: assert_greater - actual: "{{ image_id_count }}" - threshold: "0" - - - name: run_phase133_gate - actions: - - action: exec - node: m02 - timeout: 45m - cmd: "cd {{ product_root }} && bash scripts/run-phase133-nvme-k8s-stale-path-prune-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^phase133_nvme_k8s_stale_path_prune_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^initial_path_count=2$" - save_as: initial_two - - action: assert_greater - actual: "{{ initial_two }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^desired_path_set_changed=true$" - save_as: desired_changed - - action: assert_greater - actual: "{{ desired_changed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^reconnect_owner=csi-node$" - save_as: owner - - action: assert_greater - actual: "{{ owner }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^reconnect_invoked=true$" - save_as: reconnect_invoked - - action: assert_greater - actual: "{{ reconnect_invoked }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^new_desired_path_connected=true$" - save_as: new_path_connected - - action: assert_greater - actual: "{{ new_path_connected }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^stale_old_host_path_after_desired_change=false$" - save_as: stale_absent - - action: assert_greater - actual: "{{ stale_absent }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^stale_old_path_pruned=true$" - save_as: stale_pruned - - action: assert_greater - actual: "{{ stale_pruned }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^host_path_count_after_prune=2$" - save_as: prune_count_two - - action: assert_greater - actual: "{{ prune_count_two }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^pod_uid_preserved=true$" - save_as: uid_preserved - - action: assert_greater - actual: "{{ uid_preserved }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^mounted_io_after_reconnect=ok$" - save_as: io_ok - - action: assert_greater - actual: "{{ io_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^crd_status_agrees=true$" - save_as: crd_agrees - - action: assert_greater - actual: "{{ crd_agrees }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-summary.txt" - pattern: "^report_dashboard_agree=true$" - save_as: report_dashboard_agree - - action: assert_greater - actual: "{{ report_dashboard_agree }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase133-nvme-stale-path-prune/gate/phase133-nvme-k8s-stale-path-prune-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 }}-phase133-nvme-stale-path-prune" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-large-h2c-retriage-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-large-h2c-retriage-chain.yaml deleted file mode 100644 index a81f6ef32c..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-large-h2c-retriage-chain.yaml +++ /dev/null @@ -1,231 +0,0 @@ -name: nvme-tcp-large-h2c-retriage-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c SW_BLOCK_PHASE142_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE142_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase142-nvme-tcp-large-h2c-retriage-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^phase142_nvme_tcp_large_h2c_retriage_status=ok$" - save_as: phase142_status_ok - - action: assert_greater - actual: "{{ phase142_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^phase142_contract_tests=pass$" - save_as: contract_tests - - action: assert_greater - actual: "{{ contract_tests }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^helm_candidate_max_h2c_data_length=65536$" - save_as: helm_candidate_64k - - action: assert_greater - actual: "{{ helm_candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^host_connects_candidate=true$" - save_as: host_connects - - action: assert_greater - actual: "{{ host_connects }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_verified - - action: assert_greater - actual: "{{ writer_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_verified - - action: assert_greater - actual: "{{ reader_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^backend_full_block_batch_max=[1-9][0-9]*$" - save_as: full_block_batch - - action: assert_greater - actual: "{{ full_block_batch }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^wal_append_writeat_max_bytes=[1-9][0-9]*$" - save_as: wal_writeat_max - - action: assert_greater - actual: "{{ wal_writeat_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^wal_copy_duration_ms=[0-9][0-9]*$" - save_as: wal_copy_counter - - action: assert_greater - actual: "{{ wal_copy_counter }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^wal_append_duration_ms=[0-9][0-9]*$" - save_as: wal_append_counter - - action: assert_greater - actual: "{{ wal_append_counter }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^wal_encode_duration_ms=[0-9][0-9]*$" - save_as: wal_encode_counter - - action: assert_greater - actual: "{{ wal_encode_counter }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^wal_checksum_duration_ms=[0-9][0-9]*$" - save_as: wal_checksum_counter - - action: assert_greater - actual: "{{ wal_checksum_counter }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^dirty_map_update_duration_ms=[0-9][0-9]*$" - save_as: dirty_map_counter - - action: assert_greater - actual: "{{ dirty_map_counter }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^phase142_bottleneck=\\(wal_copy\\|wal_append\\|wal_encode\\|wal_checksum\\|dirty_map\\|frontend_request_size\\|unknown\\)$" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^phase142_decision=\\(document_opt_in\\|broader_compat_gate\\|continue_backend_work\\|blocked\\)$" - save_as: decision_named - - action: assert_greater - actual: "{{ decision_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-summary.txt" - pattern: "^next_recommendation=phase143_.*$" - save_as: next_named - - action: assert_greater - actual: "{{ next_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase142-large-h2c/phase142-nvme-tcp-large-h2c-retriage-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 }}-phase142-large-h2c" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-max-h2c-boundary-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-max-h2c-boundary-chain.yaml deleted file mode 100644 index e81d250297..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-max-h2c-boundary-chain.yaml +++ /dev/null @@ -1,143 +0,0 @@ -name: nvme-tcp-max-h2c-boundary-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c SW_BLOCK_PHASE141_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE141_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase141-nvme-tcp-max-h2c-boundary-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^phase141_nvme_tcp_max_h2c_boundary_status=ok$" - save_as: phase141_status_ok - - action: assert_greater - actual: "{{ phase141_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^h2c_contract_tests=pass$" - save_as: contract_tests - - action: assert_greater - actual: "{{ contract_tests }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^icresp_max_h2c_matches_candidate=true$" - save_as: icresp_match - - action: assert_greater - actual: "{{ icresp_match }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^identify_ioccsz_matches_candidate=true$" - save_as: identify_match - - action: assert_greater - actual: "{{ identify_match }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^host_connects_candidate=true$" - save_as: host_connects - - action: assert_greater - actual: "{{ host_connects }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_verified - - action: assert_greater - actual: "{{ writer_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_verified - - action: assert_greater - actual: "{{ reader_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^target_write_request_max_bytes=[1-9][0-9]*$" - save_as: target_request_max - - action: assert_greater - actual: "{{ target_request_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^request_size_increase_observed=\\(true\\|false\\)$" - save_as: request_increase_named - - action: assert_greater - actual: "{{ request_increase_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-summary.txt" - pattern: "^phase141_decision=\\(keep_32k\\|add_opt_in\\|raise_default\\|blocked\\)$" - save_as: decision_named - - action: assert_greater - actual: "{{ decision_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase141-h2c/phase141-nvme-tcp-max-h2c-boundary-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 }}-phase141-h2c" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-multihost-topology-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-multihost-topology-chain.yaml deleted file mode 100644 index f26aed4122..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-multihost-topology-chain.yaml +++ /dev/null @@ -1,95 +0,0 @@ -name: nvme-tcp-multihost-topology-chain -timeout: 15m - -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: topology_gate - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology && cd {{ product_root }} && bash scripts/run-phase105-nvme-tcp-multihost-topology-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^phase105_nvme_tcp_multihost_topology_status=ok$" - save_as: phase105_ok - - action: assert_greater - actual: "{{ phase105_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^read_only=true$" - save_as: read_only - - action: assert_greater - actual: "{{ read_only }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^nvme_cross_node_loopback_status=blocked$" - save_as: blocked - - action: assert_greater - actual: "{{ blocked }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^nvme_cross_node_loopback_reason=publish_target_loopback_cross_node$" - save_as: reason - - action: assert_greater - actual: "{{ reason }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^ready_true_count=0$" - save_as: no_ready_true - - action: assert_greater - actual: "{{ no_ready_true }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^safe_action=observe.inspect_publish_target_topology$" - save_as: action - - action: assert_greater - actual: "{{ action }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^iscsi_remediation_recommended=false$" - save_as: no_iscsi_action - - action: assert_greater - actual: "{{ no_iscsi_action }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology/gate/phase105-nvme-tcp-multihost-topology-summary.txt" - pattern: "^live_io_claim=false$" - save_as: no_live_io_claim - - action: assert_greater - actual: "{{ no_live_io_claim }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase105-nvme-topology" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-path-loss-status-surface-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-path-loss-status-surface-chain.yaml index ec4d361b3d..50a490a36c 100644 --- a/seaweed-block/testops/scenarios/nvme-tcp-path-loss-status-surface-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-tcp-path-loss-status-surface-chain.yaml @@ -3,77 +3,81 @@ 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 }}-phase110-nvme-path-loss-surface && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate" + 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 }}-phase110-nvme-path-loss-surface && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" - name: live_path_loss_source actions: - action: exec - node: m02 + node: node-a timeout: 20m cmd: "cd {{ product_root }} && bash scripts/run-nvme-mounted-failover-smoke.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^phase101_nvme_path_failure_status=ok$" save_as: live_path_loss_ok - action: assert_greater actual: "{{ live_path_loss_ok }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^before_path_count=2$" save_as: before_two_paths - action: assert_greater actual: "{{ before_two_paths }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^after_path_count=1$" save_as: after_one_path - action: assert_greater actual: "{{ after_one_path }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^after_nvme_reason=nvme_multipath_path_missing$" save_as: live_missing_path_reason - action: assert_greater actual: "{{ live_missing_path_reason }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^after_ready_true=false$" save_as: live_no_false_ready - action: assert_greater actual: "{{ live_no_false_ready }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^final_nvme_residue_count=0$" save_as: live_nvme_clean - action: assert_greater @@ -83,11 +87,11 @@ phases: - name: support_surface_replay actions: - action: exec - node: m02 + node: node-a timeout: 5m cmd: | set -eu - ROOT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface + ROOT={{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface GATE="$ROOT/gate" BUNDLE="$ROOT/replay-bundle" SURFACES="$ROOT/surfaces" @@ -116,7 +120,7 @@ phases: python3 - <<'PY' import json from pathlib import Path - root = Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface') + root = Path('{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface') gate_summary = (root / 'gate/phase101-nvme-path-failure-summary.txt').read_text() report_summary = (root / 'surfaces/report/summary.txt').read_text() explain = (root / 'surfaces/explain/v1.txt').read_text() @@ -197,16 +201,16 @@ phases: ]) + '\n') PY - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/asserts/phase110-surface-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/asserts/phase110-surface-summary.txt" pattern: "^phase110_nvme_tcp_path_loss_status_surface_status=ok$" save_as: surface_ok - action: assert_greater actual: "{{ surface_ok }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/asserts/phase110-surface-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/asserts/phase110-surface-summary.txt" pattern: "^surface_ready_true_count=0$" save_as: no_false_ready_surface - action: assert_greater @@ -217,18 +221,18 @@ phases: always: true 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: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface/gate/phase101-nvme-path-failure-summary.txt" pattern: "^final_nvme_residue_count=0$" save_as: nvme_clean ignore_error: true - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase110-nvme-path-loss-surface" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-performance-baseline-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-performance-baseline-chain.yaml deleted file mode 100644 index f6368c9ce5..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-performance-baseline-chain.yaml +++ /dev/null @@ -1,128 +0,0 @@ -name: nvme-tcp-performance-baseline-chain -timeout: 40m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase120-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase120-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase120 --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase120/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase120/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 35m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf bash scripts/run-phase120-nvme-tcp-performance-baseline-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "/opt/work/testdev_key" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^phase120_nvme_tcp_performance_baseline_status=ok$" - save_as: phase120_status_ok - - action: assert_greater - actual: "{{ phase120_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^protocol=nvme$" - save_as: protocol_nvme - - action: assert_greater - actual: "{{ protocol_nvme }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^frontend_transport=tcp$" - save_as: frontend_transport_tcp - - action: assert_greater - actual: "{{ frontend_transport_tcp }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^performance_claim_allowed=false$" - save_as: performance_claim_denied - - action: assert_greater - actual: "{{ performance_claim_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: roce_claim_denied - - action: assert_greater - actual: "{{ roce_claim_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^seq_write_mibps=[0-9]" - save_as: seq_write_metric - - action: assert_greater - actual: "{{ seq_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^seq_read_mibps=[0-9]" - save_as: seq_read_metric - - action: assert_greater - actual: "{{ seq_read_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^small_write_iops=[0-9]" - save_as: small_write_metric - - action: assert_greater - actual: "{{ small_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-summary.txt" - pattern: "^final_data_verified=true$" - save_as: final_data_verified - - action: assert_greater - actual: "{{ final_data_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase120-nvme-perf/phase120-nvme-tcp-performance-baseline-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 }}-phase120-nvme-perf" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-post-batch-retriage-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-post-batch-retriage-chain.yaml deleted file mode 100644 index a91243a453..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-post-batch-retriage-chain.yaml +++ /dev/null @@ -1,103 +0,0 @@ -name: nvme-tcp-post-batch-retriage-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch SW_BLOCK_PHASE135_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase135-nvme-tcp-post-batch-retriage-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^phase135_nvme_tcp_post_batch_retriage_status=ok$" - save_as: phase135_status_ok - - action: assert_greater - actual: "{{ phase135_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^profile_comparable_with_phase126=true$" - save_as: comparable_profile - - action: assert_greater - actual: "{{ comparable_profile }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batching_effective - - action: assert_greater - actual: "{{ batching_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^post_batch_bottleneck=\\(backend_write\\|backend_sync\\|target_protocol\\|unknown\\)$" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-summary.txt" - pattern: "^next_recommendation=phase136_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase135-post-batch/phase135-nvme-tcp-post-batch-retriage-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 }}-phase135-post-batch" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-reduce-wal-record-encode-copy-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-reduce-wal-record-encode-copy-chain.yaml deleted file mode 100644 index d510ae1820..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-reduce-wal-record-encode-copy-chain.yaml +++ /dev/null @@ -1,127 +0,0 @@ -name: nvme-tcp-reduce-wal-record-encode-copy-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy SW_BLOCK_PHASE137_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase137-reduce-wal-record-encode-copy-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^phase137_reduce_wal_record_encode_copy_status=ok$" - save_as: phase137_status_ok - - action: assert_greater - actual: "{{ phase137_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^unit_wal_encode_copy_regression_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^preencode_data_copy_removed=true$" - save_as: preencode_copy_removed - - action: assert_greater - actual: "{{ preencode_copy_removed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^batch_append_encodes_direct_to_pending=true$" - save_as: direct_batch_encode - - action: assert_greater - actual: "{{ direct_batch_encode }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batch_effective - - action: assert_greater - actual: "{{ batch_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^wal_encode_copy_reduced_vs_phase136=true$" - save_as: encode_copy_reduced - - action: assert_greater - actual: "{{ encode_copy_reduced }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^post_phase137_bottleneck=\\(wal_copy\\|wal_encode\\|wal_checksum\\|wal_append\\|dirty_map\\|unknown\\)$" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-summary.txt" - pattern: "^next_recommendation=phase138_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase137-wal-encode-copy/phase137-reduce-wal-record-encode-copy-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 }}-phase137-wal-encode-copy" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-release-image-smoke-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-release-image-smoke-chain.yaml deleted file mode 100644 index 83ff72027c..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-release-image-smoke-chain.yaml +++ /dev/null @@ -1,139 +0,0 @@ -name: nvme-tcp-release-image-smoke-chain -timeout: 45m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - release_image: "" - release_csi_image: "" - release_commit: "" - -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 sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-multi-reader-1 sw-block-multi-writer-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s || true; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers 2>/dev/null | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_phase117_gate - actions: - - action: exec - node: m02 - timeout: 40m - cmd: "cd {{ product_root }} && bash scripts/run-phase117-nvme-release-image-smoke-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate" - env.SW_BLOCK_RELEASE_IMAGE: "{{ release_image }}" - env.SW_BLOCK_CSI_RELEASE_IMAGE: "{{ release_csi_image }}" - env.SW_BLOCK_RELEASE_COMMIT: "{{ release_commit }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^phase117_nvme_release_image_smoke_status=ok$" - save_as: gate_ok - - action: assert_greater - actual: "{{ gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^image_pair_commit_match=true$" - save_as: image_pair_match - - action: assert_greater - actual: "{{ image_pair_match }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^helm_values_protocol=nvme$" - save_as: protocol_ok - - action: assert_greater - actual: "{{ protocol_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^stage2_multipath_enabled=true$" - save_as: stage2_ok - - action: assert_greater - actual: "{{ stage2_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_ok - - action: assert_greater - actual: "{{ writer_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_ok - - action: assert_greater - actual: "{{ reader_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^volume_status=ready$" - save_as: status_ok - - action: assert_greater - actual: "{{ status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^volume_reason=first_volume_verified$" - save_as: reason_ok - - action: assert_greater - actual: "{{ reason_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^nvme_path_count=2$" - save_as: path_count_ok - - action: assert_greater - actual: "{{ path_count_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^cleanup_status=ok$" - save_as: cleanup_ok - - action: assert_greater - actual: "{{ cleanup_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke/gate/phase117-nvme-release-image-smoke-summary.txt" - pattern: "^failure_count=0$" - save_as: failure_zero - - action: assert_greater - actual: "{{ failure_zero }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase117-nvme-release-image-smoke" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-status-surface-evidence-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-status-surface-evidence-chain.yaml index adefb23c10..41dc8e47f1 100644 --- a/seaweed-block/testops/scenarios/nvme-tcp-status-surface-evidence-chain.yaml +++ b/seaweed-block/testops/scenarios/nvme-tcp-status-surface-evidence-chain.yaml @@ -3,46 +3,52 @@ timeout: 45m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= + import_nodes: "" # extra k3s nodes for the image import; set with -env import_nodes= + node_ssh_key: "" # key path on the test node for the image import; set with -env node_ssh_key= helm_release: "sw-block" helm_namespace: "kube-system" volume_count: "2" 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 + node: node-a timeout: 5m - 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 {{ helm_namespace }} get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n {{ helm_namespace }} patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n {{ helm_namespace }} delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n {{ helm_namespace }} delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance={{ helm_release }} --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/surfaces /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/asserts /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/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; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n {{ helm_namespace }} get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n {{ helm_namespace }} patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n {{ helm_namespace }} delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n {{ helm_namespace }} delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance={{ helm_release }} --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=45s || 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=45s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=45s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=45s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/values $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/install $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/multi-volume $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/surfaces $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/asserts $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - name: build_and_import_images actions: - action: exec - node: m02 + node: node-a timeout: 10m cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}" env.SW_BLOCK_IMPORT_K3S: "1" - env.SW_BLOCK_IMPORT_K3S_NODES: "192.168.1.181" - env.SW_BLOCK_IMPORT_K3S_SSH_USER: "testdev" - env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ ssh_key }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/build" + env.SW_BLOCK_IMPORT_K3S_NODES: "{{ import_nodes }}" + env.SW_BLOCK_IMPORT_K3S_SSH_USER: "{{ node_user }}" + env.SW_BLOCK_IMPORT_K3S_SSH_KEY: "{{ node_ssh_key }}" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/build" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/build/alpha-images.env" pattern: "SW_BLOCK_IMAGE_ID=" save_as: image_id_count - action: assert_greater @@ -52,13 +58,13 @@ phases: - name: generate_values actions: - action: exec - node: m02 + node: node-a timeout: 4m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/generate.stdout.txt && cat >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml <<'YAML'\noperatorStatus:\n create: true\n dryRun: false\n interval: 5s\nlifecycleOwner:\n create: true\n dryRun: false\n interval: 5s\nYAML\npython3 - <<'PY'\nfrom pathlib import Path\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" + cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ./cmd/sw-block && {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml --image sw-block:local --csi-image sw-block-csi:local --protocol nvme --node-limit 2 > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/generate.stdout.txt && cat >> {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml <<'YAML'\noperatorStatus:\n create: true\n dryRun: false\n interval: 5s\nlifecycleOwner:\n create: true\n dryRun: false\n interval: 5s\nYAML\npython3 - <<'PY'\nfrom pathlib import Path\nbase=Path('{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status')\nnodes=[]\ncur=None\nfor raw in (base/'values/values.nvme.yaml').read_text().splitlines():\n line=raw.strip()\n if line.startswith('- name:'):\n if cur:\n nodes.append(cur)\n cur={}\n if cur is None:\n continue\n if line.startswith('kubernetesNode:'):\n cur['kubernetesNode']=line.split(':',1)[1].strip().strip('\"')\nif cur:\n nodes.append(cur)\nif len(nodes) < 2:\n raise SystemExit('need at least two generated nodes')\n(base/'values/blockvolume-node.txt').write_text(nodes[0]['kubernetesNode']+'\\n')\n(base/'values/app-node.txt').write_text(nodes[1]['kubernetesNode']+'\\n')\nPY" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/generate.stdout.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/generate.stdout.txt" pattern: "^network_mode=external-nvme$" save_as: external_nvme_count - action: assert_greater @@ -68,13 +74,13 @@ phases: - name: helm_install_stack actions: - action: exec - node: m02 + node: node-a timeout: 12m - cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q 'sw-block-operator-status' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q 'sw-block-lifecycle-owner' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/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 }}-phase109-nvme-status/values/values.nvme.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/kube-system.after-install.txt" + cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q -- '--launcher-external-nvme' {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q 'sw-block-operator-status' {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && grep -q 'sw-block-lifecycle-owner' {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/values.nvme.yaml --wait --timeout 10m > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/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 }}-phase109-nvme-status/install/helm-install.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/install/helm-install.txt" pattern: "STATUS: deployed" save_as: helm_deployed_count - action: assert_greater @@ -84,17 +90,17 @@ phases: - name: multi_volume_user_loop actions: - action: exec - node: m02 + node: node-a timeout: 10m - cmd: "set -e; APP_NODE=$(cat /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/app-node.txt); cd {{ product_root }} && SW_BLOCK_MULTI_VOLUME_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_MULTI_VOLUME_PROTOCOL=nvme bash scripts/run-multi-volume-example.sh {{ product_root }}" + cmd: "set -e; APP_NODE=$(cat {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/values/app-node.txt); cd {{ product_root }} && SW_BLOCK_MULTI_VOLUME_NODE_SELECTOR=\"$APP_NODE\" SW_BLOCK_MULTI_VOLUME_PROTOCOL=nvme 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 }}-phase109-nvme-status/multi-volume" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/multi-volume" env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}" env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "0" - env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block" + env.SW_BLOCK_CLI: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/multi-volume/multi-volume-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/multi-volume/multi-volume-summary.txt" pattern: "^multi_volume_status=ok$" save_as: multi_volume_ok - action: assert_greater @@ -104,18 +110,18 @@ phases: - name: surface_agreement actions: - action: exec - node: m02 + node: node-a timeout: 5m - cmd: "set -e; BASE=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status; mkdir -p \"$BASE/surfaces/dashboard\" \"$BASE/surfaces/explain\"; for i in $(seq 1 60); do kubectl -n {{ helm_namespace }} get swblockvolumes -o json > \"$BASE/surfaces/swblockvolumes.json\" 2>/dev/null || true; python3 - <<'PY' \"$BASE/surfaces/swblockvolumes.json\" && exit 0 || true\nimport json, sys\ntry:\n doc=json.load(open(sys.argv[1]))\nexcept Exception:\n raise SystemExit(1)\nitems=doc.get('items') or []\nif len(items) != 2:\n raise SystemExit(1)\nfor item in items:\n st=item.get('status') or {}\n nv=st.get('nvme') or {}\n if st.get('status') != 'ready' or st.get('reasonCode') != 'first_volume_verified':\n raise SystemExit(1)\n if nv.get('protocol') != 'nvme' or not nv.get('nqn') or not nv.get('nvmeAddr') or nv.get('pathCount') != 1:\n raise SystemExit(1)\nPY\nsleep 2; done; echo 'SwBlockVolume NVMe status did not converge' >&2; kubectl -n {{ helm_namespace }} get swblockvolumes -o yaml >&2 || true; exit 1" + cmd: "set -e; BASE={{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status; mkdir -p \"$BASE/surfaces/dashboard\" \"$BASE/surfaces/explain\"; for i in $(seq 1 60); do kubectl -n {{ helm_namespace }} get swblockvolumes -o json > \"$BASE/surfaces/swblockvolumes.json\" 2>/dev/null || true; python3 - <<'PY' \"$BASE/surfaces/swblockvolumes.json\" && exit 0 || true\nimport json, sys\ntry:\n doc=json.load(open(sys.argv[1]))\nexcept Exception:\n raise SystemExit(1)\nitems=doc.get('items') or []\nif len(items) != 2:\n raise SystemExit(1)\nfor item in items:\n st=item.get('status') or {}\n nv=st.get('nvme') or {}\n if st.get('status') != 'ready' or st.get('reasonCode') != 'first_volume_verified':\n raise SystemExit(1)\n if nv.get('protocol') != 'nvme' or not nv.get('nqn') or not nv.get('nvmeAddr') or nv.get('pathCount') != 1:\n raise SystemExit(1)\nPY\nsleep 2; done; echo 'SwBlockVolume NVMe status did not converge' >&2; kubectl -n {{ helm_namespace }} get swblockvolumes -o yaml >&2 || true; exit 1" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: exec - node: m02 + node: node-a timeout: 5m - cmd: "set -e; BASE=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops report --from-bundle \"$BASE/multi-volume\" --out \"$BASE/surfaces/report\" > \"$BASE/surfaces/report.stdout.txt\" 2> \"$BASE/surfaces/report.stderr.txt\"; port=$(python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops dashboard --from-bundle \"$BASE/multi-volume\" --listen 127.0.0.1:$port > \"$BASE/surfaces/dashboard/stdout.txt\" 2> \"$BASE/surfaces/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 50); do code=$(curl -s -o \"$BASE/surfaces/dashboard/operator-snapshot.json\" -w '%{http_code}' \"http://127.0.0.1:$port/operator-snapshot.json\" || true); [ \"$code\" = 200 ] && break; sleep 0.2; done; python3 - <<'PY'\nfrom pathlib import Path\nimport json, re, subprocess\nbase=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status')\nsummary=(base/'surfaces/report/summary.txt').read_text()\ncrd=json.loads((base/'surfaces/swblockvolumes.json').read_text())\nsnapshot=json.loads((base/'surfaces/report/operator-snapshot.json').read_text())\ndashboard=json.loads((base/'surfaces/dashboard/operator-snapshot.json').read_text())\ncrd_status=[]\nfor item in crd['items']:\n st=item['status']; nv=st['nvme']\n crd_status.append((st['volumeID'], st['pvcName'], st['status'], st['reasonCode'], st['publishTarget'], nv['protocol'], nv['nqn'], nv['nvmeAddr'], int(nv['pathCount'])))\nif len(crd_status) != 2:\n raise SystemExit('crd count mismatch')\nsummary_nvme=[]\nfor line in summary.splitlines():\n if line.startswith('managed_volume_nvme='):\n parts=dict(re.findall(r'([a-z_]+)=([^ ]+)', line))\n summary_nvme.append((line.split()[0].split('=',1)[1], parts.get('nqn'), parts.get('addr'), int(parts.get('path_count','0'))))\nif len(summary_nvme) != 2:\n raise SystemExit('summary nvme count mismatch')\nfor doc_name, doc in [('snapshot', snapshot), ('dashboard', dashboard)]:\n volumes=doc.get('volumes') or []\n if len(volumes) != 2:\n raise SystemExit(f'{doc_name} volume count={len(volumes)}')\n for volume in volumes:\n st=volume['status']; nv=st.get('nvme') or {}\n if st.get('status') != 'ready' or st.get('reason_code') != 'first_volume_verified':\n raise SystemExit(f'{doc_name} status mismatch {st}')\n if nv.get('protocol') != 'nvme' or not nv.get('nqn') or not nv.get('nvme_addr') or nv.get('path_count') != 1:\n raise SystemExit(f'{doc_name} nvme mismatch {nv}')\nfor volume_id, pvc, status, reason, publish, protocol, nqn, addr, path_count in crd_status:\n if protocol != 'nvme' or status != 'ready' or reason != 'first_volume_verified' or publish != addr or path_count != 1:\n raise SystemExit(f'crd mismatch {volume_id}')\n if f'managed_volume={volume_id} status=ready reason=first_volume_verified' not in summary:\n raise SystemExit(f'summary missing managed volume {volume_id}')\n if f'managed_volume_nvme={volume_id} nqn={nqn}' not in summary or f' addr={addr} ' not in summary:\n raise SystemExit(f'summary missing nvme {volume_id}')\n out=subprocess.check_output(['/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block','ops','explain','volume','--from-bundle',str(base/'multi-volume'),volume_id], text=True)\n (base/f'surfaces/explain/{volume_id}.txt').write_text(out)\n if f'managed_volume {volume_id} status=ready reason=first_volume_verified' not in out:\n raise SystemExit(f'explain missing status {volume_id}')\n if f'managed_volume_nvme protocol=nvme nqn={nqn}' not in out or f'addr={addr}' not in out:\n raise SystemExit(f'explain missing nvme {volume_id}')\ntext='\\n'.join([\n 'phase109_nvme_tcp_status_surface_status=ok',\n 'volume_count=2',\n 'crd_nvme_status_count=2',\n 'report_nvme_status_count=2',\n 'operator_snapshot_nvme_status_count=2',\n 'dashboard_nvme_status_count=2',\n 'explain_nvme_status_count=2',\n 'all_surfaces_status=ready',\n 'all_surfaces_reason=first_volume_verified',\n 'all_surfaces_protocol=nvme',\n 'publish_target_matches_nvme_addr=true',\n 'mutation_allowed=false',\n])+'\\n'\n(base/'asserts/phase109-surface-summary.txt').write_text(text)\nPY" + cmd: "set -e; BASE={{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status; {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops report --from-bundle \"$BASE/multi-volume\" --out \"$BASE/surfaces/report\" > \"$BASE/surfaces/report.stdout.txt\" 2> \"$BASE/surfaces/report.stderr.txt\"; port=$(python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); {{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block ops dashboard --from-bundle \"$BASE/multi-volume\" --listen 127.0.0.1:$port > \"$BASE/surfaces/dashboard/stdout.txt\" 2> \"$BASE/surfaces/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 50); do code=$(curl -s -o \"$BASE/surfaces/dashboard/operator-snapshot.json\" -w '%{http_code}' \"http://127.0.0.1:$port/operator-snapshot.json\" || true); [ \"$code\" = 200 ] && break; sleep 0.2; done; python3 - <<'PY'\nfrom pathlib import Path\nimport json, re, subprocess\nbase=Path('{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status')\nsummary=(base/'surfaces/report/summary.txt').read_text()\ncrd=json.loads((base/'surfaces/swblockvolumes.json').read_text())\nsnapshot=json.loads((base/'surfaces/report/operator-snapshot.json').read_text())\ndashboard=json.loads((base/'surfaces/dashboard/operator-snapshot.json').read_text())\ncrd_status=[]\nfor item in crd['items']:\n st=item['status']; nv=st['nvme']\n crd_status.append((st['volumeID'], st['pvcName'], st['status'], st['reasonCode'], st['publishTarget'], nv['protocol'], nv['nqn'], nv['nvmeAddr'], int(nv['pathCount'])))\nif len(crd_status) != 2:\n raise SystemExit('crd count mismatch')\nsummary_nvme=[]\nfor line in summary.splitlines():\n if line.startswith('managed_volume_nvme='):\n parts=dict(re.findall(r'([a-z_]+)=([^ ]+)', line))\n summary_nvme.append((line.split()[0].split('=',1)[1], parts.get('nqn'), parts.get('addr'), int(parts.get('path_count','0'))))\nif len(summary_nvme) != 2:\n raise SystemExit('summary nvme count mismatch')\nfor doc_name, doc in [('snapshot', snapshot), ('dashboard', dashboard)]:\n volumes=doc.get('volumes') or []\n if len(volumes) != 2:\n raise SystemExit(f'{doc_name} volume count={len(volumes)}')\n for volume in volumes:\n st=volume['status']; nv=st.get('nvme') or {}\n if st.get('status') != 'ready' or st.get('reason_code') != 'first_volume_verified':\n raise SystemExit(f'{doc_name} status mismatch {st}')\n if nv.get('protocol') != 'nvme' or not nv.get('nqn') or not nv.get('nvme_addr') or nv.get('path_count') != 1:\n raise SystemExit(f'{doc_name} nvme mismatch {nv}')\nfor volume_id, pvc, status, reason, publish, protocol, nqn, addr, path_count in crd_status:\n if protocol != 'nvme' or status != 'ready' or reason != 'first_volume_verified' or publish != addr or path_count != 1:\n raise SystemExit(f'crd mismatch {volume_id}')\n if f'managed_volume={volume_id} status=ready reason=first_volume_verified' not in summary:\n raise SystemExit(f'summary missing managed volume {volume_id}')\n if f'managed_volume_nvme={volume_id} nqn={nqn}' not in summary or f' addr={addr} ' not in summary:\n raise SystemExit(f'summary missing nvme {volume_id}')\n out=subprocess.check_output(['{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/bin/sw-block','ops','explain','volume','--from-bundle',str(base/'multi-volume'),volume_id], text=True)\n (base/f'surfaces/explain/{volume_id}.txt').write_text(out)\n if f'managed_volume {volume_id} status=ready reason=first_volume_verified' not in out:\n raise SystemExit(f'explain missing status {volume_id}')\n if f'managed_volume_nvme protocol=nvme nqn={nqn}' not in out or f'addr={addr}' not in out:\n raise SystemExit(f'explain missing nvme {volume_id}')\ntext='\\n'.join([\n 'phase109_nvme_tcp_status_surface_status=ok',\n 'volume_count=2',\n 'crd_nvme_status_count=2',\n 'report_nvme_status_count=2',\n 'operator_snapshot_nvme_status_count=2',\n 'dashboard_nvme_status_count=2',\n 'explain_nvme_status_count=2',\n 'all_surfaces_status=ready',\n 'all_surfaces_reason=first_volume_verified',\n 'all_surfaces_protocol=nvme',\n 'publish_target_matches_nvme_addr=true',\n 'mutation_allowed=false',\n])+'\\n'\n(base/'asserts/phase109-surface-summary.txt').write_text(text)\nPY" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/asserts/phase109-surface-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/asserts/phase109-surface-summary.txt" pattern: "^phase109_nvme_tcp_status_surface_status=ok$" save_as: surface_ok - action: assert_greater @@ -126,13 +132,14 @@ phases: always: true actions: - action: exec - node: m02 + node: node-a 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 }}-phase109-nvme-status/cleanup/helm-uninstall.txt || true; kubectl -n {{ helm_namespace }} get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n {{ helm_namespace }} patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n {{ helm_namespace }} delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n {{ helm_namespace }} delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance={{ helm_release }} --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || 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 || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup/verify bash scripts/verify-helm-cleanup.sh {{ product_root }}" + 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; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup/helm-uninstall.txt || true; kubectl -n {{ helm_namespace }} get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n {{ helm_namespace }} patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n {{ helm_namespace }} delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n {{ helm_namespace }} delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance={{ helm_release }} --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s || 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 || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s || true; done; kubectl delete storageclass sw-block-multi --ignore-not-found=true --wait=true --timeout=120s || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-multi/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=$SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup/verify bash scripts/verify-helm-cleanup.sh {{ product_root }}" + env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}" env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup/verify/cleanup-summary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status/cleanup/verify/cleanup-summary.txt" pattern: "^cleanup_status=ok$" save_as: cleanup_ok - action: assert_greater @@ -143,7 +150,7 @@ phases: always: true actions: - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase109-nvme-status" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-phase109-nvme-status" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-target-backend-shape-split-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-target-backend-shape-split-chain.yaml deleted file mode 100644 index e2de1ec2f1..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-target-backend-shape-split-chain.yaml +++ /dev/null @@ -1,143 +0,0 @@ -name: nvme-tcp-target-backend-shape-split-chain -timeout: 70m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase124-block-perf sw-block-phase124-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase124-block-pvc sw-block-phase124-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase124-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase124/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase124/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 62m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split SW_BLOCK_PHASE124_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE124_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase124-nvme-tcp-target-backend-shape-split-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^phase124_nvme_tcp_target_backend_shape_split_status=ok$" - save_as: phase124_status_ok - - action: assert_greater - actual: "{{ phase124_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^network_baseline_mibps=[0-9]" - save_as: network_metric - - action: assert_greater - actual: "{{ network_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^local_path_seq_write_mibps=[0-9]" - save_as: local_write_metric - - action: assert_greater - actual: "{{ local_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^local_path_seq_read_mibps=[0-9]" - save_as: local_read_metric - - action: assert_greater - actual: "{{ local_read_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^block_nvme_seq_write_mibps=[0-9]" - save_as: block_write_metric - - action: assert_greater - actual: "{{ block_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^block_nvme_seq_read_mibps=[0-9]" - save_as: block_read_metric - - action: assert_greater - actual: "{{ block_read_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^block_vs_local_read_ratio=" - save_as: read_ratio_named - - action: assert_greater - actual: "{{ read_ratio_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^block_vs_local_write_ratio=" - save_as: write_ratio_named - - action: assert_greater - actual: "{{ write_ratio_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^shape_fsync_penalty=" - save_as: fsync_penalty_named - - action: assert_greater - actual: "{{ fsync_penalty_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^top_bottleneck=" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-summary.txt" - pattern: "^next_recommendation=phase125_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase124-nvme-split/phase124-nvme-tcp-target-backend-shape-split-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 }}-phase124-nvme-split" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-batch-shape-coalescing-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-append-batch-shape-coalescing-chain.yaml deleted file mode 100644 index 4ce4003ee3..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-batch-shape-coalescing-chain.yaml +++ /dev/null @@ -1,119 +0,0 @@ -name: nvme-tcp-wal-append-batch-shape-coalescing-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape SW_BLOCK_PHASE139_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase139-wal-append-batch-shape-coalescing-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^phase139_wal_append_batch_shape_coalescing_status=ok$" - save_as: phase139_status_ok - - action: assert_greater - actual: "{{ phase139_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^unit_batch_shape_regression_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batch_effective - - action: assert_greater - actual: "{{ batch_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^backend_write_request_max_bytes=[1-9][0-9]*$" - save_as: request_max - - action: assert_greater - actual: "{{ request_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^backend_full_block_batch_max=[1-9][0-9]*$" - save_as: batch_max - - action: assert_greater - actual: "{{ batch_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^phase139_shape_result=\\(improved\\|frontend_request_limited\\|blocked\\)$" - save_as: shape_result - - action: assert_greater - actual: "{{ shape_result }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-summary.txt" - pattern: "^next_recommendation=phase140_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase139-batch-shape/phase139-wal-append-batch-shape-coalescing-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 }}-phase139-batch-shape" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-copy-checksum-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-append-copy-checksum-profile-chain.yaml deleted file mode 100644 index 7a29918f37..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-copy-checksum-profile-chain.yaml +++ /dev/null @@ -1,127 +0,0 @@ -name: nvme-tcp-wal-append-copy-checksum-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile SW_BLOCK_PHASE136_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase136-wal-append-copy-checksum-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^phase136_wal_append_copy_checksum_profile_status=ok$" - save_as: phase136_status_ok - - action: assert_greater - actual: "{{ phase136_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^unit_wal_profile_regression_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batch_effective - - action: assert_greater - actual: "{{ batch_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^wal_copy_duration_ms=[1-9][0-9]*$" - save_as: wal_copy_duration - - action: assert_greater - actual: "{{ wal_copy_duration }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^wal_encode_duration_ms=[1-9][0-9]*$" - save_as: wal_encode_duration - - action: assert_greater - actual: "{{ wal_encode_duration }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^wal_append_duration_ms=[1-9][0-9]*$" - save_as: wal_append_duration - - action: assert_greater - actual: "{{ wal_append_duration }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^post_phase136_bottleneck=\\(wal_copy\\|wal_encode\\|wal_checksum\\|wal_append\\|dirty_map\\|unknown\\)$" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-summary.txt" - pattern: "^next_recommendation=phase137_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase136-wal-profile/phase136-wal-append-copy-checksum-profile-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 }}-phase136-wal-profile" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-large-h2c-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-append-large-h2c-profile-chain.yaml deleted file mode 100644 index 6f064ef60e..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-append-large-h2c-profile-chain.yaml +++ /dev/null @@ -1,215 +0,0 @@ -name: nvme-tcp-wal-append-large-h2c-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append SW_BLOCK_PHASE143_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE143_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase143-wal-append-large-h2c-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^phase143_wal_append_large_h2c_profile_status=ok$" - save_as: phase143_status_ok - - action: assert_greater - actual: "{{ phase143_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^phase143_contract_tests=pass$" - save_as: contract_tests - - action: assert_greater - actual: "{{ contract_tests }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^backend_full_block_batch_max=[1-9][0-9]*$" - save_as: full_block_batch - - action: assert_greater - actual: "{{ full_block_batch }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_duration_ms=[1-9][0-9]*$" - save_as: wal_append_ms - - action: assert_greater - actual: "{{ wal_append_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_writeat_calls=[1-9][0-9]*$" - save_as: writeat_calls - - action: assert_greater - actual: "{{ writeat_calls }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_writeat_bytes=[1-9][0-9]*$" - save_as: writeat_bytes - - action: assert_greater - actual: "{{ writeat_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_writeat_max_bytes=[1-9][0-9]*$" - save_as: writeat_max - - action: assert_greater - actual: "{{ writeat_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_writeat_avg_bytes=[1-9][0-9]*$" - save_as: writeat_avg - - action: assert_greater - actual: "{{ writeat_avg }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_wrap_count=[0-9][0-9]*$" - save_as: wrap_count - - action: assert_greater - actual: "{{ wrap_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_append_padding_bytes=[0-9][0-9]*$" - save_as: padding_bytes - - action: assert_greater - actual: "{{ padding_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^wal_encode_duration_ms=[1-9][0-9]*$" - save_as: wal_encode_ms - - action: assert_greater - actual: "{{ wal_encode_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^phase143_append_shape=\\(writeat_latency\\|writeat_count\\|encode_close_second\\|wrap_padding\\|unknown\\)$" - save_as: append_shape_named - - action: assert_greater - actual: "{{ append_shape_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^phase143_decision=\\(continue_backend_work\\|add_instrumentation\\|blocked\\)$" - save_as: decision_named - - action: assert_greater - actual: "{{ decision_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-summary.txt" - pattern: "^next_recommendation=phase144_.*$" - save_as: next_named - - action: assert_greater - actual: "{{ next_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase143-wal-append/phase143-wal-append-large-h2c-profile-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 }}-phase143-wal-append" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-encode-append-pair-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-encode-append-pair-profile-chain.yaml deleted file mode 100644 index 4e86cf99c6..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-encode-append-pair-profile-chain.yaml +++ /dev/null @@ -1,207 +0,0 @@ -name: nvme-tcp-wal-encode-append-pair-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair SW_BLOCK_PHASE144_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE144_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase144-wal-encode-append-pair-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^phase144_wal_encode_append_pair_profile_status=ok$" - save_as: phase144_status_ok - - action: assert_greater - actual: "{{ phase144_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^phase144_contract_tests=pass$" - save_as: contract_tests - - action: assert_greater - actual: "{{ contract_tests }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_encode_ops=[1-9][0-9]*$" - save_as: encode_ops - - action: assert_greater - actual: "{{ encode_ops }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_encode_bytes=[1-9][0-9]*$" - save_as: encode_bytes - - action: assert_greater - actual: "{{ encode_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_encode_duration_ms=[1-9][0-9]*$" - save_as: encode_ms - - action: assert_greater - actual: "{{ encode_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_append_ops=[1-9][0-9]*$" - save_as: append_ops - - action: assert_greater - actual: "{{ append_ops }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_append_bytes=[1-9][0-9]*$" - save_as: append_bytes - - action: assert_greater - actual: "{{ append_bytes }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_append_duration_ms=[1-9][0-9]*$" - save_as: append_ms - - action: assert_greater - actual: "{{ append_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_append_writeat_calls=[1-9][0-9]*$" - save_as: writeat_calls - - action: assert_greater - actual: "{{ writeat_calls }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^wal_append_writeat_avg_bytes=[1-9][0-9]*$" - save_as: writeat_avg - - action: assert_greater - actual: "{{ writeat_avg }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^phase144_pair_shape=\\(encode_dominant\\|append_dominant\\|encode_append_tied\\|instrumentation_gap\\|unknown\\)$" - save_as: pair_shape_named - - action: assert_greater - actual: "{{ pair_shape_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^phase144_decision=\\(continue_backend_work\\|add_instrumentation\\|blocked\\)$" - save_as: decision_named - - action: assert_greater - actual: "{{ decision_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-summary.txt" - pattern: "^next_recommendation=phase145_.*$" - save_as: next_named - - action: assert_greater - actual: "{{ next_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase144-wal-pair/phase144-wal-encode-append-pair-profile-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 }}-phase144-wal-pair" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-head-lsn-confirmation-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-head-lsn-confirmation-chain.yaml deleted file mode 100644 index 6594f0607d..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-head-lsn-confirmation-chain.yaml +++ /dev/null @@ -1,225 +0,0 @@ -name: nvme-tcp-wal-multiblock-head-lsn-confirmation-chain -timeout: 95m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - -topology: - nodes: - m01: - host: 192.168.1.181 - user: testdev - key: "{{ ssh_key }}" - 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 sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; sudo -n rm -rf /tmp/sw-block-phase155-recovery-*; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m01 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase155-recovery-*" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 87m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn SW_BLOCK_PHASE155_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE155_SEQ_MIB=4 SW_BLOCK_PHASE155_RESTART_VERIFY_MIB=4 SW_BLOCK_PHASE155_STATE_HOSTPATH=/tmp/sw-block-phase155-recovery-{{ run_id }} SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase155-mounted-durable-status-head-lsn-confirmation-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^phase155_mounted_durable_status_head_lsn_confirmation_status=ok$" - save_as: phase155_status_ok - - action: assert_greater - actual: "{{ phase155_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^phase152_followup=head_lsn_diagnostic_cleanup$" - save_as: phase152_followup - - action: assert_greater - actual: "{{ phase152_followup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^runtime_opt_in_enabled=true$" - save_as: runtime_enabled - - action: assert_greater - actual: "{{ runtime_enabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^recovery_test_disable_flusher_enabled=true$" - save_as: recovery_test_flusher_disabled - - action: assert_greater - actual: "{{ recovery_test_flusher_disabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^restart_persistence_mode=hostpath$" - save_as: restart_persistence - - action: assert_greater - actual: "{{ restart_persistence }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^blockvolume_restart_mode=force_delete_pod$" - save_as: restart_mode - - action: assert_greater - actual: "{{ restart_mode }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^recovery_completed=true$" - save_as: recovery_completed - - action: assert_greater - actual: "{{ recovery_completed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^recovered_lsn_after_restart=[1-9][0-9]*$" - save_as: recovered_lsn - - action: assert_greater - actual: "{{ recovered_lsn }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^recovered_lsn_remains_correct=true$" - save_as: recovered_lsn_correct - - action: assert_greater - actual: "{{ recovered_lsn_correct }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^durable_status_head_lsn_after_restart=[1-9][0-9]*$" - save_as: head_lsn_after - - action: assert_greater - actual: "{{ head_lsn_after }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^durable_status_head_lsn_equals_recovered_lsn=true$" - save_as: head_equals_recovered - - action: assert_greater - actual: "{{ head_equals_recovered }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^durable_status_evidence_matches_recovered_lsn=true$" - save_as: evidence_matches - - action: assert_greater - actual: "{{ evidence_matches }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^reader_verified_after_restart=true$" - save_as: reader_after - - action: assert_greater - actual: "{{ reader_after }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^ready_after_restart=true$" - save_as: ready_after - - action: assert_greater - actual: "{{ ready_after }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^default_wal_format_unchanged=true$" - save_as: default_unchanged - - action: assert_greater - actual: "{{ default_unchanged }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^cleanup_status=ok$" - save_as: cleanup_ok - - action: assert_greater - actual: "{{ cleanup_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn/phase155-mounted-durable-status-head-lsn-confirmation-summary.txt" - pattern: "^phase155_decision=mounted_confirmed$" - save_as: decision_confirmed - - action: assert_greater - actual: "{{ decision_confirmed }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: exec - node: m01 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase155-recovery-{{ run_id }}" - ignore_error: true - - action: exec - node: m02 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase155-recovery-{{ run_id }}" - ignore_error: true - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase155-head-lsn" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-mounted-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-mounted-profile-chain.yaml deleted file mode 100644 index 13dd515eba..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-mounted-profile-chain.yaml +++ /dev/null @@ -1,175 +0,0 @@ -name: nvme-tcp-wal-multiblock-mounted-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted SW_BLOCK_PHASE151_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE151_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase151-wal-multiblock-mounted-nvme-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^phase151_wal_multiblock_mounted_nvme_profile_status=ok$" - save_as: phase151_status_ok - - action: assert_greater - actual: "{{ phase151_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^runtime_opt_in_enabled=true$" - save_as: runtime_enabled - - action: assert_greater - actual: "{{ runtime_enabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^mounted_helm_renders_opt_in=true$" - save_as: mounted_helm_opt_in - - action: assert_greater - actual: "{{ mounted_helm_opt_in }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^wal_encode_ops=[1-9][0-9]*$" - save_as: encode_ops - - action: assert_greater - actual: "{{ encode_ops }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^wal_append_ops=[1-9][0-9]*$" - save_as: append_ops - - action: assert_greater - actual: "{{ append_ops }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^multiblock_record_shape_observed=true$" - save_as: multiblock_shape - - action: assert_greater - actual: "{{ multiblock_shape }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_verified - - action: assert_greater - actual: "{{ writer_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_verified - - action: assert_greater - actual: "{{ reader_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-summary.txt" - pattern: "^phase151_decision=keep_opt_in$" - save_as: decision - - action: assert_greater - actual: "{{ decision }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase151-multiblock-mounted/phase151-wal-multiblock-mounted-nvme-profile-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 }}-phase151-multiblock-mounted" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-recovery-compatibility-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-recovery-compatibility-chain.yaml deleted file mode 100644 index 289fa2a10d..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-multiblock-recovery-compatibility-chain.yaml +++ /dev/null @@ -1,217 +0,0 @@ -name: nvme-tcp-wal-multiblock-recovery-compatibility-chain -timeout: 95m - -env: - product_root: "/tmp/seaweed_block" - ssh_key: "C:\\work\\dev_server\\testdev_key" - -topology: - nodes: - m01: - host: 192.168.1.181 - user: testdev - key: "{{ ssh_key }}" - 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 sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; sudo -n rm -rf /tmp/sw-block-phase152-recovery-*; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - action: exec - node: m01 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase152-recovery-*" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 87m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery SW_BLOCK_PHASE152_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE152_SEQ_MIB=4 SW_BLOCK_PHASE152_RESTART_VERIFY_MIB=4 SW_BLOCK_PHASE152_STATE_HOSTPATH=/tmp/sw-block-phase152-recovery-{{ run_id }} SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase152-wal-multiblock-recovery-compatibility-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^phase152_wal_multiblock_recovery_compatibility_status=ok$" - save_as: phase152_status_ok - - action: assert_greater - actual: "{{ phase152_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^runtime_opt_in_enabled=true$" - save_as: runtime_enabled - - action: assert_greater - actual: "{{ runtime_enabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^recovery_test_disable_flusher_enabled=true$" - save_as: recovery_test_flusher_disabled - - action: assert_greater - actual: "{{ recovery_test_flusher_disabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^multiblock_record_shape_observed=true$" - save_as: multiblock_shape - - action: assert_greater - actual: "{{ multiblock_shape }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^mounted_helm_renders_recovery_test_disable_flusher=true$" - save_as: mounted_recovery_test_flusher_disabled - - action: assert_greater - actual: "{{ mounted_recovery_test_flusher_disabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^writer_verified_before_restart=true$" - save_as: writer_before - - action: assert_greater - actual: "{{ writer_before }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^blockvolume_restarted=true$" - save_as: restarted - - action: assert_greater - actual: "{{ restarted }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^blockvolume_restart_mode=force_delete_pod$" - save_as: restart_mode - - action: assert_greater - actual: "{{ restart_mode }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^recovery_completed=true$" - save_as: recovery_completed - - action: assert_greater - actual: "{{ recovery_completed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^recovered_lsn_after_restart=[1-9][0-9]*$" - save_as: recovered_lsn - - action: assert_greater - actual: "{{ recovered_lsn }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^wal_integrity_fault_observed=false$" - save_as: no_wal_fault - - action: assert_greater - actual: "{{ no_wal_fault }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^reader_verified_after_restart=true$" - save_as: reader_after - - action: assert_greater - actual: "{{ reader_after }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^ready_after_restart=true$" - save_as: ready_after - - action: assert_greater - actual: "{{ ready_after }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery/phase152-wal-multiblock-recovery-compatibility-summary.txt" - pattern: "^cleanup_status=ok$" - save_as: cleanup_ok - - action: assert_greater - actual: "{{ cleanup_ok }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: exec - node: m01 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase152-recovery-{{ run_id }}" - ignore_error: true - - action: exec - node: m02 - timeout: 2m - cmd: "sudo -n rm -rf /tmp/sw-block-phase152-recovery-{{ run_id }}" - ignore_error: true - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase152-multiblock-recovery" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-effectiveness-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-effectiveness-chain.yaml deleted file mode 100644 index 273e4fcd42..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-effectiveness-chain.yaml +++ /dev/null @@ -1,167 +0,0 @@ -name: nvme-tcp-wal-record-materialization-effectiveness-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness SW_BLOCK_PHASE146_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE146_SEQ_MIB=512 SW_BLOCK_PHASE146_BASELINE_ENCODE_MS=297 SW_BLOCK_PHASE146_BASELINE_APPEND_MS=295 SW_BLOCK_PHASE146_VISIBLE_THRESHOLD_PCT=5 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase146-wal-record-materialization-effectiveness-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^phase146_wal_record_materialization_effectiveness_status=ok$" - save_as: phase146_status_ok - - action: assert_greater - actual: "{{ phase146_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^wal_record_materialization_change=writebatch_value_entries$" - save_as: materialization_change - - action: assert_greater - actual: "{{ materialization_change }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^unit_record_compatibility=pass$" - save_as: unit_compat - - action: assert_greater - actual: "{{ unit_compat }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^wal_encode_duration_ms=[1-9][0-9]*$" - save_as: encode_ms - - action: assert_greater - actual: "{{ encode_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^wal_append_duration_ms=[1-9][0-9]*$" - save_as: append_ms - - action: assert_greater - actual: "{{ append_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^phase146_effectiveness=[a-z_][a-z_]*$" - save_as: effectiveness - - action: assert_greater - actual: "{{ effectiveness }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^phase146_decision=[a-z_][a-z_]*$" - save_as: decision - - action: assert_greater - actual: "{{ decision }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-summary.txt" - pattern: "^next_recommendation=phase147_.*$" - save_as: next_named - - action: assert_greater - actual: "{{ next_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase146-effectiveness/phase146-wal-record-materialization-effectiveness-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 }}-phase146-effectiveness" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-reduction-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-reduction-chain.yaml deleted file mode 100644 index 93e006116c..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-record-materialization-reduction-chain.yaml +++ /dev/null @@ -1,175 +0,0 @@ -name: nvme-tcp-wal-record-materialization-reduction-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization SW_BLOCK_PHASE145_CANDIDATE_MAX_H2C_BYTES=65536 SW_BLOCK_PHASE145_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase145-wal-record-materialization-reduction-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^phase145_wal_record_materialization_reduction_status=ok$" - save_as: phase145_status_ok - - action: assert_greater - actual: "{{ phase145_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^wal_record_materialization_change=writebatch_value_entries$" - save_as: materialization_change - - action: assert_greater - actual: "{{ materialization_change }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^unit_record_compatibility=pass$" - save_as: unit_compat - - action: assert_greater - actual: "{{ unit_compat }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^nvme_rdma_claim_allowed=false$" - save_as: no_rdma_claim - - action: assert_greater - actual: "{{ no_rdma_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^performance_slo_claim_allowed=false$" - save_as: no_slo_claim - - action: assert_greater - actual: "{{ no_slo_claim }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^candidate_max_h2c_bytes=65536$" - save_as: candidate_64k - - action: assert_greater - actual: "{{ candidate_64k }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^target_write_request_max_bytes=65536$" - save_as: target_h2c - - action: assert_greater - actual: "{{ target_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^backend_write_request_max_bytes=65536$" - save_as: backend_h2c - - action: assert_greater - actual: "{{ backend_h2c }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^wal_encode_duration_ms=[1-9][0-9]*$" - save_as: encode_ms - - action: assert_greater - actual: "{{ encode_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^wal_append_duration_ms=[1-9][0-9]*$" - save_as: append_ms - - action: assert_greater - actual: "{{ append_ms }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^writer_verified=true$" - save_as: writer_verified - - action: assert_greater - actual: "{{ writer_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^reader_verified=true$" - save_as: reader_verified - - action: assert_greater - actual: "{{ reader_verified }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^phase145_decision=keep_change$" - save_as: decision_keep - - action: assert_greater - actual: "{{ decision_keep }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-summary.txt" - pattern: "^next_recommendation=phase146_.*$" - save_as: next_named - - action: assert_greater - actual: "{{ next_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase145-materialization/phase145-wal-record-materialization-reduction-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 }}-phase145-materialization" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-wal-writeat-shape-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-wal-writeat-shape-profile-chain.yaml deleted file mode 100644 index d395bc27c9..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-wal-writeat-shape-profile-chain.yaml +++ /dev/null @@ -1,119 +0,0 @@ -name: nvme-tcp-wal-writeat-shape-profile-chain -timeout: 90m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase126-block-perf sw-block-phase126-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase126-block-pvc sw-block-phase126-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase126-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase126/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 82m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape SW_BLOCK_PHASE138_SEQ_MIB=512 SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase138-wal-writeat-shape-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^phase138_wal_writeat_shape_profile_status=ok$" - save_as: phase138_status_ok - - action: assert_greater - actual: "{{ phase138_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^unit_wal_writeat_shape_regression_passed=true$" - save_as: unit_passed - - action: assert_greater - actual: "{{ unit_passed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^target_write_observed=true$" - save_as: target_observed - - action: assert_greater - actual: "{{ target_observed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^backend_storage_batching_effective=true$" - save_as: batch_effective - - action: assert_greater - actual: "{{ batch_effective }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^wal_append_writeat_calls=[1-9][0-9]*$" - save_as: writeat_calls - - action: assert_greater - actual: "{{ writeat_calls }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^wal_append_writeat_max_bytes=[1-9][0-9]*$" - save_as: writeat_max - - action: assert_greater - actual: "{{ writeat_max }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^post_phase138_bottleneck=\\(wal_append_syscall\\|wal_append_small_writes\\|wal_wrap_padding\\|wal_encode\\|wal_checksum\\|dirty_map\\|unknown\\)$" - save_as: bottleneck_named - - action: assert_greater - actual: "{{ bottleneck_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-summary.txt" - pattern: "^next_recommendation=phase139_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase138-wal-writeat-shape/phase138-wal-writeat-shape-profile-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 }}-phase138-wal-writeat-shape" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/nvme-tcp-write-path-profile-chain.yaml b/seaweed-block/testops/scenarios/nvme-tcp-write-path-profile-chain.yaml deleted file mode 100644 index 9d1d2114bd..0000000000 --- a/seaweed-block/testops/scenarios/nvme-tcp-write-path-profile-chain.yaml +++ /dev/null @@ -1,119 +0,0 @@ -name: nvme-tcp-write-path-profile-chain -timeout: 80m - -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 - timeout: 5m - cmd: "helm status sw-block --namespace kube-system >/dev/null 2>&1 && helm uninstall sw-block --namespace kube-system --wait --timeout 240s || true; kubectl -n default delete pod sw-block-phase125-block-perf sw-block-phase125-local-perf --ignore-not-found=true --wait=true --timeout=60s || true; kubectl -n default delete pvc sw-block-phase125-block-pvc sw-block-phase125-local-pvc --ignore-not-found=true --wait=true --timeout=60s || true; kubectl delete storageclass sw-block-phase125-block --ignore-not-found=true --wait=true --timeout=60s || true; kubectl get pv --no-headers | awk '/sw-block-phase125/ {print $1}' | xargs -r -n1 kubectl patch pv --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl get pv --no-headers | awk '/sw-block-phase125/ {print $1}' | xargs -r kubectl delete pv --wait=false >/dev/null 2>&1 || true; kubectl -n kube-system get swblockvolumes.block.seaweedfs.com -o name 2>/dev/null | xargs -r -n1 kubectl -n kube-system patch --type=merge -p '{\"metadata\":{\"finalizers\":[]}}' >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockvolumes.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl -n kube-system delete swblockclusters.block.seaweedfs.com --all --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; kubectl delete validatingadmissionpolicy,validatingadmissionpolicybinding -l app.kubernetes.io/instance=sw-block --ignore-not-found=true >/dev/null 2>&1 || true; kubectl delete crd swblockclusters.block.seaweedfs.com swblockvolumes.block.seaweedfs.com swblockreplicaeligibilities.block.seaweedfs.com swblockreplicarebuilds.block.seaweedfs.com swblockreplicafailbacks.block.seaweedfs.com swblockfrontendpublications.block.seaweedfs.com --ignore-not-found=true --wait=true --timeout=60s >/dev/null 2>&1 || true; sudo -n nvme disconnect-all >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: run_gate - actions: - - action: exec - node: m02 - timeout: 72m - cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile SW_BLOCK_PHASE125_FRONTEND_IP_MAP=m01=10.0.0.1,m02=10.0.0.3 SW_BLOCK_PHASE125_EXPECTED_ROUTE_DEV=enp1s0np0 SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key bash scripts/run-phase125-block-nvme-tcp-write-path-profile-gate.sh {{ product_root }}" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: assert_summary - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^phase125_block_nvme_tcp_write_path_profile_status=ok$" - save_as: phase125_status_ok - - action: assert_greater - actual: "{{ phase125_status_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^network_baseline_mibps=[0-9]" - save_as: network_metric - - action: assert_greater - actual: "{{ network_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^local_path_seq_write_mibps=[0-9]" - save_as: local_write_metric - - action: assert_greater - actual: "{{ local_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^block_nvme_seq_write_mibps=[0-9]" - save_as: block_write_metric - - action: assert_greater - actual: "{{ block_write_metric }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^blockvolume_cpu_sample_count=" - save_as: cpu_sample_count - - action: assert_greater - actual: "{{ cpu_sample_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^blockvolume_cpu_peak_percent=" - save_as: cpu_peak_named - - action: assert_greater - actual: "{{ cpu_peak_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^write_path_observation=" - save_as: observation_named - - action: assert_greater - actual: "{{ observation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-summary.txt" - pattern: "^next_recommendation=phase126_" - save_as: recommendation_named - - action: assert_greater - actual: "{{ recommendation_named }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase125-write-profile/phase125-block-nvme-tcp-write-path-profile-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 }}-phase125-write-profile" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/operations-status-diagnostics-chain.yaml b/seaweed-block/testops/scenarios/operations-status-diagnostics-chain.yaml deleted file mode 100644 index 78b2c63438..0000000000 --- a/seaweed-block/testops/scenarios/operations-status-diagnostics-chain.yaml +++ /dev/null @@ -1,109 +0,0 @@ -# Runner-native operations/status diagnostics component gate. -# -# Goal: -# Prove the status-server diagnostic surfaces are present and explicitly -# guarded at component level before relying on them in beta-hardening suites. -# -# Expected invocation: -# swblock run \ -# -env product_root=/path/to/seaweed_block/on/m02 \ -# -env ssh_key=/path/to/testdev_key/on/controller \ -# testops/scenarios/operations-status-diagnostics-chain.yaml - -name: operations-status-diagnostics-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: 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 }}-operations-status && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/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 }}-operations-status/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/pin_build/git.status" - - - name: status_diagnostics_component_tests - actions: - - action: exec - node: m02 - timeout: 3m - cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -json -run \"TestStatusServer_(RejectsNonLoopbackBind|AcceptsLoopbackBindAndServesJSON|RecoveryEndpoint_Enabled_ReturnsEngineProjection|PeerStatusEndpoint_EnabledAfterStart_ReturnsPeerStates|DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage)$\" ./core/host/volume | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl'" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_RejectsNonLoopbackBind\"" - save_as: status_loopback_guard_count - - action: assert_greater - actual: "{{ status_loopback_guard_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_AcceptsLoopbackBindAndServesJSON\"" - save_as: status_base_json_count - - action: assert_greater - actual: "{{ status_base_json_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_RecoveryEndpoint_Enabled_ReturnsEngineProjection\"" - save_as: status_recovery_endpoint_count - - action: assert_greater - actual: "{{ status_recovery_endpoint_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_PeerStatusEndpoint_EnabledAfterStart_ReturnsPeerStates\"" - save_as: status_peers_endpoint_count - - action: assert_greater - actual: "{{ status_peers_endpoint_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operations-status/status-server-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage\"" - save_as: status_durable_endpoint_count - - action: assert_greater - actual: "{{ status_durable_endpoint_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 }}-operations-status" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/operations-volume-status-cli-gate.yaml b/seaweed-block/testops/scenarios/operations-volume-status-cli-gate.yaml deleted file mode 100644 index 3c849587e0..0000000000 --- a/seaweed-block/testops/scenarios/operations-volume-status-cli-gate.yaml +++ /dev/null @@ -1,239 +0,0 @@ -# Runner-native operations volume-status CLI gate. -# -# Goal: -# Exercise the operator-facing `sw-block ops status` command boundary and -# prove it writes the support-bundle artifacts expected by the operations -# usability plan. This remains component-fast: the command talks to in-test -# fake master/status endpoints, not a live blockvolume deployment. -# -# Expected invocation: -# 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-cli-gate.yaml - -name: operations-volume-status-cli-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 }}-ops-volume-status-cli && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts" - - - name: pin_build - actions: - - action: exec - node: m02 - cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/pin_build/git.status" - - - name: ops_status_cli - actions: - - action: exec - node: m02 - timeout: 3m - cmd: "cd {{ product_root }} && bash -o pipefail -c 'SW_BLOCK_OPS_STATUS_CLI_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts go test -count=1 -json -run \"^TestOpsStatusWritesArtifactsAndReturnsClean$\" ./cmd/sw-block | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-status-cli-go-test.jsonl'" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-status-cli-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestOpsStatusWritesArtifactsAndReturnsClean\"" - save_as: ops_status_cli_pass_count - - action: assert_greater - actual: "{{ ops_status_cli_pass_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-report.json" - pattern: "\"schema_version\": \"1.0\"" - save_as: ops_status_report_schema_count - - action: assert_greater - actual: "{{ ops_status_report_schema_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-report.json" - pattern: "\"volume_id\": \"v1\"" - save_as: ops_status_report_volume_count - - action: assert_greater - actual: "{{ ops_status_report_volume_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-report.json" - pattern: "\"product_revision\": \"product-rev\"" - save_as: ops_status_report_product_revision_count - - action: assert_greater - actual: "{{ ops_status_report_product_revision_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"schema_version\": \"1.0\"" - save_as: ops_status_bundle_schema_count - - action: assert_greater - actual: "{{ ops_status_bundle_schema_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"command\": \"sw-block ops status\"" - save_as: ops_status_bundle_command_count - - action: assert_greater - actual: "{{ ops_status_bundle_command_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"volume_id\": \"v1\"" - save_as: ops_status_bundle_volume_count - - action: assert_greater - actual: "{{ ops_status_bundle_volume_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"product_revision\": \"product-rev\"" - save_as: ops_status_bundle_product_revision_count - - action: assert_greater - actual: "{{ ops_status_bundle_product_revision_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"runner_revision\": \"runner-rev\"" - save_as: ops_status_bundle_runner_revision_count - - action: assert_greater - actual: "{{ ops_status_bundle_runner_revision_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"exit_code\": 0" - save_as: ops_status_bundle_exit_count - - action: assert_greater - actual: "{{ ops_status_bundle_exit_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"status\": \"ok\"" - save_as: ops_status_bundle_status_count - - action: assert_greater - actual: "{{ ops_status_bundle_status_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"name\": \"volume-status-report.json\"" - save_as: ops_status_bundle_report_artifact_count - - action: assert_greater - actual: "{{ ops_status_bundle_report_artifact_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"name\": \"volume-status-summary.txt\"" - save_as: ops_status_bundle_summary_artifact_count - - action: assert_greater - actual: "{{ ops_status_bundle_summary_artifact_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"name\": \"ops-status-bundle.json\"" - save_as: ops_status_bundle_self_artifact_count - - action: assert_greater - actual: "{{ ops_status_bundle_self_artifact_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"unchecked\":" - save_as: ops_status_bundle_unchecked_count - - action: assert_greater - actual: "{{ ops_status_bundle_unchecked_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"collection_errors\":" - save_as: ops_status_bundle_collection_errors_count - - action: assert_greater - actual: "{{ ops_status_bundle_collection_errors_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/ops-status-bundle.json" - pattern: "\"non_claims\":" - save_as: ops_status_bundle_non_claims_count - - action: assert_greater - actual: "{{ ops_status_bundle_non_claims_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-summary.txt" - pattern: "^status: ok$" - save_as: ops_status_summary_ok_count - - action: assert_greater - actual: "{{ ops_status_summary_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-summary.txt" - pattern: "^volume: id=v1 replica=r1 protocols=iscsi frontends=1$" - save_as: ops_status_summary_volume_count - - action: assert_greater - actual: "{{ ops_status_summary_volume_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-summary.txt" - pattern: "^authority: role=primary healthy=true primary_ready=true assigned=true epoch=7 endpoint_version=2$" - save_as: ops_status_summary_authority_count - - action: assert_greater - actual: "{{ ops_status_summary_authority_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-cli/ops-artifacts/volume-status-summary.txt" - pattern: "^issues: none$" - save_as: ops_status_summary_issues_count - - action: assert_greater - actual: "{{ ops_status_summary_issues_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 }}-ops-volume-status-cli" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/operations-volume-status-report-component-gate.yaml b/seaweed-block/testops/scenarios/operations-volume-status-report-component-gate.yaml deleted file mode 100644 index b2746168c1..0000000000 --- a/seaweed-block/testops/scenarios/operations-volume-status-report-component-gate.yaml +++ /dev/null @@ -1,257 +0,0 @@ -# Runner-native operations volume-status report component gate. -# -# Goal: -# Pin the first operations-layer read-only status report contract without -# starting blockmaster/blockvolume, k3s, iSCSI, or NVMe. This proves schema -# shape, frontend identity preservation, unavailable-field handling, and -# residue copy behavior before any operator surface is built around it. -# -# This is an observability/status report. It is not a block/data snapshot. -# -# Expected invocation: -# 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 - -name: operations-volume-status-report-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 }}-ops-volume-status-report && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/ops-artifacts" - - - name: pin_build - actions: - - action: exec - node: m02 - cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/pin_build/git.status" - - - name: report_component_tests - actions: - - action: exec - node: m02 - timeout: 3m - cmd: "cd {{ product_root }} && bash -o pipefail -c 'SW_BLOCK_OPS_STATUS_REPORT_OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample/volume-status-report.json SW_BLOCK_OPS_STATUS_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/ops-artifacts go test -count=1 -json -run \"^(TestBuildVolumeStatusReport_(ComposesExistingStatusSurfaces|JSONKeepsZeroValuedFrontendIdentity|JSONSchemaShapeIsStable|UsesMasterFrontendFacts|MarksUnavailableInputsExplicitly|CopiesInputSlices|WritesSampleReportArtifact)|TestVolumeStatusReportCollector_(CollectsInjectedReadOnlySources|ReturnsPartialReportWithSourceErrors|ReturnedReplicaDurableReadyButFrontendFenced|NilSourcesProduceUnavailableReport)|TestVolumeStatusSummary_(OKReport|UnhealthyReport|SupportingReplicaReadyIsClean|MissingReplicationRoleIsUnhealthy|InconsistentAuthorityReplicationPairIsUnhealthy|InvalidReport)|TestWriteVolumeStatusArtifacts_(WritesJSONAndSummary|PreservesPartialReportOnCollectionError|SplitsJoinedCollectionErrors|RequiresArtifactDir))$\" ./core/ops | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl'" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_ComposesExistingStatusSurfaces\"" - save_as: report_composition_count - - action: assert_greater - actual: "{{ report_composition_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_JSONKeepsZeroValuedFrontendIdentity\"" - save_as: report_zero_identity_count - - action: assert_greater - actual: "{{ report_zero_identity_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_JSONSchemaShapeIsStable\"" - save_as: report_schema_shape_count - - action: assert_greater - actual: "{{ report_schema_shape_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_UsesMasterFrontendFacts\"" - save_as: report_master_frontend_count - - action: assert_greater - actual: "{{ report_master_frontend_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_MarksUnavailableInputsExplicitly\"" - save_as: report_unavailable_count - - action: assert_greater - actual: "{{ report_unavailable_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_CopiesInputSlices\"" - save_as: report_copy_count - - action: assert_greater - actual: "{{ report_copy_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestBuildVolumeStatusReport_WritesSampleReportArtifact\"" - save_as: report_artifact_test_count - - action: assert_greater - actual: "{{ report_artifact_test_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusReportCollector_CollectsInjectedReadOnlySources\"" - save_as: report_collector_success_count - - action: assert_greater - actual: "{{ report_collector_success_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusReportCollector_ReturnsPartialReportWithSourceErrors\"" - save_as: report_collector_partial_count - - action: assert_greater - actual: "{{ report_collector_partial_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusReportCollector_ReturnedReplicaDurableReadyButFrontendFenced\"" - save_as: report_collector_returned_count - - action: assert_greater - actual: "{{ report_collector_returned_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusReportCollector_NilSourcesProduceUnavailableReport\"" - save_as: report_collector_nil_count - - action: assert_greater - actual: "{{ report_collector_nil_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusSummary_SupportingReplicaReadyIsClean\"" - save_as: report_summary_supporting_count - - action: assert_greater - actual: "{{ report_summary_supporting_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestVolumeStatusSummary_InconsistentAuthorityReplicationPairIsUnhealthy\"" - save_as: report_summary_pairing_count - - action: assert_greater - actual: "{{ report_summary_pairing_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestWriteVolumeStatusArtifacts_WritesJSONAndSummary\"" - save_as: report_writer_success_count - - action: assert_greater - actual: "{{ report_writer_success_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestWriteVolumeStatusArtifacts_PreservesPartialReportOnCollectionError\"" - save_as: report_writer_partial_count - - action: assert_greater - actual: "{{ report_writer_partial_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/report-component-go-test.jsonl" - pattern: "\"Action\":\"pass\".*\"Test\":\"TestWriteVolumeStatusArtifacts_SplitsJoinedCollectionErrors\"" - save_as: report_writer_joined_errors_count - - action: assert_greater - actual: "{{ report_writer_joined_errors_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample/volume-status-report.json" - pattern: "\"schema_version\": \"1.0\"" - save_as: report_artifact_schema_count - - action: assert_greater - actual: "{{ report_artifact_schema_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample/volume-status-report.json" - pattern: "\"volume_id\": \"v1\"" - save_as: report_artifact_volume_count - - action: assert_greater - actual: "{{ report_artifact_volume_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample/volume-status-report.json" - pattern: "\"lun\": 0" - save_as: report_artifact_lun_count - - action: assert_greater - actual: "{{ report_artifact_lun_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/sample/volume-status-report.json" - pattern: "\"last_error\": \"unavailable\"" - save_as: report_artifact_unavailable_count - - action: assert_greater - actual: "{{ report_artifact_unavailable_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/ops-artifacts/volume-status-report.json" - pattern: "\"source\": {" - save_as: report_writer_json_count - - action: assert_greater - actual: "{{ report_writer_json_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/ops-artifacts/volume-status-summary.txt" - pattern: "^status: ok$" - save_as: report_summary_status_count - - action: assert_greater - actual: "{{ report_summary_status_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-ops-volume-status-report/ops-artifacts/volume-status-summary.txt" - pattern: "^issues: none$" - save_as: report_summary_issues_count - - action: assert_greater - actual: "{{ report_summary_issues_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 }}-ops-volume-status-report" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/operator-status-api-conformance-chain.yaml b/seaweed-block/testops/scenarios/operator-status-api-conformance-chain.yaml deleted file mode 100644 index d28d3f201e..0000000000 --- a/seaweed-block/testops/scenarios/operator-status-api-conformance-chain.yaml +++ /dev/null @@ -1,91 +0,0 @@ -# Runner-native Phase 40 D4 gate: operator-status API conformance. -# -# Goal: -# Catch the CRD/RBAC failures that previously escaped mock tests and failed -# only under live Kubernetes API validation: -# snake_case status payload drift -# unsupported condition/action enums -# wrong CRD endpoint usage -# RBAC boundary broadening -# delete-safety status regression - -name: operator-status-api-conformance-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: status_api_conformance - actions: - - action: exec - node: m02 - timeout: 5m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance bash scripts/run-phase40-status-api-conformance.sh {{ product_root }}" - - - name: status_api_conformance_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^phase40_status_api_conformance_status=ok$" - save_as: gate_ok_count - - action: assert_greater - actual: "{{ gate_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^casing_drift_gate=ok$" - save_as: casing_ok_count - - action: assert_greater - actual: "{{ casing_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^enum_drift_gate=ok$" - save_as: enum_ok_count - - action: assert_greater - actual: "{{ enum_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^wrong_endpoint_gate=ok$" - save_as: endpoint_ok_count - - action: assert_greater - actual: "{{ endpoint_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^rbac_boundary_gate=ok$" - save_as: rbac_ok_count - - action: assert_greater - actual: "{{ rbac_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^delete_safety_status_gate=ok$" - save_as: delete_safety_ok_count - - action: assert_greater - actual: "{{ delete_safety_ok_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-operator-status-api-conformance/phase40-status-api-conformance-summary.txt" - pattern: "^finalizer_mutation_allowed=false$" - save_as: finalizer_mutation_count - - action: assert_greater - actual: "{{ finalizer_mutation_count }}" - threshold: "0" diff --git a/seaweed-block/testops/scenarios/rebuild-catchup-datapath-chain.yaml b/seaweed-block/testops/scenarios/rebuild-catchup-datapath-chain.yaml deleted file mode 100644 index 6c131edaa8..0000000000 --- a/seaweed-block/testops/scenarios/rebuild-catchup-datapath-chain.yaml +++ /dev/null @@ -1,160 +0,0 @@ -# Runner-native Phase 60 gate: real rebuild/catch-up data-path evidence. - -name: rebuild-catchup-datapath-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: rebuild_catchup_datapath_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath bash scripts/run-phase60-rebuild-catchup-datapath-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^phase60_rebuild_catchup_datapath_status=ok$" - save_as: phase60_ok - - action: assert_greater - actual: "{{ phase60_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^engine_catchup_roundtrip_test=true$" - save_as: engine_catchup - - action: assert_greater - actual: "{{ engine_catchup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^catchup_barrier_confirms_test=true$" - save_as: catchup_barrier - - action: assert_greater - actual: "{{ catchup_barrier }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^dual_lane_rebuild_test=true$" - save_as: dual_lane_rebuild - - action: assert_greater - actual: "{{ dual_lane_rebuild }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^post_close_durable_ack_test=true$" - save_as: durable_ack_test - - action: assert_greater - actual: "{{ durable_ack_test }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^live_write_during_rebuild_test=true$" - save_as: live_write - - action: assert_greater - actual: "{{ live_write }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^same_lba_arbitration_test=true$" - save_as: same_lba - - action: assert_greater - actual: "{{ same_lba }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^start_catchup_observed=true$" - save_as: start_catchup - - action: assert_greater - actual: "{{ start_catchup }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^start_rebuild_observed=true$" - save_as: start_rebuild - - action: assert_greater - actual: "{{ start_rebuild }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^session_closed_completed_observed=true$" - save_as: session_closed - - action: assert_greater - actual: "{{ session_closed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^byte_equal_assertions_passed=true$" - save_as: byte_equal - - action: assert_greater - actual: "{{ byte_equal }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^rebuild_traffic_started=true$" - save_as: rebuild_traffic - - action: assert_greater - actual: "{{ rebuild_traffic }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^catchup_traffic_started=true$" - save_as: catchup_traffic - - action: assert_greater - actual: "{{ catchup_traffic }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-summary.txt" - pattern: "^authority_executor_datapath_callsite=false$" - save_as: executor_not_wired - - action: assert_greater - actual: "{{ executor_not_wired }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-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 }}-phase60-rebuild-catchup-datapath/phase60-rebuild-catchup-datapath-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 }}-phase60-rebuild-catchup-datapath" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/rebuild-planning-close-chain.yaml b/seaweed-block/testops/scenarios/rebuild-planning-close-chain.yaml deleted file mode 100644 index a77198e52b..0000000000 --- a/seaweed-block/testops/scenarios/rebuild-planning-close-chain.yaml +++ /dev/null @@ -1,112 +0,0 @@ -# Runner-native Phase 59 gate: returned-replica rebuild planning close path. - -name: rebuild-planning-close-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: rebuild_planning_close_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close bash scripts/run-phase59-rebuild-planning-close-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^phase59_rebuild_planning_close_status=ok$" - save_as: phase59_ok - - action: assert_greater - actual: "{{ phase59_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_target_owner=target_mutation namespace=sw-block-phase59-rebuild-planning volumes=1 contracts=1 targets_planned=1 targets_existing=0 targets_created=1 invalid_contracts=0 mutation_allowed=true storage_mutation_allowed=false frontend_publication_allowed=false failback_allowed=false$" - save_as: target_owner_created - - action: assert_greater - actual: "{{ target_owner_created }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_target_owner=target_mutation namespace=sw-block-phase59-rebuild-planning volumes=1 contracts=1 targets_planned=1 targets_existing=1 targets_created=0 invalid_contracts=0 mutation_allowed=false storage_mutation_allowed=false frontend_publication_allowed=false failback_allowed=false$" - save_as: target_owner_idempotent - - action: assert_greater - actual: "{{ target_owner_idempotent }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_target_count_after_owner=1$" - save_as: target_count_one - - action: assert_greater - actual: "{{ target_count_one }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_target_status_before_executor=$" - save_as: target_status_empty - - action: assert_greater - actual: "{{ target_status_empty }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^authority_executor=executed namespace=sw-block-phase59-rebuild-planning volumes=1 contracts=1 disabled_contracts=1 blocked_contracts=0 terminal_evidence_required=1 terminal_evidence_missing=0 ack_eligibility_target_missing=0 rebuild_target_missing=0 allowed_mutation_class=rebuild_traffic execution_requested=true execution_policy_enabled=true mutation_attempts=1 ack_eligibility_mutation_attempts=0 rebuild_progress_mutation_attempts=1 mutation_allowed=true storage_mutation_allowed=false$" - save_as: executor_executed - - action: assert_greater - actual: "{{ executor_executed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_status_state_after_executor=planned$" - save_as: rebuild_planned - - action: assert_greater - actual: "{{ rebuild_planned }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^rebuild_traffic_started_after_executor=false$" - save_as: no_traffic - - action: assert_greater - actual: "{{ no_traffic }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^no_frontend_publication_after_executor=true$" - 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 }}-phase59-rebuild-planning-close/phase59-rebuild-planning-close-summary.txt" - pattern: "^swblockvolume_reason_unchanged=candidate_frontier_behind$" - save_as: volume_unchanged - - action: assert_greater - actual: "{{ volume_unchanged }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase59-rebuild-planning-close" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/rebuild-runtime-target-contract-chain.yaml b/seaweed-block/testops/scenarios/rebuild-runtime-target-contract-chain.yaml deleted file mode 100644 index c57fa3b57c..0000000000 --- a/seaweed-block/testops/scenarios/rebuild-runtime-target-contract-chain.yaml +++ /dev/null @@ -1,112 +0,0 @@ -# Runner-native Phase 63 gate: rebuild runtime target addressing contract. - -name: rebuild-runtime-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: rebuild_runtime_target_contract_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract bash scripts/run-phase63-rebuild-runtime-target-contract-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^phase63_rebuild_runtime_target_contract_status=ok$" - save_as: phase63_ok - - action: assert_greater - actual: "{{ phase63_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^runtime_target_fields_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 }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^target_owner_requires_runtime_facts=true$" - save_as: owner_requires_facts - - action: assert_greater - actual: "{{ owner_requires_facts }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^target_owner_missing_runtime_no_target=true$" - save_as: owner_missing_no_target - - action: assert_greater - actual: "{{ owner_missing_no_target }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^authority_executor_missing_runtime_target_blocks=true$" - save_as: executor_missing_blocks - - action: assert_greater - actual: "{{ executor_missing_blocks }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^authority_executor_runtime_request_carries_target_lineage=true$" - save_as: request_lineage - - action: assert_greater - actual: "{{ request_lineage }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^runtime_target_can_drive_http_runtime=true$" - save_as: target_drives_runtime - - action: assert_greater - actual: "{{ target_drives_runtime }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^session_id_inferred=false$" - save_as: no_session_inference - - action: assert_greater - actual: "{{ no_session_inference }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-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 }}-phase63-rebuild-runtime-target-contract/phase63-rebuild-runtime-target-contract-summary.txt" - pattern: "^start_rebuild_called=false$" - save_as: start_rebuild_not_called - - action: assert_greater - actual: "{{ start_rebuild_not_called }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase63-rebuild-runtime-target-contract" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/rebuild-target-owner-rbac-chain.yaml b/seaweed-block/testops/scenarios/rebuild-target-owner-rbac-chain.yaml deleted file mode 100644 index 97ae5d1a51..0000000000 --- a/seaweed-block/testops/scenarios/rebuild-target-owner-rbac-chain.yaml +++ /dev/null @@ -1,96 +0,0 @@ -# Runner-native Phase 58 gate: rebuild-target-owner target-create RBAC boundary. - -name: rebuild-target-owner-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: rebuild_target_owner_rbac_gate - actions: - - action: exec - node: m02 - timeout: 4m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac bash scripts/run-phase58-rebuild-target-owner-rbac-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^phase58_rebuild_target_owner_rbac_status=ok$" - save_as: phase58_rbac_ok - - action: assert_greater - actual: "{{ phase58_rbac_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^owner_create_swblockreplicarebuilds_allowed=yes$" - save_as: owner_create_allowed - - action: assert_greater - actual: "{{ owner_create_allowed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^owner_create_rebuild_target_runtime_allowed=true$" - save_as: owner_runtime_create_allowed - - action: assert_greater - actual: "{{ owner_runtime_create_allowed }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^default_create_rebuild_target_runtime_denied=true$" - save_as: default_runtime_create_denied - - action: assert_greater - actual: "{{ default_runtime_create_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^owner_patch_rebuild_target_runtime_denied=true$" - save_as: owner_runtime_patch_denied - - action: assert_greater - actual: "{{ owner_runtime_patch_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^owner_patch_swblockreplicarebuilds_status_denied=no$" - save_as: owner_target_status_denied - - action: assert_greater - actual: "{{ owner_target_status_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^owner_create_events_denied=no$" - save_as: owner_events_denied - - action: assert_greater - actual: "{{ owner_events_denied }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac/phase58-rebuild-target-owner-rbac-summary.txt" - pattern: "^runtime_rebuild_target_status_state=$" - save_as: target_status_empty - - action: assert_greater - actual: "{{ target_status_empty }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase58-rebuild-target-owner-rbac" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/returned-replica-component-gate.yaml b/seaweed-block/testops/scenarios/returned-replica-component-gate.yaml deleted file mode 100644 index 596bd0116a..0000000000 --- a/seaweed-block/testops/scenarios/returned-replica-component-gate.yaml +++ /dev/null @@ -1,102 +0,0 @@ -# Runner-native returned-replica component gate. -# -# Goal: -# Run fast host/volume component tests that pin returned-replica frontend -# safety semantics before adding expensive RF=2/3 Kubernetes or initiator -# scenarios. -# -# Expected invocation: -# swblock run \ -# -env product_root=/path/to/seaweed_block/on/m02 \ -# -env ssh_key=/path/to/testdev_key/on/controller \ -# testops/scenarios/returned-replica-component-gate.yaml - -name: returned-replica-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 }}-returned-replica-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-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 }}-returned-replica-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/pin_build/git.status" - - - name: returned_replica_component_tests - actions: - - action: exec - node: m02 - timeout: 3m - cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -v ./core/host/volume | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/core-host-volume-go-test.log'" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/core-host-volume-go-test.log" - pattern: "--- PASS: TestG8A_ReturnedSupportingReplica_DoesNotServeFrontendBackend" - save_as: supporting_frontend_fence_count - - action: assert_greater - actual: "{{ supporting_frontend_fence_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/core-host-volume-go-test.log" - pattern: "--- PASS: TestG9B_StatusProjection_ComponentAdapterLifecycle_NotReadyRecoveringReady" - save_as: returned_lifecycle_count - - action: assert_greater - actual: "{{ returned_lifecycle_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/core-host-volume-go-test.log" - pattern: "--- PASS: TestG9B_StatusProjection_ReturnedReplicaCanBeDurableReadyButFrontendNotReady" - save_as: returned_durable_ready_frontend_fenced_count - - action: assert_greater - actual: "{{ returned_durable_ready_frontend_fenced_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-returned-replica-component/core-host-volume-go-test.log" - pattern: "--- PASS: TestG9C_StatusProjection_DualLaneRecoveredReplicaReadyAfterPostCloseAck" - save_as: dual_lane_ready_count - - action: assert_greater - actual: "{{ dual_lane_ready_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 }}-returned-replica-component" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/returned-replica-failback-contract-chain.yaml b/seaweed-block/testops/scenarios/returned-replica-failback-contract-chain.yaml deleted file mode 100644 index 82febeedec..0000000000 --- a/seaweed-block/testops/scenarios/returned-replica-failback-contract-chain.yaml +++ /dev/null @@ -1,96 +0,0 @@ -# Runner-native Phase 74 gate: returned-replica failback is explicit, -# evidence-gated, and still disabled until a real authority owner exists. - -name: returned-replica-failback-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: returned_replica_failback_contract_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract bash scripts/run-phase74-returned-replica-failback-contract-gate.sh {{ product_root }}" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^phase74_returned_replica_failback_contract_status=ok$" - save_as: phase74_ok - - action: assert_greater - actual: "{{ phase74_ok }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^failback_contract_disabled=true$" - save_as: failback_contract_disabled - - action: assert_greater - actual: "{{ failback_contract_disabled }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^failback_allowed_mutation_class=failback$" - save_as: failback_class - - action: assert_greater - actual: "{{ failback_class }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^failback_mutation_allowed=false$" - save_as: failback_no_mutation - - action: assert_greater - actual: "{{ failback_no_mutation }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^frontend_publication_attempts=0$" - 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 }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^ack_eligibility_contract_preserved=true$" - save_as: ack_contract_preserved - - action: assert_greater - actual: "{{ ack_contract_preserved }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract/phase74-returned-replica-failback-contract-summary.txt" - pattern: "^rebuild_contract_preserved=true$" - save_as: rebuild_contract_preserved - - action: assert_greater - actual: "{{ rebuild_contract_preserved }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase74-returned-replica-failback-contract" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/returned-replica-rebuild-contract-chain.yaml b/seaweed-block/testops/scenarios/returned-replica-rebuild-contract-chain.yaml deleted file mode 100644 index 00f3646938..0000000000 --- a/seaweed-block/testops/scenarios/returned-replica-rebuild-contract-chain.yaml +++ /dev/null @@ -1,80 +0,0 @@ -# Runner-native Phase 56 D2 gate: returned-replica rebuild/catch-up contract surfaces. - -name: returned-replica-rebuild-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: rebuild_contract_surface_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract bash scripts/run-phase56-returned-replica-rebuild-contract-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^phase56_returned_replica_rebuild_contract_status=ok$" - save_as: phase56_rebuild_contract_ok - - action: assert_greater - actual: "{{ phase56_rebuild_contract_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^summary_rebuild_preflight_ready=1$" - save_as: rebuild_preflight_ready - - action: assert_greater - actual: "{{ rebuild_preflight_ready }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^summary_rebuild_contract_disabled=1$" - save_as: rebuild_contract_disabled - - action: assert_greater - actual: "{{ rebuild_contract_disabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^summary_rebuild_action_disabled=1$" - save_as: rebuild_action_disabled - - action: assert_greater - actual: "{{ rebuild_action_disabled }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^operator_snapshot_rebuild_contract=ok$" - save_as: snapshot_rebuild_contract - - action: assert_greater - actual: "{{ snapshot_rebuild_contract }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract/phase56-returned-replica-rebuild-contract-summary.txt" - pattern: "^dashboard_rebuild_contract=ok$" - save_as: dashboard_rebuild_contract - - action: assert_greater - actual: "{{ dashboard_rebuild_contract }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase56-returned-replica-rebuild-contract" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/returned-replica-status-schema-rbac-chain.yaml b/seaweed-block/testops/scenarios/returned-replica-status-schema-rbac-chain.yaml deleted file mode 100644 index 94ee5a3b74..0000000000 --- a/seaweed-block/testops/scenarios/returned-replica-status-schema-rbac-chain.yaml +++ /dev/null @@ -1,120 +0,0 @@ -# Runner-native Phase 47 D2 gate: live returned-replica status schema/RBAC. - -name: returned-replica-status-schema-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: status_schema_rbac_gate - actions: - - action: exec - node: m02 - timeout: 4m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac bash scripts/run-phase47-returned-replica-status-schema-rbac-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^phase47_returned_replica_status_schema_rbac_status=ok$" - save_as: phase47_status_gate_ok - - action: assert_greater - actual: "{{ phase47_status_gate_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^valid_returned_replica_status_server_dry_run=true$" - save_as: phase47_valid_status_count - - action: assert_greater - actual: "{{ phase47_valid_status_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^valid_executor_preflight_status_server_dry_run=true$" - save_as: phase50_valid_preflight_count - - action: assert_greater - actual: "{{ phase50_valid_preflight_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^executor_preflight_forbidden_mutation_class_projected=true$" - save_as: phase50_forbidden_mutation_class_count - - action: assert_greater - actual: "{{ phase50_forbidden_mutation_class_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^executor_preflight_ack_eligibility_known_projected=true$" - save_as: phase51_ack_known_projected_count - - action: assert_greater - actual: "{{ phase51_ack_known_projected_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^valid_executor_contract_status_server_dry_run=true$" - save_as: phase52_valid_contract_count - - action: assert_greater - actual: "{{ phase52_valid_contract_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^executor_contract_execution_disabled_projected=true$" - save_as: phase52_execution_disabled_count - - action: assert_greater - actual: "{{ phase52_execution_disabled_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^executor_contract_terminal_evidence_projected=true$" - save_as: phase52_terminal_evidence_count - - action: assert_greater - actual: "{{ phase52_terminal_evidence_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^snake_case_action_rejected=true$" - save_as: phase47_snake_rejected_count - - action: assert_greater - actual: "{{ phase47_snake_rejected_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^unsupported_action_mode_rejected=true$" - save_as: phase47_mode_rejected_count - - action: assert_greater - actual: "{{ phase47_mode_rejected_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac/phase47-returned-replica-status-schema-rbac-summary.txt" - pattern: "^operator_status_main_patch_allowed=no$" - save_as: phase47_main_patch_denied_count - - action: assert_greater - actual: "{{ phase47_main_patch_denied_count }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase47-status-schema-rbac" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/roce-live-io-feasibility-chain.yaml b/seaweed-block/testops/scenarios/roce-live-io-feasibility-chain.yaml deleted file mode 100644 index d456c9eb1c..0000000000 --- a/seaweed-block/testops/scenarios/roce-live-io-feasibility-chain.yaml +++ /dev/null @@ -1,63 +0,0 @@ -name: roce-live-io-feasibility-chain -timeout: 15m - -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: preflight - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility && cd {{ product_root }} && bash scripts/run-phase104-roce-live-io-feasibility-gate.sh {{ product_root }}" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility/gate" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility/gate/phase104-roce-live-io-feasibility-summary.txt" - pattern: "^phase104_roce_live_io_status=ok$" - save_as: phase104_ok - - action: assert_greater - actual: "{{ phase104_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility/gate/phase104-roce-live-io-feasibility-summary.txt" - pattern: "^target_nvme_rdma_supported=false$" - save_as: rdma_unsupported - - action: assert_greater - actual: "{{ rdma_unsupported }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility/gate/phase104-roce-live-io-feasibility-summary.txt" - pattern: "^phase104_roce_live_io_result=blocked_target_transport_unsupported$" - save_as: blocked_unsupported - - action: assert_greater - actual: "{{ blocked_unsupported }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility/gate/phase104-roce-live-io-feasibility-summary.txt" - pattern: "^roce_claim_allowed=false$" - save_as: no_roce_claim - - action: assert_greater - actual: "{{ no_roce_claim }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase104-roce-feasibility" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/runtime-terminal-evidence-chain.yaml b/seaweed-block/testops/scenarios/runtime-terminal-evidence-chain.yaml deleted file mode 100644 index 3c523736bc..0000000000 --- a/seaweed-block/testops/scenarios/runtime-terminal-evidence-chain.yaml +++ /dev/null @@ -1,80 +0,0 @@ -# Runner-native Phase 65 gate: runtime terminal evidence. - -name: runtime-terminal-evidence-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: runtime_terminal_evidence_gate - actions: - - action: exec - node: m02 - timeout: 7m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence bash scripts/run-phase65-runtime-terminal-evidence-gate.sh {{ product_root }}" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^phase65_runtime_terminal_evidence_status=ok$" - save_as: phase65_ok - - action: assert_greater - actual: "{{ phase65_ok }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^runtime_terminal_status_recorded=true$" - save_as: terminal_recorded - - action: assert_greater - actual: "{{ terminal_recorded }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^runtime_endpoint_terminal_caught_up=true$" - save_as: endpoint_caught_up - - action: assert_greater - actual: "{{ endpoint_caught_up }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^runtime_endpoint_terminal_does_not_restart=true$" - save_as: no_restart - - action: assert_greater - actual: "{{ no_restart }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^authority_executor_running_to_caught_up=true$" - save_as: executor_caught_up - - action: assert_greater - actual: "{{ executor_caught_up }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase65-runtime-terminal-evidence/phase65-runtime-terminal-evidence-summary.txt" - pattern: "^frontend_publication_allowed=false$" - 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 }}-phase65-runtime-terminal-evidence" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/same-node-alpha-attach-chain.yaml b/seaweed-block/testops/scenarios/same-node-alpha-attach-chain.yaml deleted file mode 100644 index 70e9a70e2c..0000000000 --- a/seaweed-block/testops/scenarios/same-node-alpha-attach-chain.yaml +++ /dev/null @@ -1,234 +0,0 @@ -# Runner-native same-node alpha attach chain. -# -# Goal: -# Prove the documented alpha placement model: generated RF=1 iSCSI -# blockvolume and writer/reader app pods are pinned to the same selected -# Kubernetes node, attach through the normal CSI path, and inventory explains -# the PVC -> blockvolume node -> loopback frontend/support-bundle evidence. -# -# Expected invocation: -# swblock run \ -# -env product_root=/path/to/seaweed_block/on/m02 \ -# -env ssh_key=/path/to/testdev_key/on/controller \ -# testops/scenarios/same-node-alpha-attach-chain.yaml - -name: same-node-alpha-attach-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 }}-same-node-attach && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo" - - 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 }}-same-node-attach/preflight.txt 2>&1" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/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 }}-same-node-attach/pin_build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/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 }}-same-node-attach/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: reader_verified_with_live_inventory - actions: - - action: exec - node: m02 - timeout: 10m - cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/pin_build/alpha-images.env; set +a; set +e; 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 }}-same-node-attach/demo/controlled-stop.exit_code; test \"$rc\" -eq 44'" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/run.log" - pattern: "\\[app-demo\\] controlled stop after reader verified" - save_as: reader_verified_stop_count - - action: assert_greater - actual: "{{ reader_verified_stop_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/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 }}-same-node-attach/demo/reader.log" - pattern: "\\[app-reader\\] verified persisted /data/demo.bin" - save_as: reader_checksum_count - - action: assert_greater - actual: "{{ reader_checksum_count }}" - threshold: "0" - - - name: same_node_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/run.log" - pattern: "app_node=" - save_as: app_node_logged_count - - action: assert_greater - actual: "{{ app_node_logged_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/run.log" - pattern: "pin_app_node=1" - save_as: app_node_pin_count - - action: assert_greater - actual: "{{ app_node_pin_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/demo-app.rendered.yaml" - pattern: "nodeSelector:" - save_as: writer_node_selector_count - - action: assert_greater - actual: "{{ writer_node_selector_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/demo-app-reader.rendered.yaml" - pattern: "nodeSelector:" - save_as: reader_node_selector_count - - action: assert_greater - actual: "{{ reader_node_selector_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/generated-blockvolume.yaml" - pattern: "kubernetes.io/hostname:" - save_as: blockvolume_node_selector_count - - action: assert_greater - actual: "{{ blockvolume_node_selector_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/generated-blockvolume.yaml" - pattern: "--iscsi-listen=127.0.0.1:" - save_as: loopback_frontend_count - - action: assert_greater - actual: "{{ loopback_frontend_count }}" - threshold: "0" - - action: exec - node: m02 - cmd: "APP_NODE=$(sed -n 's/^.*] app_node=//p' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/run.log | tail -1); test -n \"$APP_NODE\"; grep -q \"node=${APP_NODE}\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/ops-inventory-reader-verified/volume-inventory-summary.txt" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/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 }}-same-node-attach/demo/ops-inventory-reader-verified/volume-inventory-summary.txt" - pattern: "frontend=127.0.0.1:" - save_as: inventory_frontend_count - - action: assert_greater - actual: "{{ inventory_frontend_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/demo/ops-inventory-reader-verified/volume-inventory-summary.txt" - pattern: "support_bundle=volumes/" - save_as: inventory_support_bundle_count - - action: assert_greater - actual: "{{ inventory_support_bundle_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-attach/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: "0" - - - 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 }}-same-node-attach/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 }}-same-node-attach" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/same-node-alpha-attach-negative-chain.yaml b/seaweed-block/testops/scenarios/same-node-alpha-attach-negative-chain.yaml deleted file mode 100644 index 86891180f5..0000000000 --- a/seaweed-block/testops/scenarios/same-node-alpha-attach-negative-chain.yaml +++ /dev/null @@ -1,173 +0,0 @@ -# Runner-native negative fixture for same-node alpha attach. -# -# Goal: -# Prove unsupported cross-node loopback placement fails with an actionable -# bundle instead of a writer/attach timeout. The fixture deliberately renders -# the app pod to a different node name than the generated blockvolume node. - -name: same-node-alpha-attach-negative-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 }}-same-node-negative && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo" - - 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 }}-same-node-negative/preflight.txt 2>&1" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/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 }}-same-node-negative/pin_build" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/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 }}-same-node-negative/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: unsupported_cross_node_loopback - actions: - - action: exec - node: m02 - timeout: 8m - cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_APP_NODE_NAME=sw-block-not-the-blockvolume-node bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/exit_code.txt; test \"$rc\" -eq 45'" - env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/run.log" - pattern: "unsupported cross-node loopback attach" - save_as: unsupported_log_count - - action: assert_greater - actual: "{{ unsupported_log_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/unsupported-cross-node-loopback-attach.txt" - pattern: "^issue=unsupported_cross_node_loopback_attach$" - save_as: issue_class_count - - action: assert_greater - actual: "{{ issue_class_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/unsupported-cross-node-loopback-attach.txt" - pattern: "^app_node=sw-block-not-the-blockvolume-node$" - save_as: issue_app_node_count - - action: assert_greater - actual: "{{ issue_app_node_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/unsupported-cross-node-loopback-attach.txt" - pattern: "^blockvolume_node=" - save_as: issue_blockvolume_node_count - - action: assert_greater - actual: "{{ issue_blockvolume_node_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/unsupported-cross-node-loopback-attach.txt" - pattern: "^frontend=127.0.0.1:" - save_as: issue_frontend_count - - action: assert_greater - actual: "{{ issue_frontend_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/unsupported-cross-node-loopback-attach.txt" - pattern: "reason=loopback frontend requires app pod and blockvolume on the same node" - save_as: issue_reason_count - - action: assert_greater - actual: "{{ issue_reason_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-same-node-negative/demo/ops-inventory-unsupported-placement/volume-inventory-summary.txt" - pattern: "pvc=sw-block-demo-pvc" - save_as: inventory_pvc_count - - action: assert_greater - actual: "{{ inventory_pvc_count }}" - threshold: "0" - - - 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 }}-same-node-negative/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 }}-same-node-negative" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-baseline-chain.yaml b/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-baseline-chain.yaml index 331052ff46..7d73865b79 100644 --- a/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-baseline-chain.yaml +++ b/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-baseline-chain.yaml @@ -10,44 +10,48 @@ timeout: 28m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 }}-stage2-iscsi-alua-multipath && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/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.*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 }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath/preflight.txt 2>&1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/preflight.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/preflight.txt" pattern: "summary status=PASS" save_as: preflight_count - action: assert_greater @@ -57,11 +61,11 @@ phases: - name: host_multipath_prereq actions: - action: exec - node: m02 - cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath; { 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; command -v sg_inq >/dev/null && echo command_sg_inq=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; test -d /run/udev && echo udev_run=present; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; sudo multipath -ll > \"$B/multipath-prereq.multipath-ll.txt\" 2>&1 || true; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1" + node: node-a + cmd: "set -e; B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath; { 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; command -v sg_inq >/dev/null && echo command_sg_inq=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; test -d /run/udev && echo udev_run=present; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; sudo multipath -ll > \"$B/multipath-prereq.multipath-ll.txt\" 2>&1 || true; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/multipath-prereq.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/multipath-prereq.txt" pattern: "multipath_prereq=pass" save_as: multipath_prereq_count - action: assert_greater @@ -71,22 +75,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 }}-stage2-iscsi-alua-multipath/pin_build" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath/pin_build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build/alpha-images.env" pattern: "SW_BLOCK_CSI_IMAGE_ID=" save_as: sw_block_csi_image_id_count - action: assert_greater @@ -96,11 +100,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-writer-hold.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml" + node: node-a + cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc-writer-hold.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml" pattern: "replicationFactor: \"3\"" save_as: rf3_manifest_count - action: assert_greater @@ -110,139 +114,139 @@ phases: - name: stage2_multipath_baseline actions: - action: exec - node: m02 + node: node-a timeout: 16m - cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml SW_BLOCK_STAGE2_MULTIPATH=1 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 }}-stage2-iscsi-alua-multipath 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 }}-stage2-iscsi-alua-multipath/demo/exit_code.txt; test \"$rc\" -eq 44'" + cmd: "cd {{ product_root }} && bash -c 'set -a; source {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo SW_BLOCK_DEMO_APP_MANIFEST={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/demo-app-rf3.yaml SW_BLOCK_STAGE2_MULTIPATH=1 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 }}-stage2-iscsi-alua-multipath SW_BLOCK_DEMO_STOP_AFTER=writer-verified bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/exit_code.txt; test \"$rc\" -eq 44'" - action: exec - node: m02 - cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; { echo transparent_failover_claimed=false; echo pod_recreate_path_used_for_baseline=true; echo next_required_gate=mounted_writer_primary_failure_without_pod_recreate; } > \"$B/stage2-claim-boundary.txt\"" + node: node-a + cmd: "B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; { echo transparent_failover_claimed=false; echo pod_recreate_path_used_for_baseline=true; echo next_required_gate=mounted_writer_primary_failure_without_pod_recreate; } > \"$B/stage2-claim-boundary.txt\"" - action: exec - node: m02 - cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; echo bounded_waits=writer_mounted_baseline > \"$B/bounded-waits.txt\"; echo close_gate_requires=post_failure_mounted_io_without_pod_recreate >> \"$B/bounded-waits.txt\"" + node: node-a + cmd: "B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; echo bounded_waits=writer_mounted_baseline > \"$B/bounded-waits.txt\"; echo close_gate_requires=post_failure_mounted_io_without_pod_recreate >> \"$B/bounded-waits.txt\"" - name: stage2_wiring_asserts actions: - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/run.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/run.log" pattern: "stage2_multipath=1" save_as: stage2_log_count - action: assert_greater actual: "{{ stage2_log_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/csi-controller.rendered.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/csi-controller.rendered.yaml" pattern: "--stage2-multipath" save_as: csi_controller_stage2_count - action: assert_greater actual: "{{ csi_controller_stage2_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/csi-node.rendered.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/csi-node.rendered.yaml" pattern: "--stage2-multipath" save_as: csi_node_stage2_count - action: assert_greater actual: "{{ csi_node_stage2_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" pattern: "--replica-id=r1" save_as: r1_count - action: assert_greater actual: "{{ r1_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" pattern: "--replica-id=r2" save_as: r2_count - action: assert_greater actual: "{{ r2_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/generated-blockvolume.yaml" pattern: "--replica-id=r3" save_as: r3_count - action: assert_greater actual: "{{ r3_count }}" threshold: "0" - action: exec - node: m02 - cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; grep -o -- '--iscsi-iqn=[^\" ]*' \"$B/generated-blockvolume.yaml\" | sort -u > \"$B/unique-iscsi-iqns.txt\"; test \"$(wc -l < \"$B/unique-iscsi-iqns.txt\")\" -eq 1" + node: node-a + cmd: "B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo; grep -o -- '--iscsi-iqn=[^\" ]*' \"$B/generated-blockvolume.yaml\" | sort -u > \"$B/unique-iscsi-iqns.txt\"; test \"$(wc -l < \"$B/unique-iscsi-iqns.txt\")\" -eq 1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" pattern: "multipath=true" save_as: node_multipath_count - action: assert_greater actual: "{{ node_multipath_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" pattern: "staged transport=iscsi .* portals=.*127.0.0.1:3260" save_as: node_multipath_portal_3260_count - action: assert_greater actual: "{{ node_multipath_portal_3260_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" pattern: "staged transport=iscsi .* portals=.*127.0.0.1:3261" save_as: node_multipath_portal_3261_count - action: assert_greater actual: "{{ node_multipath_portal_3261_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/blockcsi-node.log" pattern: "staged transport=iscsi .* portals=.*127.0.0.1:3262" save_as: node_multipath_portal_3262_count - action: assert_greater actual: "{{ node_multipath_portal_3262_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/writer.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath/demo/controlled-stop-writer-verified.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath/demo/sg-rtpg.writer-mounted.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/sg-rtpg.writer-mounted.txt" pattern: "asymmetric access state" save_as: rtpg_state_count - action: assert_greater actual: "{{ rtpg_state_count }}" threshold: "0" - action: exec - node: m02 - cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/multipath.writer-mounted.txt" + node: node-a + cmd: "test -s {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/multipath.writer-mounted.txt" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/iscsi-sessions.writer-mounted.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/iscsi-sessions.writer-mounted.txt" pattern: "iqn.2026-05.io.seaweedfs" save_as: writer_mounted_session_count - action: assert_greater actual: "{{ writer_mounted_session_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/stage2-claim-boundary.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath/demo/stage2-claim-boundary.txt" pattern: "transparent_failover_claimed=false" save_as: no_false_stage2_claim_count - action: assert_greater @@ -253,33 +257,34 @@ phases: 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 }}-stage2-iscsi-alua-multipath/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 }}-stage2-iscsi-alua-multipath/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: "for map in $(sudo multipath -ll 2>/dev/null | awk '/^[^[:space:]][^ ]*[[:space:]]+\\(.*\\)/{print $1}'); do if sudo multipath -ll \"$map\" 2>/dev/null | grep -q 'io.seaweedfs'; then sudo multipath -f \"$map\" || true; fi; done; sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath; 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 + 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: exec - node: m02 + node: node-a cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath" - action: exec - node: m02 + node: node-a cmd: "! sudo multipath -ll 2>/dev/null | grep -q 'io.seaweedfs'" - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-failover-chain.yaml b/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-failover-chain.yaml index ebac0cf65d..c6170022da 100644 --- a/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-failover-chain.yaml +++ b/seaweed-block/testops/scenarios/stage2-iscsi-alua-multipath-failover-chain.yaml @@ -9,44 +9,48 @@ timeout: 32m 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= + node_host: "" # address of the test node; set with -env node_host=
+ node_user: "" # ssh user on the test node; set with -env node_user= + artifact_root: "" # shared artifact directory; set with -env artifact_root= 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 }}-stage2-iscsi-alua-multipath-failover && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/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 }}-stage2-iscsi-alua-multipath-failover && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover" + 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.*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 }}-stage2-iscsi-alua-multipath-failover/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 }}-stage2-iscsi-alua-multipath-failover/preflight.txt 2>&1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/preflight.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/preflight.txt" pattern: "summary status=PASS" save_as: preflight_count - action: assert_greater @@ -56,11 +60,11 @@ phases: - name: host_multipath_prereq actions: - action: exec - node: m02 - cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-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; command -v sg_inq >/dev/null && echo command_sg_inq=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; test -d /run/udev && echo udev_run=present; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; sudo multipath -ll > \"$B/multipath-prereq.multipath-ll.txt\" 2>&1 || true; echo multipath_enabled=true; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1" + node: node-a + cmd: "set -e; B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-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; command -v sg_inq >/dev/null && echo command_sg_inq=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; test -d /run/udev && echo udev_run=present; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; sudo multipath -ll > \"$B/multipath-prereq.multipath-ll.txt\" 2>&1 || true; echo multipath_enabled=true; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/multipath-prereq.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/multipath-prereq.txt" pattern: "multipath_prereq=pass" save_as: multipath_prereq_count - action: assert_greater @@ -70,22 +74,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 }}-stage2-iscsi-alua-multipath-failover/pin_build" + env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/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 }}-stage2-iscsi-alua-multipath-failover/pin_build/alpha-images.env" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build/alpha-images.env" pattern: "SW_BLOCK_CSI_IMAGE_ID=" save_as: sw_block_csi_image_id_count - action: assert_greater @@ -95,11 +99,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-writer-hold.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml" + node: node-a + cmd: "cd {{ product_root }} && sed 's/replicationFactor: \"1\"/replicationFactor: \"3\"/' deploy/k8s/alpha/demo-app-pvc-writer-hold.yaml > {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml" pattern: "replicationFactor: \"3\"" save_as: rf3_manifest_count - action: assert_greater @@ -109,21 +113,21 @@ phases: - name: mounted_writer_prepare actions: - action: exec - node: m02 + node: node-a timeout: 16m - cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo SW_BLOCK_DEMO_APP_MANIFEST=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml SW_BLOCK_STAGE2_MULTIPATH=1 SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_OPS_INVENTORY_CLAIM_PROFILE=stage2-iscsi-alua-multipath SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath-failover SW_BLOCK_DEMO_STOP_AFTER=writer-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 }}-stage2-iscsi-alua-multipath-failover/demo/exit_code.txt; test \"$rc\" -eq 44'" + cmd: "cd {{ product_root }} && bash -c 'set -a; source {{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo SW_BLOCK_DEMO_APP_MANIFEST={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/demo/demo-app-rf3.yaml SW_BLOCK_STAGE2_MULTIPATH=1 SW_BLOCK_ALPHA_LOGICAL_SERVERS=3 SW_BLOCK_ALPHA_EXPECTED_SLOTS_PER_VOLUME=3 SW_BLOCK_ALPHA_REPLICATION_ACK=sync-quorum SW_BLOCK_OPS_INVENTORY_CLAIM_PROFILE=stage2-iscsi-alua-multipath SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath-failover SW_BLOCK_DEMO_STOP_AFTER=writer-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 }}-stage2-iscsi-alua-multipath-failover/demo/exit_code.txt; test \"$rc\" -eq 44'" - action: exec - node: m02 - cmd: "B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover; cp \"$B/demo/multipath.writer-mounted.txt\" \"$B/failover/multipath-before.txt\"; cp \"$B/demo/sg-rtpg.writer-mounted.txt\" \"$B/failover/sg-rtpg.before.txt\"; cp \"$B/demo/iscsi-sessions.writer-mounted.txt\" \"$B/failover/iscsi-sessions.before.txt\"; { echo pod_recreate_used=false; echo transparent_failover_claimed=pending; echo claim_profile=stage2-iscsi-alua-multipath; } > \"$B/failover/stage2-failover-boundary.txt\"" + node: node-a + cmd: "B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover; cp \"$B/demo/multipath.writer-mounted.txt\" \"$B/failover/multipath-before.txt\"; cp \"$B/demo/sg-rtpg.writer-mounted.txt\" \"$B/failover/sg-rtpg.before.txt\"; cp \"$B/demo/iscsi-sessions.writer-mounted.txt\" \"$B/failover/iscsi-sessions.before.txt\"; { echo pod_recreate_used=false; echo transparent_failover_claimed=pending; echo claim_profile=stage2-iscsi-alua-multipath; } > \"$B/failover/stage2-failover-boundary.txt\"" - name: mounted_primary_failure actions: - action: exec - node: m02 + node: node-a timeout: 10m cmd: | cd {{ product_root }} && bash -c 'set -euo pipefail - B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover + B={{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover D="$B/demo" O="$B/failover" SUMMARY="$D/ops-inventory-writer-verified/volume-inventory-summary.txt" @@ -210,72 +214,72 @@ phases: - name: stage2_failover_asserts actions: - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" pattern: "^pod_recreate_used=false$" save_as: no_pod_recreate_count - action: assert_greater actual: "{{ no_pod_recreate_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" pattern: "^data_check_after_failover=mounted_workload_checksum_passed$" save_as: mounted_checksum_count - action: assert_greater actual: "{{ mounted_checksum_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/workload-after-failover.log" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/workload-after-failover.log" pattern: "mounted_workload_checksum_passed" save_as: workload_pass_count - action: assert_greater actual: "{{ workload_pass_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/multipath-before.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/multipath-before.txt" pattern: "hwhandler='1 alua'" save_as: multipath_before_alua_count - action: assert_greater actual: "{{ multipath_before_alua_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/sg-rtpg.before.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/sg-rtpg.before.txt" pattern: "asymmetric access state" save_as: rtpg_before_count - action: assert_greater actual: "{{ rtpg_before_count }}" threshold: "1" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/sg-rtpg.after.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/sg-rtpg.after.txt" pattern: "asymmetric access state" save_as: rtpg_after_count - action: assert_greater actual: "{{ rtpg_after_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" pattern: "^old_primary_stale_io_success_count=0$" save_as: stale_primary_count - action: assert_greater actual: "{{ stale_primary_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/primary-failure.txt" pattern: "^post_failure_primary_count=1$" save_as: one_primary_count - action: assert_greater actual: "{{ one_primary_count }}" threshold: "0" - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/bounded-waits.txt" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover/failover/bounded-waits.txt" pattern: "^bounded_waits=pass$" save_as: bounded_waits_count - action: assert_greater @@ -286,33 +290,34 @@ 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 }}-stage2-iscsi-alua-multipath-failover/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 }}-stage2-iscsi-alua-multipath-failover/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: "for map in $(sudo multipath -ll 2>/dev/null | awk '/^[^[:space:]][^ ]*[[:space:]]+\\(.*\\)/{print $1}'); do if sudo multipath -ll \"$map\" 2>/dev/null | grep -q 'io.seaweedfs'; then sudo multipath -f \"$map\" || true; fi; done; sudo rm -rf -- /var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath-failover; 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 + 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: exec - node: m02 + node: node-a cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-stage2-iscsi-alua-multipath-failover" - action: exec - node: m02 + node: node-a cmd: "! sudo multipath -ll 2>/dev/null | grep -q 'io.seaweedfs'" - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover" + node: node-a + path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-stage2-iscsi-alua-multipath-failover" name: "remote-phases" ignore_error: true diff --git a/seaweed-block/testops/scenarios/status-endpoint-unreachable-live-chain.yaml b/seaweed-block/testops/scenarios/status-endpoint-unreachable-live-chain.yaml deleted file mode 100644 index f4fff2d9b1..0000000000 --- a/seaweed-block/testops/scenarios/status-endpoint-unreachable-live-chain.yaml +++ /dev/null @@ -1,356 +0,0 @@ -# Phase 34 D2 gate: live status endpoint unreachable. -# -# Goal: -# Upgrade the Phase 33 replay-only unreachable-status check into a live -# injection. The blockvolume process and iSCSI data path stay alive; only the -# replica status endpoint is rejected. Correct behavior is Unknown / -# status_endpoint_unreachable, not Blocked and not Ready=True. - -name: status-endpoint-unreachable-live-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 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 }}-status-endpoint-unreachable-live && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/fault /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/live-report /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/dashboard /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/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_install - actions: - - action: exec - node: m02 - timeout: 6m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/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 }}-status-endpoint-unreachable-live/values/generate.stdout.txt" - pattern: "helm_values_status=ok" - save_as: generator_ok_count - - action: assert_greater - actual: "{{ generator_ok_count }}" - threshold: "0" - - 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 }}-status-endpoint-unreachable-live/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/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 }}-status-endpoint-unreachable-live/install/helm-install.txt" - pattern: "STATUS: deployed" - save_as: helm_deployed_count - - action: assert_greater - actual: "{{ helm_deployed_count }}" - threshold: "0" - - - name: first_volume_ready_before_fault - 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 }}-status-endpoint-unreachable-live/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 }}-status-endpoint-unreachable-live/values/values.day1.yaml" - env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin/sw-block" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/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: exec - node: m02 - timeout: 1m - cmd: | - python3 - <<'PY' - import json - from pathlib import Path - root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/basic-app") - snap = json.loads((root / "status/report/operator-snapshot.json").read_text()) - vols = snap.get("volumes") or [] - if len(vols) != 1: - raise SystemExit(f"expected one volume before fault, got {len(vols)}") - status = vols[0].get("status") or {} - if status.get("status") != "ready" or status.get("reason_code") != "first_volume_verified": - raise SystemExit(f"volume was not Ready before fault: {status}") - cluster = snap.get("cluster") or {} - if cluster.get("ready_volume_count") != 1: - raise SystemExit(f"expected ready_volume_count=1 before fault: {cluster}") - PY - - - name: block_status_endpoint - actions: - - action: exec - node: m02 - timeout: 2m - cmd: | - set -eu - OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/fault - mkdir -p "$OUT" - python3 - <<'PY' > "$OUT/status-target.env" - import json - from pathlib import Path - root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/basic-app/status") - doc = json.loads((root / "inventory/volume-inventory.json").read_text()) - vols = doc.get("volumes") or [] - if len(vols) != 1: - raise SystemExit(f"expected one volume, got {len(vols)}") - replicas = vols[0].get("replicas") or [] - if len(replicas) != 1: - raise SystemExit(f"expected one replica, got {len(replicas)}") - status_addr = replicas[0].get("status_address") or replicas[0].get("status_addr") or "" - if ":" not in status_addr: - raise SystemExit(f"bad status_addr={status_addr!r}") - host, port = status_addr.rsplit(":", 1) - frontend = replicas[0].get("frontend_address") or replicas[0].get("frontend_addr") or "" - if frontend.endswith(":3260") and frontend.rsplit(":", 1)[0] == host and port == "3260": - raise SystemExit("refusing to block iSCSI data port 3260") - print(f"status_addr={status_addr}") - print(f"status_host={host}") - print(f"status_port={port}") - print(f"volume_id={vols[0].get('volume_id','')}") - print(f"replica_id={replicas[0].get('replica_id','')}") - print(f"frontend_addr={frontend}") - PY - . "$OUT/status-target.env" - test "$status_port" != "3260" - echo "rule=iptables -I INPUT -p tcp --dport ${status_port} -j REJECT --reject-with tcp-reset" > "$OUT/iptables-rule.txt" - run_remote() { - if [ "$status_host" = "192.168.1.184" ] || [ "$status_host" = "127.0.0.1" ]; then - bash -s - else - ssh -i /opt/work/testdev_key -o StrictHostKeyChecking=no "testdev@${status_host}" bash -s - fi - } - run_remote > "$OUT/block-status-port.log" 2>&1 < "$OUT/unexpected-status-response.txt" 2>"$OUT/status-curl-after-block.stderr.txt"; then - echo "status endpoint still reachable after iptables block" >&2 - exit 1 - fi - echo "status_endpoint_blocked=true" > "$OUT/block-summary.txt" - cat "$OUT/status-target.env" >> "$OUT/block-summary.txt" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: collect_live_unreachable_report - actions: - - action: exec - node: m02 - timeout: 4m - cmd: | - set -eu - ROOT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live - OUT="$ROOT/live-report" - 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/blockmaster-port.txt" - kubectl -n kube-system port-forward deploy/sw-blockmaster "${port}:9333" > "$OUT/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 }}-status-endpoint-unreachable-live/bin/sw-block ops report --namespace default --master "127.0.0.1:${port}" --out "$OUT/report" --evidence-out "$OUT/evidence" --timeout 30s > "$OUT/report.stdout.txt" 2> "$OUT/report.stderr.txt" - volume_id=$(sed -n 's/^volume_id=//p' "$ROOT/fault/status-target.env" | head -1) - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin/sw-block ops explain volume --from-bundle "$OUT/report" "$volume_id" > "$OUT/explain.txt" 2> "$OUT/explain.stderr.txt" - test -s "$OUT/report/operator-snapshot.json" - test -s "$OUT/report/summary.txt" - test -s "$OUT/explain.txt" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - name: unreachable_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/fault/block-summary.txt" - pattern: "^status_endpoint_blocked=true$" - save_as: status_blocked_count - - action: assert_greater - actual: "{{ status_blocked_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/live-report/report/summary.txt" - pattern: "status=unknown reason=status_endpoint_unreachable" - save_as: summary_unknown_count - - action: assert_greater - actual: "{{ summary_unknown_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/live-report/explain.txt" - pattern: "managed_volume_condition Ready status=Unknown reason=status_endpoint_unreachable" - save_as: explain_unknown_count - - action: assert_greater - actual: "{{ explain_unknown_count }}" - threshold: "0" - - action: exec - node: m02 - timeout: 2m - cmd: | - set -eu - ROOT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live - python3 - <<'PY' - import json - from pathlib import Path - snap = json.loads(Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/live-report/report/operator-snapshot.json").read_text()) - if snap.get("read_only") is not True: - raise SystemExit("operator snapshot is not read-only") - if (snap.get("mutation") or {}).get("mutation_allowed") is not False: - raise SystemExit("mutation_allowed is not false") - vols = snap.get("volumes") or [] - if len(vols) != 1: - raise SystemExit(f"expected one volume, got {len(vols)}") - status = vols[0].get("status") or {} - if status.get("status") != "unknown" or status.get("reason_code") != "status_endpoint_unreachable": - raise SystemExit(f"expected unknown/status_endpoint_unreachable, got {status}") - for condition in status.get("conditions") or []: - if condition.get("type") == "Ready" and condition.get("status") == "True": - raise SystemExit("false Ready=True while status endpoint is unreachable") - if condition.get("type") == "Blocked" and condition.get("status") == "True": - raise SystemExit("false Blocked=True for pure status endpoint unreachable") - cluster = snap.get("cluster") or {} - if cluster.get("ready_volume_count", 0) != 0: - raise SystemExit(f"ready_volume_count should be 0 during unreachable evidence: {cluster}") - PY - port=$(python3 - <<'PY' - import socket - s = socket.socket() - s.bind(("127.0.0.1", 0)) - print(s.getsockname()[1]) - s.close() - PY - ) - echo "$port" > "$ROOT/dashboard/port.txt" - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/bin/sw-block ops dashboard --from-bundle "$ROOT/live-report/report" --listen "127.0.0.1:${port}" > "$ROOT/dashboard/stdout.txt" 2> "$ROOT/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 "$ROOT/dashboard/operator-snapshot.json" -w '%{http_code}' "http://127.0.0.1:${port}/operator-snapshot.json" || true) - test "$code" = "200" && break - sleep 0.2 - done - python3 - <<'PY' - import json - from pathlib import Path - snap = json.loads(Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/dashboard/operator-snapshot.json").read_text()) - vols = snap.get("volumes") or [] - if len(vols) != 1: - raise SystemExit("dashboard snapshot did not preserve one volume") - status = vols[0].get("status") or {} - if status.get("status") != "unknown" or status.get("reason_code") != "status_endpoint_unreachable": - raise SystemExit(f"dashboard did not preserve unreachable status: {status}") - for condition in status.get("conditions") or []: - if condition.get("type") == "Ready" and condition.get("status") == "True": - raise SystemExit("dashboard false Ready=True") - if condition.get("type") == "Blocked" and condition.get("status") == "True": - raise SystemExit("dashboard false Blocked=True") - PY - - - name: restore_status_endpoint - always: true - actions: - - action: exec - node: m02 - timeout: 2m - cmd: | - set -eu - OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable-live/fault - if [ ! -f "$OUT/status-target.env" ]; then - exit 0 - fi - . "$OUT/status-target.env" - if [ -z "${status_host:-}" ] || [ -z "${status_port:-}" ]; then - echo "status endpoint was not blocked; no restore needed" > "$OUT/restore-summary.txt" - exit 0 - fi - run_remote() { - if [ "$status_host" = "192.168.1.184" ] || [ "$status_host" = "127.0.0.1" ]; then - bash -s - else - ssh -i /opt/work/testdev_key -o StrictHostKeyChecking=no "testdev@${status_host}" bash -s - fi - } - run_remote > "$OUT/restore-status-port.log" 2>&1 </dev/null; do :; done - ! sudo -n iptables -S INPUT | grep -- "--dport $status_port" - REMOTE - echo "status_endpoint_restored=true" > "$OUT/restore-summary.txt" - env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml" - - - 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 }}-status-endpoint-unreachable-live/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 }}-status-endpoint-unreachable-live/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 }}-status-endpoint-unreachable-live/cleanup/verify/cleanup-summary.txt" - pattern: "^cleanup_status=ok$" - save_as: cleanup_ok_count - - action: assert_greater - actual: "{{ cleanup_ok_count }}" - threshold: "0" diff --git a/seaweed-block/testops/scenarios/status-endpoint-unreachable-replay-chain.yaml b/seaweed-block/testops/scenarios/status-endpoint-unreachable-replay-chain.yaml deleted file mode 100644 index 084e112471..0000000000 --- a/seaweed-block/testops/scenarios/status-endpoint-unreachable-replay-chain.yaml +++ /dev/null @@ -1,200 +0,0 @@ -# Phase 33 F2 gate: status endpoint unreachable replay. -# -# Goal: -# Prove a bundle that cannot reach replica status evidence is rendered as -# Unknown with reason=status_endpoint_unreachable across the user-facing -# read-only surfaces. This is intentionally replay-only: it validates the -# surface contract without introducing a second live failure mechanism. - -name: status-endpoint-unreachable-replay-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: prepare - actions: - - action: exec - node: m02 - timeout: 1m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bundle/demo/product-observation /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/dashboard" - - action: exec - node: m02 - timeout: 5m - cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bin/sw-block ./cmd/sw-block" - - - name: render_unreachable_bundle - actions: - - action: exec - node: m02 - timeout: 1m - cmd: | - python3 - <<'PY' - import json - from pathlib import Path - - root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bundle/demo/product-observation") - root.mkdir(parents=True, exist_ok=True) - doc = { - "schema_version": "1.0", - "captured_at": "2026-05-28T12:00:00Z", - "product_revision": "phase33-f2-replay", - "status": "unavailable", - "nodes": [], - "volumes": [{ - "volume_id": "pvc-unreachable", - "namespace": "default", - "pvc_name": "demo-pvc", - "pv_name": "pvc-unreachable", - "replication_factor": 1, - "desired_replicas": 1, - "observed_replicas": 1, - "status": "unavailable", - "reason": "status_endpoint_unreachable", - "primary_replica": "r1", - "primary_node": "m01", - "publish_target": "192.168.1.181:3260", - "replicas": [{ - "replica_id": "r1", - "server_id": "node-r1", - "kubernetes_node": "m01", - "observed": True, - "role": "primary", - "replication_role": "none", - "frontend_protocol": "iscsi", - "frontend_addr": "192.168.1.181:3260", - "status_addr": "192.168.1.181:23260" - }] - }], - "events": [{ - "event_id": "phase33-f2-1", - "event_time": "2026-05-28T12:00:01Z", - "volume_id": "pvc-unreachable", - "replica_id": "r1", - "event_type": "status_endpoint_unreachable", - "severity": "warning", - "message": "replica status endpoint unreachable; readiness is not claimed", - "reason_code": "status_endpoint_unreachable", - "evidence_ref": "product-observation/cluster-evidence.json" - }], - "non_claims": [ - "read-only-observation: does not mutate product, Kubernetes, iSCSI, or replica state", - "not-an-admin-action: no promote, repair, rebuild, backup, restore, or cleanup is authorized" - ] - } - (root / "cluster-evidence.json").write_text(json.dumps(doc, indent=2) + "\n") - PY - - - name: replay_surfaces - actions: - - action: exec - node: m02 - timeout: 1m - cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bin/sw-block ops report --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bundle --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/stdout.txt 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/stderr.txt" - - action: exec - node: m02 - timeout: 1m - cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bin/sw-block ops explain volume --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bundle pvc-unreachable > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/explain.txt" - - action: exec - node: m02 - timeout: 1m - cmd: | - set -e - OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/dashboard - 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/port.txt" - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bin/sw-block ops dashboard --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/bundle --listen 127.0.0.1:${port} > "$OUT/stdout.txt" 2> "$OUT/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) - test "$code" = "200" && break - sleep 0.2 - done - test -s "$OUT/operator-snapshot.json" - - - name: surface_asserts - actions: - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/summary.txt" - pattern: "managed_volume=pvc-unreachable status=unknown reason=status_endpoint_unreachable" - save_as: summary_unreachable_count - - action: assert_greater - actual: "{{ summary_unreachable_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/operator-snapshot.json" - pattern: "\"reason_code\": \"status_endpoint_unreachable\"" - save_as: report_snapshot_reason_count - - action: assert_greater - actual: "{{ report_snapshot_reason_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/operator-snapshot.json" - pattern: "\"mutation_allowed\": false" - save_as: report_snapshot_readonly_count - - action: assert_greater - actual: "{{ report_snapshot_readonly_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/explain.txt" - pattern: "managed_volume_condition Ready status=Unknown reason=status_endpoint_unreachable" - save_as: explain_unknown_count - - action: assert_greater - actual: "{{ explain_unknown_count }}" - threshold: "0" - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/dashboard/operator-snapshot.json" - pattern: "\"reason_code\": \"status_endpoint_unreachable\"" - save_as: dashboard_reason_count - - action: assert_greater - actual: "{{ dashboard_reason_count }}" - threshold: "0" - - action: exec - node: m02 - timeout: 1m - cmd: | - python3 - <<'PY' - import json - from pathlib import Path - paths = [ - Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/report/operator-snapshot.json"), - Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-status-endpoint-unreachable/dashboard/operator-snapshot.json"), - ] - for path in paths: - doc = json.loads(path.read_text()) - if doc.get("read_only") is not True: - raise SystemExit(f"{path}: read_only not true") - if (doc.get("mutation") or {}).get("mutation_allowed") is not False: - raise SystemExit(f"{path}: mutation_allowed not false") - vols = doc.get("volumes") or [] - if len(vols) != 1: - raise SystemExit(f"{path}: expected one volume") - status = vols[0].get("status") or {} - if status.get("status") != "unknown" or status.get("reason_code") != "status_endpoint_unreachable": - raise SystemExit(f"{path}: bad status {status}") - for condition in status.get("conditions") or []: - if condition.get("type") == "Ready" and condition.get("status") == "True": - raise SystemExit(f"{path}: false Ready=True") - PY diff --git a/seaweed-block/testops/scenarios/swblockvolume-authority-facts-chain.yaml b/seaweed-block/testops/scenarios/swblockvolume-authority-facts-chain.yaml deleted file mode 100644 index 3e6751d2b5..0000000000 --- a/seaweed-block/testops/scenarios/swblockvolume-authority-facts-chain.yaml +++ /dev/null @@ -1,97 +0,0 @@ -# Runner-native Phase 89 gate: SwBlockVolume.status exposes current authority -# facts for later failback target activation. This is status projection only, -# not a failback execution claim. - -name: swblockvolume-authority-facts-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: swblockvolume_authority_facts_gate - actions: - - action: exec - node: m02 - timeout: 4m - cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts bash scripts/run-phase89-swblockvolume-authority-facts-gate.sh {{ product_root }}" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^phase89_swblockvolume_authority_facts_status=ok$" - save_as: phase89_ok - - action: assert_greater - actual: "{{ phase89_ok }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^crd_status_primary_replica_id=true$" - save_as: crd_primary - - action: assert_greater - actual: "{{ crd_primary }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^crd_status_authority_epoch=true$" - save_as: crd_epoch - - action: assert_greater - actual: "{{ crd_epoch }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^operator_snapshot_snake_authority=true$" - save_as: snapshot_authority - - action: assert_greater - actual: "{{ snapshot_authority }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^crd_status_camel_authority=true$" - save_as: crd_camel - - action: assert_greater - actual: "{{ crd_camel }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^report_summary_authority_line=true$" - save_as: report_authority - - action: assert_greater - actual: "{{ report_authority }}" - threshold: "0" - - - action: grep_log - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts/phase89-swblockvolume-authority-facts-summary.txt" - pattern: "^failback_activation_attempted=false$" - save_as: no_failback_activation - - action: assert_greater - actual: "{{ no_failback_activation }}" - threshold: "0" - - - name: collect - always: true - actions: - - action: collect_path - node: m02 - path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase89-swblockvolume-authority-facts" - name: "remote-phases" - ignore_error: true diff --git a/seaweed-block/testops/suites/beta-hardening-gate.yaml b/seaweed-block/testops/suites/beta-hardening-gate.yaml deleted file mode 100644 index c7f9904f1f..0000000000 --- a/seaweed-block/testops/suites/beta-hardening-gate.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: beta-hardening-gate -mode: chain - -# Seed runner-native beta-hardening suite. -# -# This composes the gates that are already executable today. It intentionally -# keeps each child scenario as the owner of its own cleanup and artifact -# collection. The suite layer only sequences them and emits top-level -# status/result metadata with child run pointers. -# -# Expected invocation from the controller: -# swblock suite --results-dir \ -# --env product_root=/tmp/seaweed-block-plan-roadmap-refresh-devrun \ -# --env ssh_key=C:/work/dev_server/testdev_key \ -# testops/suites/beta-hardening-gate.yaml -# -# Not yet final-close complete: -# - validate-bundle --profile beta-hardening is a runner-side follow-up. - -scenarios: - - id: iscsi-p6-alua-failover - path: ../scenarios/iscsi-p6-alua-failover-chain.yaml - - id: nvme-p4-multipath-failover - path: ../scenarios/nvme-p4-multipath-failover-chain.yaml - - id: nvme-p5-csi-protocol - path: ../scenarios/nvme-p5-csi-protocol-chain.yaml - - id: iscsi-p8-compat-soak - path: ../scenarios/iscsi-p8-compat-soak-chain.yaml - - id: csi-lifecycle-component - path: ../scenarios/csi-lifecycle-component-gate.yaml - - id: csi-rf1-durable-restart - path: ../scenarios/csi-rf1-durable-restart-chain.yaml - - id: operations-status-diagnostics - path: ../scenarios/operations-status-diagnostics-chain.yaml - - id: returned-replica-component - path: ../scenarios/returned-replica-component-gate.yaml - - id: iscsi-returned-replica - path: ../scenarios/iscsi-returned-replica-chain.yaml - - id: cleanup-residue - path: ../scenarios/cleanup-residue-chain.yaml diff --git a/seaweed-block/testops/suites/nvme-release-artifact-smoke.yaml b/seaweed-block/testops/suites/nvme-release-artifact-smoke.yaml deleted file mode 100644 index c7611b6fca..0000000000 --- a/seaweed-block/testops/suites/nvme-release-artifact-smoke.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: nvme-release-artifact-smoke-suite -mode: chain - -# Release-artifact gate for Phase 102. -# -# Required suite env: -# release_image=ghcr.io/seaweedfs/seaweed-block:sha- -# release_csi_image=ghcr.io/seaweedfs/seaweed-block-csi:sha- -# -# The scenario validates that the published images, not source-built local -# images, can run the Phase 100 NVMe CSI multipath attach path and the Phase 101 -# standalone NVMe hardening gates. - -scenarios: - - id: nvme-release-artifact-smoke - path: ../scenarios/nvme-release-artifact-smoke-chain.yaml diff --git a/seaweed-block/testops/suites/nvme-tcp-release-image-smoke.yaml b/seaweed-block/testops/suites/nvme-tcp-release-image-smoke.yaml deleted file mode 100644 index 6a8f1aa9e9..0000000000 --- a/seaweed-block/testops/suites/nvme-tcp-release-image-smoke.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: nvme-tcp-release-image-smoke-suite -mode: chain - -# Phase 117 release-image gate. -# -# Required suite env: -# release_image=ghcr.io/seaweedfs/seaweed-block:sha- -# release_csi_image=ghcr.io/seaweedfs/seaweed-block-csi:sha- -# Optional: -# release_commit= -# -# The scenario validates the published image pair, not source-built local -# images, against the representative NVMe/TCP supported-lab path. - -scenarios: - - id: nvme-tcp-release-image-smoke - path: ../scenarios/nvme-tcp-release-image-smoke-chain.yaml diff --git a/seaweed-block/testops/suites/protocol-release-gate.yaml b/seaweed-block/testops/suites/protocol-release-gate.yaml deleted file mode 100644 index 5174eb0817..0000000000 --- a/seaweed-block/testops/suites/protocol-release-gate.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: protocol-release-gate-suite -mode: chain - -# Runner-native equivalent of scripts/testops-run-protocol-release-gate.*. -# The suite CLI supplies the common env values, for example: -# swblock suite --results-dir \ -# --env product_root=/tmp/seaweed-block-nvme-p4l \ -# --env ssh_key=C:/work/dev_server/testdev_key \ -# testops/suites/protocol-release-gate.yaml -# -# Each child scenario owns its own product-level assertions and artifact -# collection. The suite layer only sequences them and emits top-level -# status/result metadata with child run pointers. - -scenarios: - - id: iscsi-p6-alua-failover - path: ../scenarios/iscsi-p6-alua-failover-chain.yaml - - id: nvme-p4-multipath-failover - path: ../scenarios/nvme-p4-multipath-failover-chain.yaml - - id: nvme-p5-csi-protocol - path: ../scenarios/nvme-p5-csi-protocol-chain.yaml - - id: iscsi-p8-compat-soak - path: ../scenarios/iscsi-p8-compat-soak-chain.yaml