diff --git a/seaweed-block/docs/roadmap.md b/seaweed-block/docs/roadmap.md index 3a1c675516..55326229ab 100644 --- a/seaweed-block/docs/roadmap.md +++ b/seaweed-block/docs/roadmap.md @@ -93,6 +93,9 @@ Seaweed Block can already demonstrate a narrow Kubernetes block-storage loop: - Bounded `SwBlockVolume` finalizer lifecycle in the v0.5 beta-candidate path: CSI-created identity CRs, lifecycle-owner protection finalizer, evidence-driven hold/release, Events, and multi-volume isolation. +- NVMe/TCP CSI multipath attach is gated for the supported lab path; RoCE and + NVMe/RDMA remain explicit non-claims until host preflight plus live I/O gates + prove them. - Install drift status for current versus desired chart/app/image identity without upgrade execution. - CRD/RBAC status-writer conformance coverage for the failures that previously diff --git a/seaweed-block/internal/docs/current-plan.md b/seaweed-block/internal/docs/current-plan.md index 6618f08729..e5f4f746a7 100644 --- a/seaweed-block/internal/docs/current-plan.md +++ b/seaweed-block/internal/docs/current-plan.md @@ -1,53 +1,47 @@ -# Current Plan: Phase 102 NVMe Release Artifact Smoke +# Current Plan: Phase 103 NVMe Multi-Host / RoCE Preflight -Status: active plan; gate scaffold implemented, waiting for matching published -images to run the full release-artifact validation. +Status: active plan. ## Why This Is Next -Phase 101 closed the source/lab NVMe hardening slice: +Phase 100 proved Kubernetes CSI NVMe/TCP multipath attach for the supported lab +path. Phase 101 hardened that path with path-loss status, repeated +stage/unstage cleanup, and bounded writer/reader soak. Phase 102 added a +release-artifact smoke gate, but that gate remains blocked until matching +published images exist. + +The next storage-feature question is not performance yet. It is whether the +product can tell an operator, from live host facts, what NVMe transport/topology +is actually supportable: ```text -Phase 100 Kubernetes CSI NVMe multipath attach - -> Phase 101 status/path-loss/stage-unstage/bounded-soak hardening +NVMe/TCP multipath on current lab -> supported-lab path +RoCE / NVMe-RDMA -> explicit preflight only until hardware + live I/O gate exist +multi-host NVMe -> requires non-loopback, host-capability, and topology evidence ``` -Those gates prove the code and lab behavior. They do not prove that published -`seaweed-block` and `seaweed-block-csi` images contain the same behavior. The -project has repeatedly found chart/image skew and stale-image failures, so the -next step is a release-artifact smoke before any public NVMe claim is widened. +Without this preflight, RoCE or multi-host NVMe claims would be another +documentation-level promise instead of a product capability. ## Product Goal -Turn the source-gated NVMe claim into a release-artifact-gated claim: +Add a read-only transport preflight gate that classifies the current host: -```text -matching published images - -> Kubernetes CSI NVMe multipath attach still works - -> image-extracted blockmaster/blockvolume/sw-block binaries pass Phase 101 - standalone hardening gates - -> release wording remains narrow and honest -``` +- `nvme` CLI available; +- NVMe subsystem inspection is readable; +- `nvme-fabrics`, `nvme-tcp`, and `nvme-rdma` module loaded/available state; +- RDMA device count from `/sys/class/infiniband`; +- NVMe/TCP host capability; +- RoCE preflight candidacy. -## Image Selection +The gate must fail closed: -By default, the gate expects both images from the current source commit: - -```text -ghcr.io/seaweedfs/seaweed-block:sha- -ghcr.io/seaweedfs/seaweed-block-csi:sha- -``` - -The tags can be overridden explicitly: - -```text -SW_BLOCK_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block:sha- -SW_BLOCK_CSI_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block-csi:sha- -``` - -If either manifest is missing, the gate must report -`phase102_nvme_release_artifact_status=blocked_missing_release_images` and must -not be treated as product failure. +- missing `nvme` CLI -> blocked, not product failure; +- missing NVMe/TCP capability -> blocked, not product failure; +- no RDMA device or no `nvme-rdma` capability -> not a RoCE candidate; +- RDMA device plus `nvme-rdma` capability -> candidate only, still + `roce_claim_allowed=false` until a live RoCE I/O gate passes; +- no RoCE live I/O or performance claim may be emitted. ## D1: Gate Scaffold @@ -56,87 +50,87 @@ Status: implemented. Files: ```text -scripts/run-phase102-nvme-release-artifact-smoke.sh -testops/scenarios/nvme-release-artifact-smoke-chain.yaml -testops/suites/nvme-release-artifact-smoke.yaml +scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh +testops/scenarios/nvme-multihost-roce-preflight-chain.yaml ``` -The script: - -- pulls both published images; -- extracts `blockmaster`, `blockvolume`, and `sw-block` from the published - `seaweed-block` image; -- writes a release `alpha-images.env` using the published image pair; -- runs the Phase 100 Kubernetes NVMe CSI multipath live gate against the - published images; -- runs Phase 101 path-failure, stage/unstage, and bounded-soak gates using the - extracted release binaries. +The script is intentionally read-only. It reads command availability, `/proc`, +`/sys/module`, `/lib/modules`, `/sys/class/infiniband`, and `nvme list-subsys`. +It must not run `modprobe`, `nvme connect`, `nvme disconnect`, or any +Kubernetes mutation. ## D2: Local Contract Validation Required checks: ```text -bash -n scripts/run-phase102-nvme-release-artifact-smoke.sh -C:\work\swblock.exe validate testops/scenarios/nvme-release-artifact-smoke-chain.yaml -go test ./scripts ./internal/testops ./core/ops ./core/host/master ./cmd/sw-block ./core/frontend/nvme -count=1 +bash -n scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh +C:\work\swblock.exe validate testops/scenarios/nvme-multihost-roce-preflight-chain.yaml +go test ./scripts ./internal/testops ./core/frontend/nvme ./core/ops ./cmd/sw-block -count=1 ``` -Success means the scaffold is syntactically valid and does not regress the -Phase 101 code/test packages. +Success means the preflight is syntactically valid, scenario-runnable, and +covered by a read-only/claim-bounded script regression. -## D3: Missing-Image Blocked Check +## D3: Live Host Preflight -Run the script before the matching images are published and assert: +Run on the NVMe-capable lab node: ```text -phase102_nvme_release_artifact_status=blocked_missing_release_images -missing_image=ghcr.io/seaweedfs/seaweed-block:sha- -``` - -This proves the gate fails closed when release artifacts are not available. - -## D4: Published-Image Smoke - -Run once matching images exist: - -```text -swblock run \ - -env release_image=ghcr.io/seaweedfs/seaweed-block:sha- \ - -env release_csi_image=ghcr.io/seaweedfs/seaweed-block-csi:sha- \ - testops/scenarios/nvme-release-artifact-smoke-chain.yaml +swblock run testops/scenarios/nvme-multihost-roce-preflight-chain.yaml ``` Required PASS evidence: ```text -phase102_nvme_release_artifact_status=ok -phase100_nvme_csi_multipath_live_status=ok -phase101_nvme_path_failure_status=ok -phase101_nvme_stage_unstage_status=ok -phase101_nvme_soak_status=ok -phase101_soak_false_ready_count=0 -phase101_soak_identity_drift_count=0 +phase103_nvme_multihost_roce_preflight_status=ok +read_only=true +nvme_cli_present=true +nvme_tcp_preflight_ready=true +roce_live_io_claim=false +performance_claim_allowed=false ``` -## D5: Release Wording +If the lab lacks RDMA hardware, the expected result is still PASS as long as it +reports: -Only after D4 PASS may docs say the published release artifacts include: +```text +rdma_device_count=0 +roce_preflight_status=blocked_no_rdma_device +roce_preflight_candidate=false +roce_claim_allowed=false +``` -- supported-lab NVMe/TCP CSI multipath attach; -- NVMe path status/identity projection; -- one-path-loss negative-first status; -- repeated stage/unstage zero-residue gate; -- bounded writer/reader soak. +If the lab has RDMA hardware and `nvme-rdma`, it may instead report: -Docs must still say: +```text +roce_preflight_status=candidate_requires_live_roce_gate +roce_preflight_candidate=true +roce_claim_allowed=false +roce_live_io_claim=false +``` -- no RoCE or NVMe/RDMA claim; -- no performance/latency/throughput/SLO claim; -- no broad kernel/distro compatibility claim; -- no production HA or transparent Kubernetes node-loss failover claim. +That is the correct product behavior: honest candidate status, not a released +RoCE claim. + +## D4: Next Decision After Preflight + +Only after D3 should the team choose one of: + +- RoCE live I/O gate on hardware that has RDMA devices and `nvme-rdma`; +- multi-host NVMe/TCP non-loopback topology gate; +- NVMe performance characterization. + +These must stay separate because they prove different things: transport +availability, topology correctness, and performance/SLO. ## Non-Claims -Phase 102 is not a new NVMe feature. It is release-artifact validation for -Phases 100 and 101. +Phase 103 does not claim: + +- RoCE or NVMe/RDMA I/O works; +- multi-host failover works; +- performance, latency, throughput, or SLO; +- broad distro/kernel compatibility; +- production HA; +- release-image validation for NVMe. diff --git a/seaweed-block/internal/docs/finished-plans/phase103_finishedplan_nvme_multihost_roce_preflight.md b/seaweed-block/internal/docs/finished-plans/phase103_finishedplan_nvme_multihost_roce_preflight.md new file mode 100644 index 0000000000..4bae07bbdb --- /dev/null +++ b/seaweed-block/internal/docs/finished-plans/phase103_finishedplan_nvme_multihost_roce_preflight.md @@ -0,0 +1,97 @@ +# Finished Plan: Phase 103 NVMe Multi-Host / RoCE Preflight + +Status: complete. Local checks and m02 TestOps gate passed on 2026-06-29. + +## Problem + +Phase 100 and Phase 101 proved the supported-lab NVMe/TCP CSI multipath path. +They did not justify RoCE, NVMe/RDMA, performance, or broad multi-host claims. + +The next risk was claim drift: seeing an RDMA-capable host and treating that as +evidence that RoCE I/O works. Phase 103 adds a preflight gate that separates +host candidacy from product capability. + +## What Changed + +Added: + +```text +scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh +testops/scenarios/nvme-multihost-roce-preflight-chain.yaml +internal/docs/qa-assignments/phase103-nvme-multihost-roce-preflight-qa-signoff.md +``` + +Updated: + +```text +internal/docs/current-plan.md +internal/docs/product-roadmap.md +docs/roadmap.md +``` + +The gate reads host facts only: + +- `nvme` CLI presence; +- `nvme list-subsys` readability; +- `nvme-fabrics`, `nvme-tcp`, and `nvme-rdma` loaded/available state; +- RDMA device count from `/sys/class/infiniband`; +- NVMe/TCP preflight readiness; +- RoCE preflight candidacy. + +It explicitly emits: + +```text +roce_claim_allowed=false +roce_live_io_claim=false +performance_claim_allowed=false +``` + +## Verification + +Local: + +```text +bash -n scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh +C:\work\swblock.exe validate testops\scenarios\nvme-multihost-roce-preflight-chain.yaml +go test ./scripts ./internal/testops ./core/frontend/nvme ./core/ops ./cmd/sw-block -count=1 +git diff --check +``` + +Live: + +```text +C:\work\swblock.exe run testops\scenarios\nvme-multihost-roce-preflight-chain.yaml +run=20260629-000859-fc3c +result=PASS 14/14 +``` + +Key live facts: + +```text +nvme_tcp_preflight_ready=true +rdma_device_count=1 +module_nvme_rdma_available=true +roce_preflight_status=candidate_requires_live_roce_gate +roce_preflight_candidate=true +roce_claim_allowed=false +roce_live_io_claim=false +performance_claim_allowed=false +``` + +## Non-Claims + +Phase 103 does not claim: + +- RoCE or NVMe/RDMA I/O works; +- multi-host NVMe failover works; +- throughput, latency, or performance SLO; +- broad distro/kernel compatibility; +- release-image validation. + +## Next + +Choose one separate next phase: + +- RoCE live I/O feasibility on this RDMA-capable host; +- multi-host NVMe/TCP non-loopback topology; +- NVMe performance characterization. diff --git a/seaweed-block/internal/docs/product-roadmap.md b/seaweed-block/internal/docs/product-roadmap.md index edbfd40095..9ca88b1643 100644 --- a/seaweed-block/internal/docs/product-roadmap.md +++ b/seaweed-block/internal/docs/product-roadmap.md @@ -231,14 +231,21 @@ rebuild, delete safety, or cleanup must start as a separate gated phase. residue checks, and a bounded writer/reader soak. Backup/restore, stronger committed-frontier reporting, broad distro/host compatibility, RoCE, and performance remain later work. -- Phase 102 NVMe Release Artifact Smoke is active and blocked only on matching +- Phase 102 NVMe Release Artifact Smoke is blocked only on matching published images. It validates that the published `seaweed-block` / `seaweed-block-csi` image pair can run the Phase 100 Kubernetes NVMe multipath attach gate and that binaries extracted from the published `seaweed-block` image pass the Phase 101 standalone hardening gates. -- Next protocol candidates after Phase 102: RoCE / multi-host NVMe design and - lab preflight, or NVMe performance characterization. Keep these separate so - correctness, transport, and performance claims do not get mixed. +- Phase 103 NVMe Multi-Host / RoCE Preflight is active. It adds a read-only host + capability gate before any RoCE, multi-host, or performance claim: NVMe/TCP + capability must be inspectable, RDMA devices and `nvme-rdma` capability can + make a host a candidate, and missing RoCE hardware must surface as a + non-claim rather than a failed product gate. A candidate host is still not a + RoCE product claim until a live RoCE I/O gate passes. +- Next protocol candidates after Phase 103: RoCE live I/O on real RDMA + hardware, multi-host NVMe/TCP non-loopback topology, or NVMe performance + characterization. Keep these separate so correctness, transport, and + performance claims do not get mixed. ### Track E: Protocol / Backend Expansion @@ -801,7 +808,8 @@ Approximate engineering effort if scope remains tight: supported-lab attach path and adds status-surface visibility, one-path-failure honesty, repeated stage/unstage residue checks, and bounded writer/reader soak before any broader NVMe claim. -- Phase 102 NVMe Release Artifact Smoke is active. It does not add product +- Phase 102 NVMe Release Artifact Smoke is blocked on matching release images. + It does not add product behavior; it converts the Phase 100/101 source/lab claim into a published-image claim once matching release images exist and pass the gate. - Phase 41-44 are the Operation Layer v0.5 release train: lifecycle-owner diff --git a/seaweed-block/internal/docs/qa-assignments/phase103-nvme-multihost-roce-preflight-qa-signoff.md b/seaweed-block/internal/docs/qa-assignments/phase103-nvme-multihost-roce-preflight-qa-signoff.md new file mode 100644 index 0000000000..e3d7cd3c81 --- /dev/null +++ b/seaweed-block/internal/docs/qa-assignments/phase103-nvme-multihost-roce-preflight-qa-signoff.md @@ -0,0 +1,70 @@ +# Phase 103 NVMe Multi-Host / RoCE Preflight QA Sign-off + +Status: PASS. + +Validated source branch: `phase103-nvme-multihost-roce-preflight` + +Validated run: + +```text +scenario=nvme-multihost-roce-preflight-chain +run=20260629-000859-fc3c +result=PASS 14/14 +``` + +## Local Contract + +```text +bash -n scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh +C:\work\swblock.exe validate testops\scenarios\nvme-multihost-roce-preflight-chain.yaml +go test ./scripts ./internal/testops ./core/frontend/nvme ./core/ops ./cmd/sw-block -count=1 +git diff --check +``` + +All local checks passed. + +## Live Evidence + +Summary from the m02 run: + +```text +phase103_nvme_multihost_roce_preflight_status=ok +phase103_scope=nvme_tcp_multihost_and_roce_preflight +read_only=true +nvme_cli_present=true +nvme_list_subsys_readable=true +module_nvme_fabrics_loaded=true +module_nvme_fabrics_available=true +module_nvme_tcp_loaded=true +module_nvme_tcp_available=true +module_nvme_rdma_loaded=false +module_nvme_rdma_available=true +rdma_device_count=1 +nvme_tcp_preflight_ready=true +roce_preflight_status=candidate_requires_live_roce_gate +roce_preflight_candidate=true +roce_claim_allowed=false +roce_live_gate_required=true +roce_live_io_claim=false +performance_claim_allowed=false +``` + +## Verdict + +The preflight gate is working as intended: + +- the current lab host is NVMe/TCP-capable; +- the host has RDMA hardware and `nvme-rdma` module availability, so it is a + RoCE candidate; +- the product still refuses a RoCE I/O claim and performance claim until a live + RoCE data-path gate exists; +- the script is read-only and does not run `modprobe`, `nvme connect`, + `nvme disconnect`, or Kubernetes mutation. + +Phase 103 can close. The next phase should be a separate decision between: + +- RoCE live I/O feasibility on this RDMA-capable host; +- multi-host NVMe/TCP non-loopback topology; +- NVMe performance characterization. + +Do not merge these into one phase; they prove different claims. diff --git a/seaweed-block/scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh b/seaweed-block/scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh new file mode 100755 index 0000000000..485a784498 --- /dev/null +++ b/seaweed-block/scripts/run-phase103-nvme-multihost-roce-preflight-gate.sh @@ -0,0 +1,113 @@ +#!/usr/bin/env bash +set -euo pipefail + +PRODUCT_ROOT="${1:-$(pwd)}" +ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${PRODUCT_ROOT}/results/phase103-nvme-multihost-roce-preflight-gate}" +SUMMARY="${ARTIFACT_DIR}/phase103-nvme-multihost-roce-preflight-summary.txt" + +mkdir -p "${ARTIFACT_DIR}" +: >"${SUMMARY}" + +write_summary() { + echo "$*" | tee -a "${SUMMARY}" >/dev/null +} + +bool() { + if "$@" >/dev/null 2>&1; then + echo "true" + else + echo "false" + fi +} + +module_loaded() { + local mod="$1" + [[ -d "/sys/module/${mod}" ]] || grep -q "^${mod//-/_} " /proc/modules 2>/dev/null +} + +module_available() { + local mod="$1" + if command -v modinfo >/dev/null 2>&1 && modinfo "$mod" >/dev/null 2>&1; then + return 0 + fi + local kernel + kernel="$(uname -r 2>/dev/null || true)" + [[ -n "$kernel" ]] && find "/lib/modules/${kernel}" -name "${mod}.ko*" -print -quit 2>/dev/null | grep -q . +} + +count_rdma_devices() { + if [[ ! -d /sys/class/infiniband ]]; then + echo 0 + return + fi + find /sys/class/infiniband -mindepth 1 -maxdepth 1 -type l -o -type d 2>/dev/null | wc -l | tr -d ' ' +} + +write_summary "phase103_nvme_multihost_roce_preflight_status=running" +write_summary "phase103_scope=nvme_tcp_multihost_and_roce_preflight" +write_summary "read_only=true" + +nvme_present="$(bool command -v nvme)" +write_summary "nvme_cli_present=${nvme_present}" +if [[ "${nvme_present}" != "true" ]]; then + write_summary "phase103_nvme_multihost_roce_preflight_status=blocked_missing_nvme_cli" + exit 2 +fi + +if nvme list-subsys -o json >"${ARTIFACT_DIR}/nvme-list-subsys.json" 2>"${ARTIFACT_DIR}/nvme-list-subsys.err"; then + write_summary "nvme_list_subsys_readable=true" +else + write_summary "nvme_list_subsys_readable=false" +fi + +for mod in nvme-fabrics nvme-tcp nvme-rdma; do + shell_name="${mod//-/_}" + if module_loaded "${mod}"; then + write_summary "module_${shell_name}_loaded=true" + else + write_summary "module_${shell_name}_loaded=false" + fi + if module_available "${mod}"; then + write_summary "module_${shell_name}_available=true" + else + write_summary "module_${shell_name}_available=false" + fi +done + +rdma_count="$(count_rdma_devices)" +write_summary "rdma_device_count=${rdma_count}" +if [[ "${rdma_count}" -gt 0 ]]; then + find /sys/class/infiniband -mindepth 1 -maxdepth 1 -printf '%f\n' 2>/dev/null | sort >"${ARTIFACT_DIR}/rdma-devices.txt" || true +else + : >"${ARTIFACT_DIR}/rdma-devices.txt" +fi + +nvme_tcp_ready=false +if module_loaded nvme-tcp || module_available nvme-tcp; then + nvme_tcp_ready=true +fi +write_summary "nvme_tcp_preflight_ready=${nvme_tcp_ready}" + +roce_preflight_candidate=false +roce_preflight_status="blocked_no_rdma_device" +if [[ "${rdma_count}" -gt 0 ]]; then + if module_loaded nvme-rdma || module_available nvme-rdma; then + roce_preflight_status="candidate_requires_live_roce_gate" + roce_preflight_candidate=true + else + roce_preflight_status="blocked_missing_nvme_rdma_module" + fi +fi +write_summary "roce_preflight_status=${roce_preflight_status}" +write_summary "roce_preflight_candidate=${roce_preflight_candidate}" +write_summary "roce_claim_allowed=false" +write_summary "roce_live_gate_required=true" +write_summary "roce_live_io_claim=false" +write_summary "performance_claim_allowed=false" + +if [[ "${nvme_tcp_ready}" != "true" ]]; then + write_summary "phase103_nvme_multihost_roce_preflight_status=blocked_missing_nvme_tcp_capability" + exit 2 +fi + +write_summary "phase103_nvme_multihost_roce_preflight_status=ok" diff --git a/seaweed-block/scripts/uninstall_k8s_alpha_test.go b/seaweed-block/scripts/uninstall_k8s_alpha_test.go index 3e128dce23..18b2b667ef 100644 --- a/seaweed-block/scripts/uninstall_k8s_alpha_test.go +++ b/seaweed-block/scripts/uninstall_k8s_alpha_test.go @@ -156,6 +156,39 @@ func TestVerifyHelmCleanupReportsAllResidueDimensions(t *testing.T) { } } +func TestPhase103NVMeRoCEPreflightIsReadOnlyAndClaimBounded(t *testing.T) { + root := repoRoot(t) + raw, err := os.ReadFile(filepath.Join(root, "scripts", "run-phase103-nvme-multihost-roce-preflight-gate.sh")) + if err != nil { + t.Fatal(err) + } + script := string(raw) + for _, want := range []string{ + "phase103_nvme_multihost_roce_preflight_status=", + "read_only=true", + "nvme_cli_present=", + "nvme_tcp_preflight_ready=", + "rdma_device_count=", + "roce_preflight_status=", + "roce_preflight_candidate=", + "roce_claim_allowed=", + "roce_live_gate_required=true", + "roce_live_io_claim=false", + "performance_claim_allowed=false", + "blocked_missing_nvme_cli", + "blocked_missing_nvme_tcp_capability", + } { + if !strings.Contains(script, want) { + t.Fatalf("phase103 preflight script missing %q", want) + } + } + for _, forbidden := range []string{"modprobe ", "nvme connect", "nvme disconnect", "kubectl patch", "kubectl delete"} { + if strings.Contains(script, forbidden) { + t.Fatalf("phase103 preflight script should be read-only, found %q", forbidden) + } + } +} + func repoRoot(t *testing.T) string { t.Helper() dir, err := os.Getwd() diff --git a/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml b/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml new file mode 100644 index 0000000000..1ba09e22b2 --- /dev/null +++ b/seaweed-block/testops/scenarios/nvme-multihost-roce-preflight-chain.yaml @@ -0,0 +1,79 @@ +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