mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d852d63e1 | ||
|
|
b7631e6a3b | ||
|
|
acc22a4270 | ||
|
|
e17e30b4aa | ||
|
|
f92efd4437 | ||
|
|
fe2d016c41 | ||
|
|
cf3eda7e57 | ||
|
|
68d56d8ff8 | ||
|
|
39f568f614 | ||
|
|
4a58968439 | ||
|
|
f9febc7ee5 | ||
|
|
0ce344d559 | ||
|
|
63c50b8cfe |
No files matched your search
+5
-4
@@ -11,14 +11,14 @@ cmd/sw-block/volume_backup.go RestoreCommand.Abort
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.AbortVerify
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.Run
|
||||
cmd/sw-block/volume_backup.go RestoreCommand.Start
|
||||
cmd/sw-block/volume_start_release.go StopAndRestart.CrashRestart
|
||||
cmd/sw-block/volume_start_release.go StopAndRestart.IssueClean
|
||||
cmd/sw-block/volume_start_release.go StopAndRestart.ReadClean
|
||||
cmd/sw-block/volume_start_release.go StopAndRestart.SameEpochReopen
|
||||
cmd/sw-block/volume_verbs.go CutTime.CliGiveUp
|
||||
cmd/sw-block/volume_verbs.go CutTime.Poll
|
||||
cmd/sw-block/workspace_show.go MoveAdmission.ReadForMove
|
||||
core/authority/authority.go DeleteRetire.Retire
|
||||
core/authority/authority_store_file.go DeleteRetire.Retire
|
||||
core/authority/authority.go DeleteRetire.RetireLine
|
||||
core/authority/authority_store_file.go DeleteRetire.RetireLine
|
||||
core/authority/workspace.go HolderInterface.ForcedMove
|
||||
core/authority/workspace.go HolderInterface.PlannedMove
|
||||
core/authority/workspace.go MoveAdmission.Ack
|
||||
@@ -36,7 +36,7 @@ core/authority/workspace_delete_reservation.go MoveAdmission.DelCheck
|
||||
core/authority/workspace_delete_reservation.go MoveAdmission.Reserve
|
||||
core/authority/workspace_lease_view.go HolderInterface.Grant
|
||||
core/authority/workspace_lease_view.go HolderInterface.Regrant
|
||||
core/authority/workspace_retirement.go DeleteRetire.Retire
|
||||
core/authority/workspace_retirement.go DeleteRetire.RetireLine
|
||||
core/engine/apply.go ReplicationPeer.Reconcile
|
||||
core/frontend/chunkstore/catalog_b.go CleanBatch.Publish
|
||||
core/frontend/chunkstore/catalog_b.go CleanBatch.Request
|
||||
@@ -187,6 +187,7 @@ core/frontend/durable/provider_layout.go EngineAdapter.SettleDown
|
||||
core/frontend/durable/provider_layout.go StopAndRestart.SettleDown
|
||||
core/frontend/durable/provider_preempt.go CutTime.Preempt
|
||||
core/frontend/durable/provider_preempt.go CutTime.Settle
|
||||
core/frontend/durable/provider_seal_replay.go PlainSealReplay.Reply
|
||||
core/frontend/durable/storage_adapter.go EngineAdapter.GuestWrite
|
||||
core/frontend/durable/storage_adapter.go HolderInterface.Write
|
||||
core/frontend/durable/storage_adapter.go WALHold.Resubmit
|
||||
|
||||
|
@@ -12,7 +12,6 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -26,7 +25,7 @@ import (
|
||||
type storeRecordMaster struct {
|
||||
control.UnimplementedLifecycleServiceServer
|
||||
mu sync.Mutex
|
||||
mode string // "creating", "ended", "older", "unreadable", "unavailable"
|
||||
mode string // "creating", "ended", "older", "unavailable"
|
||||
}
|
||||
|
||||
func (m *storeRecordMaster) set(mode string) { m.mu.Lock(); m.mode = mode; m.mu.Unlock() }
|
||||
@@ -43,8 +42,6 @@ func (m *storeRecordMaster) GetReplicaStore(_ context.Context, q *control.GetRep
|
||||
return &control.GetReplicaStoreResponse{Listed: true, CreationEnded: true}, nil
|
||||
case "older":
|
||||
return nil, status.Error(codes.Unimplemented, "unknown method GetReplicaStore")
|
||||
case "unreadable":
|
||||
return nil, status.Error(codes.FailedPrecondition, "the replica's store record is unreadable")
|
||||
}
|
||||
return nil, status.Error(codes.Unavailable, "lifecycle store unavailable")
|
||||
}
|
||||
@@ -105,10 +102,7 @@ func runHolder(t *testing.T, bin, master, root, locks string, until func() bool,
|
||||
// the volume is creating an empty state directory creates the store; once
|
||||
// creation ended, a store other than the recorded one, and a wiped state
|
||||
// directory, exit 78 store_lost; an older master (no GetReplicaStore) and an
|
||||
// unreadable record exit 75 with an empty state directory left empty. A
|
||||
// master that gives no reply is waited out inside the process, writing
|
||||
// nothing, so a start during an outage does not burn the unit's start limit;
|
||||
// once it answers creating, the same process creates its store.
|
||||
// unreadable record exit 75 with an empty state directory left empty.
|
||||
func TestBlockvolumeAsksTheMasterBeforeCreatingItsStore(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("builds and runs the blockvolume binary")
|
||||
@@ -190,64 +184,11 @@ func TestBlockvolumeAsksTheMasterBeforeCreatingItsStore(t *testing.T) {
|
||||
}
|
||||
empty(t)
|
||||
|
||||
for mode, reason := range map[string]string{"older": "master_too_old", "unreadable": "store_record_unreadable"} {
|
||||
for mode, reason := range map[string]string{"older": "master_too_old", "unavailable": "store_record_unreadable"} {
|
||||
m.set(mode)
|
||||
if code, _, out := runHolder(t, bin, ln.Addr().String(), root, locks, nil, 60*time.Second); code != exitWorkspaceRetry || !strings.Contains(out, reason) {
|
||||
t.Fatalf("%s master, empty state: exit %d, want 75 %s\n%s", mode, code, reason, out)
|
||||
}
|
||||
empty(t)
|
||||
}
|
||||
|
||||
// No reply for longer than the old 10 s read bound plus the unit's 5 s
|
||||
// restart delay: the process stays, writes nothing, and creates its
|
||||
// store once the master answers creating.
|
||||
m.set("unavailable")
|
||||
start, answered := time.Now(), false
|
||||
answer := func() bool {
|
||||
if !answered && time.Since(start) > 25*time.Second {
|
||||
if entries, err := os.ReadDir(root); err != nil || len(entries) != 0 {
|
||||
t.Errorf("the waiting holder wrote into its state directory: %v %v", entries, err)
|
||||
}
|
||||
m.set("creating")
|
||||
answered = true
|
||||
}
|
||||
return created()
|
||||
}
|
||||
if code, running, out := runHolder(t, bin, ln.Addr().String(), root, locks, answer, 90*time.Second); !running || !created() || !strings.Contains(out, "waiting for the master at "+ln.Addr().String()) {
|
||||
t.Fatalf("a master with no reply, then creating: exit %d running %v created %v\n%s", code, running, created(), out)
|
||||
}
|
||||
|
||||
// A stop during the wait is a clean stop: exit 0, nothing created.
|
||||
if runtime.GOOS == "windows" {
|
||||
return // no SIGTERM to another process
|
||||
}
|
||||
if err := os.RemoveAll(root); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := os.MkdirAll(root, 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
m.set("unavailable")
|
||||
var buf bytes.Buffer
|
||||
cmd := exec.Command(bin, "--master", ln.Addr().String(), "--server-id", "s1", "--volume-id", "v1", "--replica-id", "r1",
|
||||
"--data-addr", "127.0.0.1:0", "--ctrl-addr", "127.0.0.1:0", "--durable-root", root, "--durable-impl", "walstore",
|
||||
"--durable-blocks", "64", "--"+volumeLockDirTestOnlyFlag, locks)
|
||||
cmd.Stdout, cmd.Stderr = &buf, &buf
|
||||
if err := cmd.Start(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
done := make(chan error, 1)
|
||||
go func() { done <- cmd.Wait() }()
|
||||
time.Sleep(5 * time.Second)
|
||||
_ = cmd.Process.Signal(syscall.SIGTERM)
|
||||
select {
|
||||
case err := <-done:
|
||||
if err != nil || !strings.Contains(buf.String(), "stopped while waiting for the master") {
|
||||
t.Fatalf("SIGTERM during the wait: %v\n%s", err, buf.String())
|
||||
}
|
||||
case <-time.After(30 * time.Second):
|
||||
killAndJoin(cmd, done)
|
||||
t.Fatalf("SIGTERM did not end the wait\n%s", buf.String())
|
||||
}
|
||||
empty(t)
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/adapter"
|
||||
@@ -927,24 +926,9 @@ func runVolume(f flags, exits *processExit) int {
|
||||
if xErr == nil && f.durableImpl != "walstore-chunk" {
|
||||
// A plain walstore store is the volume's only copy: ask the master
|
||||
// before anything is created or written (GetReplicaStore).
|
||||
var storeWait atomic.Bool
|
||||
if status != nil {
|
||||
status.SetStartupWait(storeWait.Load)
|
||||
}
|
||||
rec, qerr := readReplicaStore(exits.parent, f.masterAddr, h.ReplicaStoreRecord, log.Printf, storeWait.Store)
|
||||
if exits.parent.Err() != nil {
|
||||
// Stopped while waiting for the master: nothing was opened or
|
||||
// created, and a stop is not a failure.
|
||||
fmt.Fprintln(os.Stderr, "blockvolume: stopped while waiting for the master's store record; nothing was created")
|
||||
_ = closeProviderAfterSnapshotOperations(status, dp.Close)
|
||||
if status != nil {
|
||||
shutCtx, shutCancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
_ = status.Close(shutCtx)
|
||||
shutCancel()
|
||||
}
|
||||
_ = h.Close()
|
||||
return 0
|
||||
}
|
||||
qctx, qcancel := context.WithTimeout(context.Background(), replicaStoreQueryTimeout)
|
||||
rec, qerr := h.ReplicaStoreRecord(qctx)
|
||||
qcancel()
|
||||
admission, refuse := decideStoreAdmission(rec, qerr, exists)
|
||||
if refuse != nil {
|
||||
fmt.Fprintln(os.Stderr, "blockvolume: durable storage open refused:", refuse.reason, refuse.detail)
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
//go:build linux && subprocess && chunkstore_integration && systemd_integration
|
||||
|
||||
package main_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// A plain walstore holder started under the shipped unit's restart policy and
|
||||
// start limit while blockmaster gives no reply (nothing listens on its
|
||||
// address) waits inside the process for its store record: through a
|
||||
// 5-minute outage the unit stays active with no restart, /status says
|
||||
// waiting_for_master and the journal names the wait; once blockmaster
|
||||
// starts, the volume serves with no restart. Before, the start exited 75 at
|
||||
// once, the unit restarted every RestartSec, and after StartLimitBurst
|
||||
// starts it stayed failed even once the master came back.
|
||||
//
|
||||
// A runtime unit file (/run/systemd/system) stands for the installed unit.
|
||||
func TestWalstoreUnitWaitsForAnUnreachableMasterWithoutBurningItsStartLimit(t *testing.T) {
|
||||
if os.Getenv("GAP1_SYSTEMD_AUTHORIZED") != "1" {
|
||||
t.Fatal("explicit real-systemd qualification authorization required; no skip counts as proof")
|
||||
}
|
||||
if os.Geteuid() != 0 {
|
||||
t.Fatal("systemd qualification needs root")
|
||||
}
|
||||
shipped := gap1ShippedPolicy(t)
|
||||
interval, burst := shippedStartLimit(t)
|
||||
|
||||
exe := filepath.Join(t.TempDir(), "blockvolume")
|
||||
if d := os.Getenv("SWBLOCK_TEST_BINS"); d != "" {
|
||||
exe = filepath.Join(d, "blockvolume")
|
||||
} else {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||
out, err := exec.CommandContext(ctx, "go", "build", "-o", exe, "github.com/seaweedfs/seaweed-block/cmd/blockvolume").CombinedOutput()
|
||||
cancel()
|
||||
if err != nil {
|
||||
t.Fatalf("build blockvolume: %v %s", err, out)
|
||||
}
|
||||
}
|
||||
masterBin := filepath.Join(filepath.Dir(exe), "blockmaster")
|
||||
if os.Getenv("SWBLOCK_TEST_BINS") == "" {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||
out, err := exec.CommandContext(ctx, "go", "build", "-o", masterBin, "github.com/seaweedfs/seaweed-block/cmd/blockmaster").CombinedOutput()
|
||||
cancel()
|
||||
if err != nil {
|
||||
t.Fatalf("build blockmaster: %v %s", err, out)
|
||||
}
|
||||
}
|
||||
master, data, ctrl, statusAddr, nvme := handoffAddress(t), handoffAddress(t), handoffAddress(t), handoffAddress(t), handoffAddress(t)
|
||||
// nothing listens at master until blockmaster starts below
|
||||
|
||||
unit := fmt.Sprintf("swb-c04-walstore-wait-%d.service", os.Getpid())
|
||||
writeRuntimeUnit(t, unit, exe, []string{"--master", master, "--server-id", "s1", "--volume-id", "v1", "--replica-id", "r1",
|
||||
"--data-addr", data, "--ctrl-addr", ctrl, "--status-addr", statusAddr, "--durable-root", t.TempDir(), "--durable-impl", "walstore",
|
||||
"--durable-blocks", "64", "--nvme-listen", nvme, "--nvme-subsysnqn", "nqn.2026-05.io.seaweedfs:v1"}, []string{
|
||||
"StartLimitIntervalSec=" + interval,
|
||||
"StartLimitBurst=" + burst,
|
||||
}, []string{
|
||||
"Restart=on-failure",
|
||||
"RestartSec=" + shipped["RestartSec"],
|
||||
"RestartPreventExitStatus=" + shipped["RestartPreventExitStatus"],
|
||||
"TimeoutStopSec=" + shipped["TimeoutStopSec"],
|
||||
})
|
||||
if out, err := runSystemctl("start", unit); err != nil {
|
||||
t.Fatalf("start %s: %v %s", unit, err, out)
|
||||
}
|
||||
// A 5-minute outage: on the old behaviour the unit has failed after
|
||||
// StartLimitBurst starts RestartSec apart, well before this.
|
||||
window := 5 * time.Minute
|
||||
started := time.Now()
|
||||
var state map[string]string
|
||||
for time.Since(started) < window {
|
||||
time.Sleep(2 * time.Second)
|
||||
s, err := gap1ReadUnit(unit)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
state = s
|
||||
if s["ActiveState"] == "failed" {
|
||||
t.Fatalf("the unit gave up %v into the master outage: NRestarts %s Result %s; journal: %s",
|
||||
time.Since(started).Round(time.Second), s["NRestarts"], s["Result"], lastLines(unitJournal(unit), 15))
|
||||
}
|
||||
}
|
||||
journal := unitJournal(unit)
|
||||
t.Logf("walstore unit after %v with no master: ActiveState %s NRestarts %s", window, state["ActiveState"], state["NRestarts"])
|
||||
if state["ActiveState"] != "active" || state["NRestarts"] != "0" {
|
||||
t.Fatalf("after %v: ActiveState %s NRestarts %s; want active with no restart; journal: %s", window, state["ActiveState"], state["NRestarts"], lastLines(journal, 15))
|
||||
}
|
||||
if !strings.Contains(journal, "waiting for the master at "+master+" to answer this replica's store record: no reply for") {
|
||||
t.Fatalf("the journal does not name the wait: %s", lastLines(journal, 15))
|
||||
}
|
||||
if reason := statusNotReadyReason(statusAddr, "v1"); reason != "waiting_for_master" {
|
||||
t.Fatalf("/status NotReadyReason %q during the wait; want waiting_for_master", reason)
|
||||
}
|
||||
|
||||
// blockmaster starts: the waiting process goes on and serves, with no restart.
|
||||
dir := t.TempDir()
|
||||
topo := filepath.Join(dir, "topology.yaml")
|
||||
nl := string(rune(10))
|
||||
if err := os.WriteFile(topo, []byte("volumes:"+nl+" - volume_id: v1"+nl+" slots:"+nl+" - replica_id: r1"+nl+" server_id: s1"+nl), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
mlog, err := os.Create(filepath.Join(dir, "blockmaster.log"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
mc := exec.Command(masterBin, "--authority-store", filepath.Join(dir, "master"), "--listen", master, "--topology", topo, "--expected-slots-per-volume", "1")
|
||||
mc.Stdout, mc.Stderr = mlog, mlog
|
||||
if err := mc.Start(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Cleanup(func() { _ = mc.Process.Kill(); _ = mc.Wait(); mlog.Close() })
|
||||
back := time.Now()
|
||||
for !volumeFrontendReady(statusAddr, "v1") {
|
||||
if time.Since(back) > 2*time.Minute {
|
||||
b, _ := os.ReadFile(mlog.Name())
|
||||
t.Fatalf("v1 never served after blockmaster started; journal: %s; blockmaster: %s", lastLines(unitJournal(unit), 15), lastLines(string(b), 10))
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
s, _ := gap1ReadUnit(unit)
|
||||
t.Logf("walstore unit served %v after blockmaster started: ActiveState %s NRestarts %s", time.Since(back).Round(time.Second), s["ActiveState"], s["NRestarts"])
|
||||
if s["ActiveState"] != "active" || s["NRestarts"] != "0" {
|
||||
t.Fatalf("after serving: ActiveState %s NRestarts %s; want active with no restart", s["ActiveState"], s["NRestarts"])
|
||||
}
|
||||
}
|
||||
|
||||
// statusNotReadyReason is /status's NotReadyReason for vol ("" when unreadable).
|
||||
func statusNotReadyReason(statusAddr, vol string) string {
|
||||
resp, err := http.Get("http://" + statusAddr + "/status?volume=" + vol)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
var p struct{ NotReadyReason string }
|
||||
if json.NewDecoder(resp.Body).Decode(&p) != nil {
|
||||
return ""
|
||||
}
|
||||
return p.NotReadyReason
|
||||
}
|
||||
|
||||
func lastLines(s string, n int) string {
|
||||
lines := strings.Split(strings.TrimSpace(s), string(rune(10)))
|
||||
if len(lines) > n {
|
||||
lines = lines[len(lines)-n:]
|
||||
}
|
||||
return strings.Join(lines, " | ")
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/host/volume"
|
||||
control "github.com/seaweedfs/seaweed-block/core/rpc/control"
|
||||
"github.com/seaweedfs/seaweed-block/core/storage"
|
||||
"google.golang.org/grpc/codes"
|
||||
@@ -15,57 +13,6 @@ import (
|
||||
// its durable open.
|
||||
const replicaStoreQueryTimeout = 10 * time.Second
|
||||
|
||||
// replicaStoreRetryEvery paces the store record read while blockmaster gives
|
||||
// no reply, and replicaStoreWaitLogEvery its log line. Vars only so a test
|
||||
// can shorten them.
|
||||
var (
|
||||
replicaStoreRetryEvery = 2 * time.Second
|
||||
replicaStoreWaitLogEvery = 30 * time.Second
|
||||
)
|
||||
|
||||
// readReplicaStore reads the master's record of this replica's store. While
|
||||
// blockmaster gives no reply (volume.MasterCallClass: neither contact nor a
|
||||
// credentials refusal) the process waits and reads again, with no bound, so
|
||||
// a start during a master outage does not exit and burn the unit's start
|
||||
// limit. It runs before the store is opened or created, so nothing is
|
||||
// written meanwhile; waiting reports the wait (for /status) and the log
|
||||
// repeats it every replicaStoreWaitLogEvery with the master's address and the
|
||||
// time waited. Any answer, a credentials refusal, or ctx's end returns the
|
||||
// last result.
|
||||
func readReplicaStore(ctx context.Context, master string, read func(context.Context) (*control.GetReplicaStoreResponse, error), logf func(string, ...any), waiting func(bool)) (*control.GetReplicaStoreResponse, error) {
|
||||
var since, logged time.Time
|
||||
defer func() {
|
||||
if !since.IsZero() {
|
||||
waiting(false)
|
||||
}
|
||||
}()
|
||||
for {
|
||||
qctx, cancel := context.WithTimeout(ctx, replicaStoreQueryTimeout)
|
||||
rec, err := read(qctx)
|
||||
cancel()
|
||||
contact, credentials := volume.MasterCallClass(err)
|
||||
if contact || credentials || ctx.Err() != nil {
|
||||
if !since.IsZero() && ctx.Err() == nil {
|
||||
logf("blockvolume: the master at %s answered this replica's store record after %s", master, time.Since(since).Round(time.Second))
|
||||
}
|
||||
return rec, err
|
||||
}
|
||||
if since.IsZero() {
|
||||
since = time.Now()
|
||||
waiting(true)
|
||||
}
|
||||
if logged.IsZero() || time.Since(logged) >= replicaStoreWaitLogEvery {
|
||||
logged = time.Now()
|
||||
logf("blockvolume: waiting for the master at %s to answer this replica's store record: no reply for %s (%v); nothing is created or written meanwhile", master, time.Since(since).Round(time.Second), err)
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return rec, err
|
||||
case <-time.After(replicaStoreRetryEvery):
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// storeAdmission is how the durable open may treat the local store: with
|
||||
// mustExist it never creates one (a missing store is refused at the open
|
||||
// itself), and a nonzero id is the store it must find.
|
||||
@@ -80,8 +27,7 @@ type storeAdmission struct {
|
||||
// exists:
|
||||
//
|
||||
// answer store present store absent
|
||||
// no reply (waited out in-process by readReplicaStore; only a shutdown ends the wait)
|
||||
// other error refuse 75 refuse 75
|
||||
// error / timeout refuse 75 refuse 75
|
||||
// older master (Unimplemented) open as before refuse 75 master_too_old
|
||||
// not listed open as before refuse 75 volume_not_listed
|
||||
// listed, replicated, non-primary open or create (peer rebuild path, as before)
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
control "github.com/seaweedfs/seaweed-block/core/rpc/control"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// The store record read waits inside the process while blockmaster gives no
|
||||
// reply (Unavailable, DeadlineExceeded, a timed-out read), logging once, and
|
||||
// returns the first answer; any other result returns at once (a credentials
|
||||
// refusal, an older master, an answered error), and so does a shutdown.
|
||||
func TestReadReplicaStoreWaitsOnlyWhileTheMasterGivesNoReply(t *testing.T) {
|
||||
prev := replicaStoreRetryEvery
|
||||
replicaStoreRetryEvery = time.Millisecond
|
||||
t.Cleanup(func() { replicaStoreRetryEvery = prev })
|
||||
want := &control.GetReplicaStoreResponse{Listed: true}
|
||||
script := func(errs ...error) (func(context.Context) (*control.GetReplicaStoreResponse, error), *int) {
|
||||
calls := 0
|
||||
return func(context.Context) (*control.GetReplicaStoreResponse, error) {
|
||||
calls++
|
||||
if calls <= len(errs) {
|
||||
return nil, errs[calls-1]
|
||||
}
|
||||
return want, nil
|
||||
}, &calls
|
||||
}
|
||||
logs := 0
|
||||
logf := func(string, ...any) { logs++ }
|
||||
var states []bool
|
||||
waiting := func(w bool) { states = append(states, w) }
|
||||
|
||||
read, calls := script(status.Error(codes.Unavailable, "connection refused"), status.Error(codes.DeadlineExceeded, "deadline"), context.DeadlineExceeded)
|
||||
if rec, err := readReplicaStore(context.Background(), "127.0.0.1:9180", read, logf, waiting); err != nil || rec != want || *calls != 4 || logs != 2 {
|
||||
t.Fatalf("no reply three times, then an answer: rec %v err %v calls %d logs %d (want the answer after 4 reads, 2 log lines)", rec, err, *calls, logs)
|
||||
}
|
||||
if len(states) != 2 || !states[0] || states[1] {
|
||||
t.Fatalf("the wait was reported %v; want waiting, then not", states)
|
||||
}
|
||||
// The log line repeats at its cadence, not at every read.
|
||||
prevLog := replicaStoreWaitLogEvery
|
||||
replicaStoreWaitLogEvery = 50 * time.Millisecond
|
||||
t.Cleanup(func() { replicaStoreWaitLogEvery = prevLog })
|
||||
logs, slow := 0, 0
|
||||
slowRead := func(context.Context) (*control.GetReplicaStoreResponse, error) {
|
||||
slow++
|
||||
if slow > 60 {
|
||||
return want, nil
|
||||
}
|
||||
time.Sleep(5 * time.Millisecond)
|
||||
return nil, status.Error(codes.Unavailable, "down")
|
||||
}
|
||||
if _, err := readReplicaStore(context.Background(), "m", slowRead, logf, func(bool) {}); err != nil || logs < 3 || logs > 12 {
|
||||
t.Fatalf("about 300 ms of no reply at a 50 ms cadence logged %d lines (err %v); want a few, not one per read", logs, err)
|
||||
}
|
||||
for _, e := range []error{status.Error(codes.Unauthenticated, "bad cert"), status.Error(codes.Unimplemented, "older"), status.Error(codes.Internal, "boom"), errors.New("plain")} {
|
||||
read, calls := script(e)
|
||||
if _, err := readReplicaStore(context.Background(), "m", read, logf, func(bool) {}); !errors.Is(err, e) || *calls != 1 {
|
||||
t.Fatalf("%v: waited (%d reads) instead of returning it", e, *calls)
|
||||
}
|
||||
}
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
never := func(context.Context) (*control.GetReplicaStoreResponse, error) {
|
||||
cancel()
|
||||
return nil, status.Error(codes.Unavailable, "down")
|
||||
}
|
||||
done := make(chan error, 1)
|
||||
go func() { _, err := readReplicaStore(ctx, "m", never, logf, func(bool) {}); done <- err }()
|
||||
select {
|
||||
case err := <-done:
|
||||
if status.Code(err) != codes.Unavailable {
|
||||
t.Fatalf("a shutdown during the wait: %v", err)
|
||||
}
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("a shutdown did not end the wait")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package layout
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// pausedAfterWindow is the store as a paused adopter sees it: its first HEAD
|
||||
// read returns the HEAD of that moment, and then, before the adopter acts on
|
||||
// it, the rest of the cluster moves on (pause).
|
||||
type pausedAfterWindow struct {
|
||||
*chainStore
|
||||
reads int
|
||||
pause func()
|
||||
}
|
||||
|
||||
func (s *pausedAfterWindow) ReadHead(ctx context.Context) (Head, bool, error) {
|
||||
h, found, err := s.chainStore.ReadHead(ctx)
|
||||
s.reads++
|
||||
if s.reads == 1 && s.pause != nil {
|
||||
s.pause()
|
||||
}
|
||||
return h, found, err
|
||||
}
|
||||
|
||||
// An adopter that passed its delete-intent window and then paused must not
|
||||
// re-tag the page once the window has moved on. During its pause a cleaner
|
||||
// pass moved the HEAD generation, the unlinked page was deleted, and another
|
||||
// executor of the same operation staged it again at the new base. Acting on
|
||||
// its stale window, the adopter would take over that new executor's page
|
||||
// under the old base's writer tag; it must refuse instead and leave the page
|
||||
// as the new executor staged it.
|
||||
func TestAPausedAdopterDoesNotRetagAPageStagedAgainAfterItsWindow(t *testing.T) {
|
||||
s, c, p := deleteIntentFixture(t)
|
||||
ctx := context.Background()
|
||||
base := s.h.Gen
|
||||
if _, err := StageSnapshotDeletePage(ctx, s, base, p); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
rel, err := c.Ref.Path()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
paused := &pausedAfterWindow{chainStore: s, pause: func() {
|
||||
// A cleaner pass (two HEAD generations) removes the unlinked page,
|
||||
// then another executor stages it again at the new base.
|
||||
s.h.Gen = base + 2
|
||||
delete(s.objs, s.full(rel))
|
||||
if _, err := StageSnapshotDeletePage(ctx, s, base+2, p); err != nil {
|
||||
t.Errorf("the second executor's staging: %v", err)
|
||||
}
|
||||
}}
|
||||
adoptErr := adoptDeleteIntentPage(ctx, paused, s.volume, base, c.Ref)
|
||||
|
||||
meta, found, err := s.Stat(ctx, rel)
|
||||
if err != nil || !found {
|
||||
t.Fatalf("stat the page: %v %v", found, err)
|
||||
}
|
||||
if meta.Session != p.Producer || meta.Mark != "" {
|
||||
t.Fatalf("the paused adopter re-tagged the page staged at the new base: tags %+v (adopt: %v), want the second executor's %q", meta, adoptErr, p.Producer)
|
||||
}
|
||||
if adoptErr == nil {
|
||||
t.Fatal("the paused adopter acted on a window that had moved on: want a refusal")
|
||||
}
|
||||
if !errors.Is(adoptErr, ErrPrecondition) && !errors.Is(adoptErr, ErrBusy) {
|
||||
t.Fatalf("the paused adopter was refused with %v, want ErrPrecondition or ErrBusy", adoptErr)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package chunkstore
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore/filerpb"
|
||||
"github.com/seaweedfs/seaweed-block/core/frontend/chunkstore/layout"
|
||||
)
|
||||
|
||||
// betweenLookupAndUpdate runs before, once, ahead of the first UpdateEntry:
|
||||
// what other writers do while a stale one is between its lookup and its
|
||||
// conditional update.
|
||||
type betweenLookupAndUpdate struct {
|
||||
Filer
|
||||
once sync.Once
|
||||
before func()
|
||||
}
|
||||
|
||||
func (f *betweenLookupAndUpdate) UpdateEntry(ctx context.Context, dir string, e *filerpb.Entry, expected map[string][]byte) error {
|
||||
f.once.Do(f.before)
|
||||
return f.Filer.UpdateEntry(ctx, dir, e, expected)
|
||||
}
|
||||
|
||||
// A stale metadata change (a delete-intent page's adoption by an executor
|
||||
// that paused between its lookup and its update) must not write the entry it
|
||||
// looked up over an object that was deleted and created again with the same
|
||||
// tags in between: the update would put the deleted object's chunk list on
|
||||
// the new entry, and the filer frees the new entry's chunks.
|
||||
func TestAStaleMetadataChangeDoesNotOverwriteARecreatedObject(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
f, b := newFakeFiler(), newFakeBlobs()
|
||||
var id layout.VolumeID
|
||||
for i := range id {
|
||||
id[i] = 0x30 + byte(i)
|
||||
}
|
||||
others, err := NewLayoutStore(f, b, "/vol", id)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
hooked := &betweenLookupAndUpdate{Filer: f}
|
||||
stale, err := NewLayoutStore(hooked, b, "/vol", id)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
data := bytes.Repeat([]byte{0x5a}, 4096)
|
||||
rel := layout.NameChunk(1, data).Path()
|
||||
dir, name, err := others.object(rel)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
fidOf := func() string {
|
||||
t.Helper()
|
||||
e, err := f.LookupEntry(ctx, dir, name)
|
||||
if err != nil || len(e.Chunks) != 1 {
|
||||
t.Fatalf("lookup %s: %+v %v", rel, e, err)
|
||||
}
|
||||
return e.Chunks[0].FileId
|
||||
}
|
||||
|
||||
if err := others.Create(ctx, rel, data, "producer-1"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
first := fidOf()
|
||||
meta, found, err := others.Stat(ctx, rel)
|
||||
if err != nil || !found {
|
||||
t.Fatalf("stat: %v %v", found, err)
|
||||
}
|
||||
var second string
|
||||
hooked.before = func() {
|
||||
// While the stale writer is between lookup and update: a cleaner
|
||||
// marks and deletes the object, and another executor of the same
|
||||
// operation creates it again with the same producer tag.
|
||||
if err := others.Mark(ctx, rel, meta, "clean-1"); err != nil {
|
||||
t.Errorf("mark: %v", err)
|
||||
}
|
||||
if err := others.DeleteMarked(ctx, rel, "clean-1"); err != nil {
|
||||
t.Errorf("delete: %v", err)
|
||||
}
|
||||
if err := others.Create(ctx, rel, data, "producer-1"); err != nil {
|
||||
t.Errorf("re-create: %v", err)
|
||||
}
|
||||
second = fidOf()
|
||||
}
|
||||
reuseErr := stale.Reuse(ctx, rel, meta, "writer-1")
|
||||
|
||||
if second == "" || second == first {
|
||||
t.Fatalf("fixture: the object was not re-created with a new chunk (first %s, second %s)", first, second)
|
||||
}
|
||||
if got := fidOf(); got != second {
|
||||
t.Fatalf("the stale update wrote the deleted object's chunk %s over the re-created object's %s (Reuse: %v)", got, second, reuseErr)
|
||||
}
|
||||
if !errors.Is(reuseErr, layout.ErrPrecondition) {
|
||||
t.Fatalf("the stale update over a re-created object answered %v, want ErrPrecondition", reuseErr)
|
||||
}
|
||||
}
|
||||
@@ -68,8 +68,8 @@ func TestGetReplicaStoreAnswersFromTheMastersCreationFact(t *testing.T) {
|
||||
}
|
||||
for _, bad := range []string{"zz", "00000000000000000000000000000000"} {
|
||||
seed(&attestedStores{Stores: map[string]string{"r1": bad}})
|
||||
if r, err := ask("vol"); status.Code(err) != codes.FailedPrecondition {
|
||||
t.Fatalf("an invalid recorded id %q: %+v %v, want FailedPrecondition (an answer, never creating)", bad, r, err)
|
||||
if r, err := ask("vol"); status.Code(err) != codes.Unavailable {
|
||||
t.Fatalf("an invalid recorded id %q: %+v %v, want Unavailable (never creating)", bad, r, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -609,7 +609,7 @@ func (s *services) GetReplicaStore(ctx context.Context, q *control.GetReplicaSto
|
||||
state, id := s.host.ReplicaStoreState(q.GetVolumeId(), q.GetReplicaId())
|
||||
switch state {
|
||||
case replicaStoreUnknown:
|
||||
return nil, status.Error(codes.FailedPrecondition, "the replica's store record is unreadable (an invalid recorded store id)")
|
||||
return nil, status.Error(codes.Unavailable, "the replica's store record is unreadable (an invalid recorded store id)")
|
||||
case replicaStoreEnded:
|
||||
out.CreationEnded = true
|
||||
if !id.IsZero() {
|
||||
|
||||
@@ -65,11 +65,11 @@ func newMasterWait(now func() time.Time, logf func(string, ...any)) *masterWait
|
||||
return &masterWait{now: now, logf: logf}
|
||||
}
|
||||
|
||||
// MasterCallClass sorts a call result: a reply produced by blockmaster's
|
||||
// masterCallClass sorts a call result: a reply produced by blockmaster's
|
||||
// handler (any status but the transport codes) is contact; Unavailable,
|
||||
// DeadlineExceeded and Canceled are no reply; Unauthenticated and
|
||||
// PermissionDenied are a credentials refusal.
|
||||
func MasterCallClass(err error) (contact, credentials bool) {
|
||||
func masterCallClass(err error) (contact, credentials bool) {
|
||||
if err == nil {
|
||||
return true, false
|
||||
}
|
||||
@@ -95,7 +95,7 @@ func MasterCallClass(err error) (contact, credentials bool) {
|
||||
// assignment to accept). The heartbeat does not check identity, so its
|
||||
// answers alone do not end it sooner.
|
||||
func (w *masterWait) call(err error) {
|
||||
contact, credentials := MasterCallClass(err)
|
||||
contact, credentials := masterCallClass(err)
|
||||
identity := ""
|
||||
r := leaseRefusalDetail(err)
|
||||
if r != nil && r.GetKind() == control.WorkspaceLeaseRefusal_IDENTITY {
|
||||
|
||||
@@ -485,21 +485,3 @@ func TestRecordedRevocationFinalRequiresTypedFailedPrecondition(t *testing.T) {
|
||||
t.Fatal("log text became a terminal verdict")
|
||||
}
|
||||
}
|
||||
|
||||
// While the start waits for blockmaster's first answer, /status says
|
||||
// waiting_for_master, ahead of any other reason, and is not ready.
|
||||
func TestStatusSaysWaitingForMasterDuringTheStartupWait(t *testing.T) {
|
||||
p := stubProjector{p: engine.ReplicaProjection{Mode: engine.ModeHealthy, Epoch: 1, EndpointVersion: 1}}
|
||||
view := NewAdapterProjectionView(p, "v1", "r1", nil)
|
||||
s := NewStatusServer(view)
|
||||
s.SetDurableStatusSource(stubDurableStatusSource{vols: []durable.VolumeStatus{{VolumeID: "v1", Operational: true}}})
|
||||
waiting := true
|
||||
s.SetStartupWait(func() bool { return waiting })
|
||||
if got := s.statusProjection(); got.FrontendPrimaryReady || got.NotReadyReason != NotReadyWaitingForMaster {
|
||||
t.Fatalf("during the wait: ready %v reason %q", got.FrontendPrimaryReady, got.NotReadyReason)
|
||||
}
|
||||
waiting = false
|
||||
if got := s.statusProjection(); got.NotReadyReason == NotReadyWaitingForMaster {
|
||||
t.Fatalf("after the wait: reason %q", got.NotReadyReason)
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,6 @@ type StatusServer struct {
|
||||
peerSource peerStatusSource
|
||||
durableSource durableStatusSource
|
||||
masterWait func() *MasterWait // why a workspace primary holds no grant; nil: not wired
|
||||
startupWait func() bool // true while the start waits for blockmaster's first answer; nil: not wired
|
||||
nvmeSource nvmeStatusSource
|
||||
guestSources map[string]func() int // frontend -> guests connected now
|
||||
ublkSource ublkStatusSource
|
||||
@@ -620,17 +619,6 @@ func (s *StatusServer) handleStatusNVMe(w http.ResponseWriter, r *http.Request)
|
||||
// the lease-readiness gate (no claim, no listen, not ready).
|
||||
const NotReadyLeaseNotHeld = "lease_not_held"
|
||||
|
||||
// NotReadyWaitingForMaster: the start waits for blockmaster to answer before
|
||||
// it opens or creates the volume's store (blockmaster gives no reply).
|
||||
const NotReadyWaitingForMaster = "waiting_for_master"
|
||||
|
||||
// SetStartupWait wires whether the start is waiting for blockmaster's answer.
|
||||
func (s *StatusServer) SetStartupWait(f func() bool) {
|
||||
s.mu.Lock()
|
||||
s.startupWait = f
|
||||
s.mu.Unlock()
|
||||
}
|
||||
|
||||
func (s *StatusServer) statusProjection() StatusProjection {
|
||||
p := s.authorityProjection()
|
||||
authorityReady := p.FrontendPrimaryReady
|
||||
@@ -640,7 +628,6 @@ func (s *StatusServer) statusProjection() StatusProjection {
|
||||
p.FrontendPrimaryReady = p.FrontendPrimaryReady && !nvmePending
|
||||
src := s.durableSource
|
||||
masterWait := s.masterWait
|
||||
startupWait := s.startupWait
|
||||
s.mu.Unlock()
|
||||
// INV-FE-PRIMARY-READY-OPERATIONAL-001: not FrontendPrimaryReady while the
|
||||
// local backend admits no I/O (before the storage claim of a chunk volume,
|
||||
@@ -672,14 +659,8 @@ func (s *StatusServer) statusProjection() StatusProjection {
|
||||
if backendReason != "" || leaseNotHeld || profileRefusal != "" {
|
||||
p.FrontendPrimaryReady = false
|
||||
}
|
||||
waiting := startupWait != nil && startupWait()
|
||||
if waiting {
|
||||
p.FrontendPrimaryReady = false
|
||||
}
|
||||
if !p.FrontendPrimaryReady {
|
||||
switch {
|
||||
case waiting:
|
||||
p.NotReadyReason = NotReadyWaitingForMaster
|
||||
case profileRefusal != "":
|
||||
p.NotReadyReason = profileRefusal
|
||||
case leaseNotHeld:
|
||||
|
||||
@@ -547,8 +547,6 @@ Tests: `TestMaintenanceKickRunsAPassNow`, `TestMaintenanceKickedBusyPassRetriesS
|
||||
`TestDefaultConfigCleansAfterEachSnapshotDelete`. Detach/fence/Close cancels and joins before
|
||||
catalog/storage release; only a still-current handle may re-arm after safe abort.
|
||||
A pass has no total deadline. Its one-minute no-progress window renews only on a strict advance of this pass's finite (phase, cursor) work position; a stalled pass answers `no_progress`. Each remote request has a separate 30 s deadline; request attempts never renew the window. The existing cursor resumes later; retention failure skips cleaning.
|
||||
A scoped GC pass traces the whole catalog but mutates only its target volume,
|
||||
with a separate scope/config-bound mark. Incomplete marks carry no coverage.
|
||||
|
||||
The scheduled-snapshot worker runs beside it under the same owner and join, on
|
||||
in-process monotonic time: `Armed -> Due -> Running -> Armed`. A success sets the
|
||||
@@ -1038,7 +1036,7 @@ Notes:
|
||||
| `INV-WS-HEAD-KEY-PROVENANCE-001` | RETIRED at the cut-over to the content-named store: intents are gone and a content name may be written again. Replaced by `INV-SNAPK-COMMIT-REACH-001`. | M5 Manifest → CAS | — (`PrepareManifest` and `core/frontend/chunkstore/manifest.go` were deleted) | — | — | ARCHIVED |
|
||||
| `INV-WS-REOPEN-FENCE-001` | Retired: the legacy same-holder reopen replaced HEAD generation. B fences by claim id and local-root lineage (`INV-SNAPK-START-ROOT-001`, `INV-SNAPK-START-CLAIM-001`, `INV-SNAPK-STALE-HOLDER-001`); an ordinary same-root reopen may leave HEAD unchanged. | legacy M4 | — | — | — | ARCHIVED |
|
||||
| `INV-WS-SEALED-REOPEN-001` | A same-epoch Start cannot reactivate a detached HEAD: it refuses before another HEAD update or serving, preserving its current root, position and detached state for a higher-epoch claimant. | M9 detached → higher-epoch idle | `core/frontend/chunkstore/layout/start.go` `Start`; `core/frontend/chunkstore/layout/claim.go` `Claim` | `TestCommitDetached_ProofAndLostReply`, `TestDetachedHEAD_RefusesEveryHolderTransition` (`core/frontend/chunkstore/layout/detached_test.go`); `TestRestoreEqualOwnerDetachedHEADStaysSealed` (`core/frontend/durable/provider_seed_order_test.go`) | `INV-SNAPK-DETACHED-001` | ACTIVE |
|
||||
| `INV-WS-SEAL-REPLAY-001` | A repeated plain seal, also after a same-epoch detached restart, succeeds only from a fresh B HEAD with exact epoch, holder and local claim id. It returns that HEAD/frontier without a new generation. An unreadable or mismatched proof cannot be answered from process memory. | B detached HEAD read | `core/frontend/durable/provider_seal_replay.go` `replayPlainSeal`, `readLayoutSeal`; `cmd/blockvolume/workspace_lease.go` `workspaceLayoutDetachedGeneration` | `TestLayoutPlainDetachReplayAfterRestartNeedsNoLegacyFactory` (`core/frontend/durable/provider_layout_plain_replay_test.go`); `TestWorkspaceLayoutDetachedProof` (`cmd/blockvolume/workspace_layout_proof_test.go`) | K1: detached proof belongs to the exact claim | ACTIVE |
|
||||
| `INV-WS-SEAL-REPLAY-001` | A repeated plain seal, also after a same-epoch detached restart, succeeds only from a fresh B HEAD with exact epoch, holder and local claim id. It returns that HEAD/frontier without a new generation. An unreadable or mismatched proof cannot be answered from process memory. | B detached HEAD read | `core/frontend/durable/provider_seal_replay.go` `replayPlainSeal`, `readLayoutSeal`; `cmd/blockvolume/workspace_lease.go` `workspaceLayoutDetachedGeneration` | `TestLayoutPlainDetachReplayAfterRestartNeedsNoLegacyFactory` (`core/frontend/durable/provider_layout_plain_replay_test.go`); `TestWorkspaceLayoutDetachedProof` (`cmd/blockvolume/workspace_layout_proof_test.go`) | K1: detached proof belongs to the exact claim; `PlainSealReplay` `SuccessNeedsFreshExactProof`, `ValidProofDoesNotNeedProcessMemory` (mutants `PlainSealReplay_memory`, `PlainSealReplay_no_exact`, `PlainSealReplay_layer`) | ACTIVE |
|
||||
| `INV-WS-CAS-UNKNOWN-001` | An unknown HEAD CAS outcome is settled by re-reading HEAD, never by a blind retry; until it is settled the proposal stays pending and its session stays open; settlement replays the same commit in it. | M5 CAS → Pending | `core/storage/chunk_layer.go` `captureLocked`, `resolvePending`; `core/frontend/chunkstore/layout_remote.go` | `TestChunkLayer_C6_UnknownNotAppliedNeverClaimsSuccess` (`core/storage/chunk_layer_contract_test.go`); `TestSession_UncertainCommitIsNotAbortedUntilSettled` (`core/storage/chunk_layer_session_test.go`); `TestLayoutRemote_LostReplyOfTheFirstCutIsNotAFence`, `TestLayoutRemote_LostReplyOfALaterCutWithAnInheritedChunkIsNotAFence`, `TestLayoutRemote_LostReplyOfANoOpCutIsNotAFence` (`core/frontend/chunkstore/layout_remote_same_proposal_test.go`); `TestLevelZeroCutRefusalDoesNotBecomeAnUnresolvedPublication` (`core/frontend/chunkstore/layout_format_refusal_test.go`); `TestARefusedReproposalDoesNotSettleAnEarlierUnknownWrite`, `TestARefusedConfirmationReadDoesNotUnpublishTheSuccessfulWrite` (`core/storage/chunk_head_refusal_test.go`) | — | ACTIVE |
|
||||
| `INV-WS-CLAIM-BEFORE-SERVE-001` | A new B holder claims HEAD at its issued epoch only after the local root is validated against the HEAD it updates; an older epoch or another holder at the same epoch is refused, and guest writes stay closed until assignment and claim. | M9 Start → Claim → Serving | `core/frontend/chunkstore/layout/start.go` `Start`; `core/frontend/durable/provider_layout.go` `startLayoutRoot` | `TestStart_ValidatesAgainstTheHeadItUpdates`, `TestStart_Refusals` (`core/frontend/chunkstore/layout/start_test.go`); `TestStart_TheClaimRechecksTheSeedRule` (`core/frontend/chunkstore/layout/start_seed_test.go`); `TestFreshStoreRefusesWriteBeforeAssignmentThenPublishesAfterClaim` (`core/frontend/durable/provider_restore_schedule_test.go`) | `INV-SNAPK-START-LINEAGE-001`, `INV-SNAPK-START-CLAIM-001` | ACTIVE |
|
||||
| `INV-VOL-GEOMETRY-FLAGS-RECORD-001` | A create-mode start whose `--durable-blocks`/`--durable-blocksize` disagree with the volume record exits 78 before any local store exists; an existing store is checked only at attach; an absent record keeps the create path; an unread record exits 75 (filer failed) or 78 (corrupt). | blockvolume startup (before the durable provider) | `cmd/blockvolume/main.go`; `cmd/blockvolume/chunk_remote.go` `geometryFlagsRefusal`; `core/frontend/chunkstore/layout/volume.go`, `start.go`, `create.go`; `core/frontend/chunkstore/catalog_b.go` | `TestGeometryFlagsRefusalComparesTheRecord`, `TestVolumeRequiresGeometry`, `TestVolumeGeometryChecksAndIsImmutable`, `TestStartGeometryMismatchPrecedesClaim`, `TestBCatalogRestoreCopiesVolumeGeometry`, `TestVolumeGeometryLivesOnlyInVolume` | K3: immutable required VOLUME geometry; Start checks the local persisted shape before claim; restores copy source geometry; no resize or compatibility path. | ACTIVE |
|
||||
@@ -1083,7 +1081,7 @@ Notes:
|
||||
| `INV-WS-FORCED-CONFIRM-NO-BYPASS-001` | No force-move flag bypasses the confirmation, and `--dry-run` is never a confirmation: it sends only a preview, which needs the same confirmation. | M2 lease: Expired → Moved (forced) (the explicit-force guard) | `cmd/sw-block/workspace.go` `runWorkspaceForceMove`, `workspacePreview`; `core/rpc/wsclient/wsclient.go` `PreviewForcedMove` | `TestWorkspaceForceMove_Row2_DryRunPreview`, `TestWorkspaceHelpText` (`cmd/sw-block/workspace_test.go`) | — | ACTIVE |
|
||||
| `INV-ATTACH-ASSIGNMENT-BOUND-001` | Without a master wait, the assignment allowance is checked between attach attempts; it never cancels a granted attempt's manifest read. Per-fetch bounds, recovery progress and provider Close still apply. | M1 Recovering to Serving (wait scheduling only) | `DurableProvider.chunkAuthorityWait` | `TestDefaultAttachAt262144EntriesOutlivesAssignmentWait`, `TestDefaultGrantedAttachFailureEndsAtAssignmentAllowance` (`core/frontend/durable/default_attach_attempt_test.go`); `TestRestoreDeferredAssignmentWaitEndsOnDeadlineAndClose` (`core/frontend/durable/provider_assignment_test.go`) | none (scheduling; authority guards unchanged) | ACTIVE |
|
||||
| `INV-WS-STARTUP-RETRY-001` | A workspace primary exits 75 on assignment timeout or lease expiry after bounded cleanup. A master fact newer than nonzero observed-own, or an exact foreign HEAD at/above the assigned epoch, permits 78. Newer HEAD/store format: 78. ACK and signal keep normal exit; lease and claim gates never relax. | M2 restart | `cmd/blockvolume/process_exit.go` `superviseProcess`, `workspaceRetryOutcome`; `core/frontend/durable/provider_layout.go` `startLayoutRoot`; `core/frontend/durable/provider_startup.go` `ChunkStartupIdentityRefused`, `ChunkStartupNewerVersion`, `endChunkStartup`; `cmd/blockvolume/process_exit.go` `chooseChunkStartupExit`, `durableOpenFatalExit` | `TestANewerHeadVersionExits78NotRestartable`, `TestAStoreOfANewerFormatExits78` (`cmd/blockvolume/newer_version_exit_test.go`); `TestChunkStartupNewerVersionIsGenerationBound` (`core/frontend/durable/provider_startup_internal_test.go`); `TestChunkAssignmentTimeoutExposesCurrentRecoveryOutcome` (`core/frontend/durable/provider_startup_outcome_test.go`); `TestChunkStartupOutcomeRejectsOldGenerationAndCoalescesWake` (`core/frontend/durable/provider_startup_internal_test.go`); `TestWorkspaceDisplacedClaimUsesAssignedEpoch`, `TestWorkspaceRetryUsesNewestOwnAssignment`, `TestWorkspaceForeignHeadClaimChoosesNoRetry`, `TestWorkspaceOldLocalHolderForeignHeadChoosesNoRetry` (`cmd/blockvolume/process_exit_authority_test.go`); `TestWorkspaceExitFirstOutcomeIsLatched`, `TestWorkspaceExitDoesNotWaitForBlockedFrontendClose`, `TestWorkspacePlannedStopKeepsSuccess` (`cmd/blockvolume/process_exit_test.go`) | Existing WorkspaceRegrant restart transition; no new grant rule | ACTIVE |
|
||||
| `INV-WALSTORE-NO-EMPTY-STORE-001` | A plain walstore holder (single replica, or a replicated volume's line primary) creates its store only on the master's creating answer. Once its store is recorded, or its volume predates attestation, a missing store exits 78 store_lost; an unreadable record exits 75. Neither writes anything. | Holder startup, before the durable open | `cmd/blockvolume/store_admission.go` `decideStoreAdmission`; `cmd/blockvolume/main.go` `runVolume` (before `InitReplicaFloor`); `core/host/master/store_attestation.go` `GetReplicaStore`, `ReplicaStoreState`; `core/frontend/durable/provider.go` `openOrCreate` (`ErrLostStore`) | `TestRF1HolderOnAWipedStateDirectoryRefusesStoreLost` (`cmd/blockvolume/rf1_store_lost_test.go`, process-level); `TestBlockvolumeAsksTheMasterBeforeCreatingItsStore` (`cmd/blockvolume/lost_store_exit_test.go`); `TestReadReplicaStoreWaitsOnlyWhileTheMasterGivesNoReply` (`cmd/blockvolume/store_record_wait_test.go`); `TestStoreAdmissionCreatesOnlyOnAnExplicitCreatingAnswer` (`cmd/blockvolume/store_admission_test.go`); `TestRF3WipedPrimaryRefusesAndASurvivorServesItsData` (`cmd/blockvolume/rf3_primary_store_lost_test.go`, process-level); `TestGetReplicaStoreAnswersFromTheMastersCreationFact` (`core/host/master/get_replica_store_test.go`); `TestGetReplicaStoreAnswersAReplicatedPrimaryFromItsOwnStore` (`core/host/master/primary_store_answer_test.go`); `TestAnEndedVolumeWithoutItsStoreRefusesAndCreatesNothing` (`core/frontend/durable/lost_store_test.go`) | MasterCreate NoEmptyHeadOverLineage projected onto the holder's local store (mutant RecreateWhenReady, here recreate_when_ended); CreateEvid2 creation fact; KnownZero (walstore has no HEAD to hydrate from). A replicated volume's non-primary replica keeps the peer rebuild: a fresh store has no durable LSN and is not the recorded store, so it never counts as a survivor or a promotion candidate | STUB |
|
||||
| `INV-WALSTORE-NO-EMPTY-STORE-001` | A plain walstore holder (single replica, or a replicated volume's line primary) creates its store only on the master's creating answer. Once its store is recorded, or its volume predates attestation, a missing store exits 78 store_lost; an unreadable record exits 75. Neither writes anything. | Holder startup, before the durable open | `cmd/blockvolume/store_admission.go` `decideStoreAdmission`; `cmd/blockvolume/main.go` `runVolume` (before `InitReplicaFloor`); `core/host/master/store_attestation.go` `GetReplicaStore`, `ReplicaStoreState`; `core/frontend/durable/provider.go` `openOrCreate` (`ErrLostStore`) | `TestRF1HolderOnAWipedStateDirectoryRefusesStoreLost` (`cmd/blockvolume/rf1_store_lost_test.go`, process-level); `TestBlockvolumeAsksTheMasterBeforeCreatingItsStore` (`cmd/blockvolume/lost_store_exit_test.go`); `TestStoreAdmissionCreatesOnlyOnAnExplicitCreatingAnswer` (`cmd/blockvolume/store_admission_test.go`); `TestRF3WipedPrimaryRefusesAndASurvivorServesItsData` (`cmd/blockvolume/rf3_primary_store_lost_test.go`, process-level); `TestGetReplicaStoreAnswersFromTheMastersCreationFact` (`core/host/master/get_replica_store_test.go`); `TestGetReplicaStoreAnswersAReplicatedPrimaryFromItsOwnStore` (`core/host/master/primary_store_answer_test.go`); `TestAnEndedVolumeWithoutItsStoreRefusesAndCreatesNothing` (`core/frontend/durable/lost_store_test.go`) | MasterCreate NoEmptyHeadOverLineage projected onto the holder's local store (mutant RecreateWhenReady, here recreate_when_ended); CreateEvid2 creation fact; KnownZero (walstore has no HEAD to hydrate from). A replicated volume's non-primary replica keeps the peer rebuild: a fresh store has no durable LSN and is not the recorded store, so it never counts as a survivor or a promotion candidate | STUB |
|
||||
| `INV-WS-SERVE-AFTER-OWN-STORE-001` | A new volume's primary acknowledges no write until the master has recorded every initial replica's store, its own included (a single-replica volume waits for its own). So a replica's recorded store precedes every write it acknowledges. | Volume creation: stores awaited, then Serving | `core/host/master/store_attestation.go` `awaited`; `core/host/master/services.go` `assignmentFact`; `core/host/volume/workspace_startup.go` `ReplicaStoresAwaited`; `core/host/volume/projection_bridge.go` `replicaStoresAwaited` | `TestAnRF1PrimaryAwaitsItsOwnStoreBeforeServing` (`core/host/master/primary_store_answer_test.go`); `TestNewVolumeAssignmentWaitsForReplicaAttestations` (`core/host/master/store_record_wait_test.go`); `TestNewVolumePrimaryServesNothingBeforeReplicaAttestations` (`core/host/volume/replica_stores_wait_test.go`) | CreateEvid2: a recorded store may hold acknowledged data, which is what lets `INV-WALSTORE-NO-EMPTY-STORE-001` read a recorded store as creation ended | ACTIVE |
|
||||
| `INV-WS-MASTER-WAIT-001` | Startup waits without a bound while the master gives no reply or refuses credentials or identity; after contact it ends 30 s beyond the later of recovery's first reply or the master barrier. Typed MOVED or DELETED ends it with 78, including a confirmed moved source without an own assignment. | M2 Awaiting assignment → Process exited | `core/host/volume/master_wait.go` `masterWait` (contact from heartbeat, stream and renewal results; the refusal kind from the status detail only); `core/frontend/durable/provider_chunk.go` `chunkAuthorityWait` (`ChunkMasterWait`); `cmd/blockvolume/process_exit.go` `chooseChunkStartupExit`; `core/host/master/workspace_service.go` `leaseRefusal`, `renewalMoved`; `core/authority/workspace.go` `WorkspaceSourceMoved`; `core/host/master/services.go` `SubscribeAssignments`; `core/authority/workspace_lease_view.go` `LeaseBarrierError`; `core/host/volume/workspace_lease.go` `renewDelay` (sleeps until just past the barrier time, jittered, at most 2 min; then a 200 ms poll for 5 s); `core/rpc/link/link.go` `MasterReconnect` | `TestChunkAuthorityWaitStartsAtFirstContact`, `TestLeaseGuardSleepsUntilTheBarrier`, `TestStatusShowsTheMasterWait`, `TestCredentialsRefusedForAnHourWaitsAndLogs`, `TestHeartbeatLogsTheMasterWait`, `TestFlappingMasterNeverExpiresEarly` (`core/host/volume/master_wait_test.go`); `TestMasterLinkReconnectsWithinTwoSeconds` (`core/host/volume/master_reconnect_test.go`); `TestChunkAuthorityWaitFollowsTheMasterWait`, `TestChunkAuthorityWaitPassesItsOwnStart`, `TestChunkGrantedAttachThatKeepsFailingIsBounded`, `TestChunkAuthorityWaitAttachesAGrantOnTheBoundsTick` (`core/frontend/durable/provider_master_wait_test.go`); `TestIdentityRefusalWaitsVisibly`, `TestChunkAuthorityWaitAfterASlowOpenGetsItsFullLimit`, `TestIdentityRefusalEndsAndDecays` (`core/host/volume/master_wait_test.go`); `TestIdentityRefusalEndsOnADeliveredAssignment` (`cmd/blockvolume/process_exit_authority_test.go`); `TestIdentityRefusalIsTyped` (`core/host/master/workspace_lease_refusal_kind_test.go`); `TestLeaseRefusalKinds`, `TestRenewalReplicaMismatchAtOlderLineEpochIsOther` (`core/host/master/workspace_lease_refusal_kind_test.go`); `TestChunkStartupExitFinalGives78`, `TestRestartedMovedSourceExits78WithoutAnOwnLine` (`cmd/blockvolume/process_exit_authority_test.go`); `TestWorkspaceSourceMovedProof`, `TestMovedSourceProofCallers`, `TestMasterWaitFinalSites`, `TestMovedAssignmentStreamIsFinalWithoutAnyOwnAssignment`; also in `core/authority/workspace_source_moved_test.go`, `core/host/master/workspace_moved_source_guard_test.go` | Real systemd moved-source and prestarted-target controls remain qualification gates. | ACTIVE |
|
||||
|
||||
@@ -1208,8 +1206,8 @@ Notes:
|
||||
| `INV-CUT-TIMER-SKIP-001` | A periodic cut decided from an older last cut is skipped under the capture lock: no automatic cut follows another within the interval. | M5 periodic trigger (before Admit) | `core/storage/chunk_periodic_cut.go` `CutUnlessCutSince`; `core/frontend/durable/provider_chunk.go` `chunkLoop` | `TestChunkPeriodicCut_SkipsAfterANewerCut`, `TestChunkPeriodicCut_SkipsANewerCutWithAnOlderStamp` (`core/storage/chunk_periodic_cut_test.go`); `TestWALStoreChunk_ExplicitCutOverlappingTheTimerRestartsIt` (`core/frontend/durable/provider_chunk_sched_test.go`) | — | ACTIVE |
|
||||
| `INV-CUT-TIMER-SLOT-WAIT-001` | A periodic cut refused for held host slots, pending urgent work or an earlier ticket is a wait, not a failure: no backoff or minimum spacing; it retries at the next poll in ticket order, and status reports the wait until any later cut succeeds. Other errors keep the backoff. | M5 periodic trigger (before Admit) | `core/frontend/durable/provider_chunk.go` `cutPolicy.after`, `chunkLoop`; `core/hostlimit/limiter.go` `ErrSlotsHeld` | `TestCutPolicy_HostSlotBusyIsAWaitNotAFailure`, `TestCutPolicy_SuccessDuringSlotWaitEndsTheWait`, `TestCutWaitSlot_StatusEndsTheWaitAfterALaterCut`, `TestCutPolicy_TicketOrderWaitBound` (`core/frontend/durable/cut_policy_test.go`); `TestTimerCutRunsSoonAfterHostSlotFrees`, `TestSlotWaitEndsWithASuccessfulDetachSeal` (`core/frontend/durable/host_slot_wait_test.go`); `TestAdmitClosedDuringPoolAcquisitionIsRevoked` (`core/hostlimit/limiter_test.go`) | — | ACTIVE |
|
||||
| `INV-SNAPSHOT-ANSWER-COUNT-001` | Newly produced snapshot creation and listing answers omit the uncomputed chunk count; no manifest scan is added to answer a snapshot. | M9 snapshot answer projection (no transition change) | `core/frontend/chunkstore/control_types.go`, `api.go`; `core/host/volume/chunk_control.go` | `TestSnapshotAfter200MiBWritesOmitsUncomputedChunkCount` (`core/host/volume/snapshot_chunk_count_test.go`) | NONE (pure projection of the published snapshot; no authority or persisted format change) | STUB |
|
||||
| `INV-SPEC-DELETE-RETIRE-001` | Retire spec-removed metadata only under a permanent reservation after no-live-lease and a subsequent HEAD read proves deleted or absent. Read errors, live HEAD and deleting HEAD keep the records. Retirement never removes the reservation or store data. | M4 delete retirement | `core/host/master/spec_retirement.go`; `core/authority/workspace_retirement.go`, `authority_store_file.go` | `TestSpecRetirementReadsHeadOnlyAfterLeaseAndKeepsTombstone`, `TestSpecRetirementRequiresDeletedOrAbsentAndReadableHead`, `TestSpecRetirementDoesNotUseAbsentHeadWithoutReservation`, `TestRetirementKeepsReservationAndWaitsForLiveLease`, `TestFileAuthorityRetirementSurvivesReloadAndKeepsOtherRecords`, `TestSpecRetirementBackgroundBoundsReadsAndCachesTerminalProof`, `TestSpecRetirementLocalFailureDoesNotStopOtherVolumesOrProductTick` | DeleteRetire.ReadOK; DeleteRetire.Retire; DeleteRetire.HostRetire | STUB |
|
||||
| `INV-SPEC-DELETE-RETRY-001` | Startup lease barriers schedule one more retirement pass after the latest observed barrier, independently of the product loop. The pass rechecks every lease and HEAD guard, logs skipped volumes, and is cancelled and joined before stores close. | M4 delete retirement scheduling | `core/host/master/host.go` `Start`, `Close`; `spec_retirement.go` `startPostFloorRetirement` | `TestStandaloneRestartRetriesSpecRetirementAfterLeaseFloor`, `TestRetirementLeaseBarrierIsOnlyASchedulingHint`, `TestPostFloorRetirementTimerJoinsOnCancellation` | DeleteRetire.ReadOK; DeleteRetire.Retire | STUB |
|
||||
| `INV-SPEC-DELETE-RETIRE-001` | Retire spec-removed metadata only under a permanent reservation after no-live-lease and a subsequent HEAD read proves deleted or absent. Read errors, live HEAD and deleting HEAD keep the records. Retirement never removes the reservation or store data. | M4 delete retirement | `core/host/master/spec_retirement.go`; `core/authority/workspace_retirement.go`, `authority_store_file.go` | `TestSpecRetirementReadsHeadOnlyAfterLeaseAndKeepsTombstone`, `TestSpecRetirementRequiresDeletedOrAbsentAndReadableHead`, `TestSpecRetirementDoesNotUseAbsentHeadWithoutReservation`, `TestRetirementKeepsReservationAndWaitsForLiveLease`, `TestFileAuthorityRetirementSurvivesReloadAndKeepsOtherRecords`, `TestSpecRetirementBackgroundBoundsReadsAndCachesTerminalProof`, `TestSpecRetirementLocalFailureDoesNotStopOtherVolumesOrProductTick` | DeleteRetire.ReadOK; DeleteRetire.RetireLine; DeleteRetire.RetirePlace; DeleteRetire.HostRetire | STUB |
|
||||
| `INV-SPEC-DELETE-RETRY-001` | Startup lease barriers schedule one more retirement pass after the latest observed barrier, independently of the product loop. The pass rechecks every lease and HEAD guard, logs skipped volumes, and is cancelled and joined before stores close. | M4 delete retirement scheduling | `core/host/master/host.go` `Start`, `Close`; `spec_retirement.go` `startPostFloorRetirement` | `TestStandaloneRestartRetriesSpecRetirementAfterLeaseFloor`, `TestRetirementLeaseBarrierIsOnlyASchedulingHint`, `TestPostFloorRetirementTimerJoinsOnCancellation` | DeleteRetire.ReadOK; DeleteRetire.RetireLine; DeleteRetire.RetirePlace | STUB |
|
||||
| `INV-SPEC-UNUSED-PLACEMENT-001` | A spec startup prunes an undesired placement only before serving and with no volume record, authority line, binding or deletion reservation, and no skipped authority recovery. The desired spec and seed are one keep set. | M4 registration input | `cmd/blockmaster/main.go`; `core/host/master/spec_retirement.go` | `TestClusterSpecImportRemovesUnusedPlacementMissingFromSpec`, `TestClusterSpecCleanupKeepsRecordsBindingsAuthorityAndSeed` | NONE (registration-only cleanup before controller activity) | STUB |
|
||||
| `INV-CHECK-DELETING-001` | A post-lease reserved volume with HEAD deleting, deleted or absent holds no serving work. Its status is informational and checks issue no lease or holder requests for it. Another volume's failures remain visible. | M9 delete observation | `core/host/master/observation_snapshot.go`, `journal_isolation.go`; `cmd/sw-block/shell_check.go` | `TestSpecRetirementRequiresDeletedOrAbsentAndReadableHead`, `TestSpecRetirementReadsHeadOnlyAfterLeaseAndKeepsTombstone`, `TestClusterCheckDoesNotProbeDeletingOrDeletedVolumes` | DeleteRetire.HostRetire | STUB |
|
||||
| `INV-CLI-DELETE-RETRY-001` | Only the final lease barrier after a committed volume-delete reservation permits retryable true/exit 75 at its horizon. A live-holder Reserve refusal requires stopping the volume first (not_admitted, non-retryable, exit 1). No lease guard is bypassed. | M9 delete admission result projection | `cmd/sw-block/chunk_volume_delete.go` `authorityErr`; `cmd/sw-block/chunk.go` `chunkResult` | `TestVolumeDeleteAdmissionRetryAnswer`; `TestOpsChunkVolumeDeleteRefusalSaysNothingWasPersisted` | MoveAdmission.DelRead; MoveAdmission.DelMark (unchanged guards) | STUB |
|
||||
@@ -1529,7 +1527,7 @@ One row per wait in the data and control paths. Guest-visible rows on one path m
|
||||
|
||||
| Site | Waits for | Bound | Owner that ends it | On expiry | Lock held while waiting | Guest-visible |
|
||||
|---|---|---|---|---|---|---|
|
||||
| `cmd/blockvolume/store_admission.go` `readReplicaStore` (from `runVolume`, before the durable open of a plain walstore holder) | the master's `GetReplicaStore` answer | none while blockmaster gives no reply (`volume.MasterCallClass`); each read `replicaStoreQueryTimeout` (10 s), reads `replicaStoreRetryEvery` (2 s) apart | the master's answer, or a signal (`processExit.parent`) | none: an answer goes to `decideStoreAdmission` (an unreadable record exits 75 `store_record_unreadable`), nothing written while waiting | none | no (no frontend has started) |
|
||||
| `cmd/blockvolume/main.go` `runVolume`, `Host.ReplicaStoreRecord` (one call before the durable open of a plain walstore holder) | the master's `GetReplicaStore` answer | `replicaStoreQueryTimeout` (10 s) | the call's own context | exit 75 `store_record_unreadable`, nothing written; the supervisor restarts the unit | none | no (no frontend has started) |
|
||||
| `core/storage/chunk_publish_settled.go` `runPublishSettled` (from `unlockCap`, on the cut or detach caller's goroutine) | the `OnPublishSettled` hook to return | the hook's duration: the hook must return without blocking and without remote calls, enqueueing its work to its own worker | the hook implementer | none: a stalled hook stalls its caller, and later reports queue without a bound (a nil hook queues nothing) | none (`capMu` and `stMu` released) | yes on detach (the detach caller delivers before returning) |
|
||||
| `cmd/blockvolume/frontend_gate.go` `awaitFrontendStart` (from `runVolume`, before any frontend starts) | the backend's first admitted I/O (`StorageBackend.FirstServing`), or the process's stop waiter returning | none of its own: it ends on the stop waiter, which INV-WS-STARTUP-RETRY-001 bounds (a refused or timed-out claim latches exit 75/78) | `runVolume` (`INV-FE-PRIMARY-READY-OPERATIONAL-001`) | no frontend starts; shutdown as after the frontends | none | no (no target listens yet) |
|
||||
| `cmd/blockvolume/frontend_gate.go` `firstAdmitted` (one goroutine from `runVolume`, workspace chunk primaries only) | the backend's first admitted I/O (`FirstServing`), then `AdmitsIO` passing, re-checked every 50 ms (the backend has no projection-change signal) | until first served or the process outcome (`e.done`), whichever comes first | the process exit owner (`superviseProcess`) through `e.done` | none: it ends without starting the frontends | none | no (no target listens yet) |
|
||||
|
||||
@@ -27,6 +27,10 @@ writing guest:
|
||||
5. **Under `best-effort`, a replica can fall behind while it shows `healthy`.** A `best-effort` write waits for no
|
||||
replica, so a replica whose connection dropped can keep showing `healthy` while it misses writes. Use `sync-quorum`
|
||||
when the replicas must hold the data.
|
||||
6. **An operator failover can be undone by an automatic rebalance.** With `sync-all`, or `sync-quorum` and two
|
||||
replicas, a rebalance blockmaster decided just before `sw-block ops failover` can still be applied after it and move
|
||||
the primary again. No acknowledged write is lost. After a failover, read the line with
|
||||
`sw-block ops volumes --master-api <addr> -o json` and, if the primary moved, repeat the failover against it.
|
||||
|
||||
**Planned for a later release.** Supported replicated volumes are planned for a later release; v1.1.x keeps every replicated
|
||||
configuration a preview. Replicated volumes are a preview: a primary cut off from the block master is not stopped
|
||||
|
||||
@@ -14,6 +14,45 @@ v1.1.1 is a fix release of the v1.1 line. None of its changes alters a stored fo
|
||||
- The `sw-block` commands that `mini` prints assume it is on `PATH`: in the extracted directory, run
|
||||
`export PATH="$PWD:$PATH"`. Its `weed shell` hint needs the full path of the `weed` binary given to `--weed`.
|
||||
|
||||
## Known issue: restarting blockmaster with many declared volumes
|
||||
|
||||
- **What happens:** when blockmaster restarts, it rewrites every declared volume's node and placement records to disk, one by one, before it answers again. With a few hundred declared volumes this can take longer than a running volume's lease. Running volumes then stop (`lease_expired`, exit 75), and the guest sees I/O errors on those volumes while they are stopped.
|
||||
- In our test with 999 declared volumes, blockmaster answered again after about 45 s; the 8 running volumes stopped 12–20 s after the restart.
|
||||
- With 33 declared volumes, nothing stopped.
|
||||
- No acknowledged data is lost.
|
||||
- **Recovery:** a stopped volume comes back only if it is supervised. The shipped systemd unit restarts a volume that exits 75; in our test the volumes were serving again within a minute. Otherwise, start the volume again yourself.
|
||||
- **Where it starts:** we estimate around 150 declared volumes; it depends on the disk under blockmaster's state directory.
|
||||
- **What to do:** restart blockmaster in a maintenance window if a cluster declares more than about 150 volumes. A fix is planned for v1.1.2; in our test with it, 999 volumes restarted in under 6 s including the stop, and no volume stopped.
|
||||
|
||||
## Known issue: blockmaster needs its filer to start
|
||||
|
||||
- blockmaster checks that its SeaweedFS filer answers before it starts. If the filer is unreachable, blockmaster stops with an error after about 60 s instead of starting.
|
||||
- While blockmaster cannot start, running volumes stop when their leases run out.
|
||||
- Start or fix the filer first, then start blockmaster.
|
||||
|
||||
## Known issue: `sw-block ops chunk detach --plain` waits for a scheduled periodic cut
|
||||
|
||||
- A scheduled periodic cut is not interrupted by `sw-block ops chunk detach --plain`. A detach issued while such a cut is capturing waits until the cut finishes, so on a volume with a long cut the detach takes correspondingly longer.
|
||||
- No data is lost. A fix is planned for a later v1.1.x release.
|
||||
|
||||
## Known issue: a walstore volume unit can reach its systemd start limit while blockmaster is unreachable
|
||||
|
||||
- Affects volumes on the walstore engine run by `sw-blockvolume.service`, `sw-blockvolume@.service` or `sw-blockvolume-ublk.service` (`StartLimitBurst=10` in 600 s, `RestartSec=5s`). Chunk-store volumes wait for blockmaster in process and are not affected.
|
||||
- A walstore volume that starts while blockmaster is unreachable exits with 75 after about 10 s and is restarted by systemd. After about 10 attempts (about 150 s) the unit stays failed, even once blockmaster is back.
|
||||
- No data is lost. Recover with `systemctl reset-failed <unit>`, then `systemctl start <unit>`. A fix is planned for v1.1.2.
|
||||
|
||||
## Known issue: startup retirement reads can delay blockmaster
|
||||
|
||||
- At startup blockmaster checks volumes that are reserved for deletion and hold no workspace lease, one at a time, before it serves. Each check reads the filer, so a slow filer delays the start: in our test, 100 such volumes with a 100 ms filer delay added about 20 s. Volumes in normal use are skipped without a read.
|
||||
- No data is lost. A fix is planned for v1.1.2.
|
||||
|
||||
## Known issue: replicated volumes (preview): a queued rebalance can undo an operator failover
|
||||
|
||||
- Affects replicated volumes (preview) whose acknowledgement profile allows a planned move: `sync-all`, or `sync-quorum` with two replicas.
|
||||
- blockmaster may decide an automatic rebalance, which moves the primary to a less loaded server, just before an operator's `sw-block ops failover`. If that rebalance is applied after the failover, it moves the primary again, away from the replica the operator chose.
|
||||
- No acknowledged write is lost: under these profiles every replica holds every acknowledged write.
|
||||
- What to do: after `sw-block ops failover`, read the volume's line with `sw-block ops volumes --master-api <addr> -o json`; if `primary_replica` moved again, repeat the failover with `--expect-current <primary_replica>@<epoch>`. A fix is planned for a later v1.1.x release.
|
||||
|
||||
## Upgrade notes
|
||||
|
||||
- **Order: the CLI first, then blockmaster, then each holder**, as in
|
||||
|
||||
@@ -103,7 +103,7 @@ cmd/sw-block/volume_release.go releaseLease context.WithTimeout 1 per-call NONE:
|
||||
cmd/sw-block/volume_release.go releaseLease context.WithTimeout 2 availability-contract NONE: no model row maps this file yet the wait for the recorded release: one lease validity plus slack, since the holder acknowledges at its next renewal within the lease
|
||||
cmd/sw-block/volume_release.go releaseLease time.After 1 control-timer NONE: no model row maps this file yet lease record poll during the release wait
|
||||
cmd/sw-block/volume_resolve.go runOpsVolume context.WithTimeout 1 per-call NONE: no model row maps this file yet one CLI request (operator --timeout)
|
||||
cmd/sw-block/volume_start_release.go prepareVolumeStart context.WithTimeout 1 availability-contract StopAndRestart.IssueClean; StopAndRestart.ReadClean; StopAndRestart.SameEpochReopen lease-query/clean-move setup (10 s), before enabling the unit; no volume data is processed
|
||||
cmd/sw-block/volume_start_release.go prepareVolumeStart context.WithTimeout 1 availability-contract StopAndRestart.IssueClean; StopAndRestart.ReadClean; StopAndRestart.CrashRestart lease-query/clean-move setup (10 s), before enabling the unit; no volume data is processed
|
||||
cmd/sw-block/volume_verbs.go runVolume http.Client.Timeout 1 per-call CutTime.Poll one HTTP request
|
||||
cmd/sw-block/volume_verbs.go volumeStart time.Now().Add 1 per-call CutTime.Poll volume start: the operator's --wait for it to serve
|
||||
cmd/sw-block/volume_verbs.go volumeStart time.After 1 control-timer CutTime.Poll volume start poll
|
||||
@@ -204,7 +204,7 @@ core/host/master/host.go New http.Server.IdleTimeout 1 per-call NONE: no model r
|
||||
core/host/master/probe_round.go roundEvidenceProvider.round time.NewTimer 1 per-call FencingRound.Deliver; FencingRound.Open one probe round's evidence wait
|
||||
core/host/master/services.go services.deleteHolderEvidence context.WithTimeout 1 per-call FormatGate.Report one RPC or request
|
||||
core/host/master/spec_retirement.go Host.reconcileDeletedSpecVolumes context.WithTimeout 1 per-call DeleteRetire.ReadOK one fresh HEAD read after the no-live-lease barrier
|
||||
core/host/master/spec_retirement.go Host.startPostFloorRetirement time.NewTimer 1 control-timer DeleteRetire.ReadOK; DeleteRetire.Retire one startup retry at the latest authority lease barrier; every guard is rechecked
|
||||
core/host/master/spec_retirement.go Host.startPostFloorRetirement time.NewTimer 1 control-timer DeleteRetire.ReadOK; DeleteRetire.RetireLine one startup retry at the latest authority lease barrier; every guard is rechecked
|
||||
core/host/master/spec_retirement.go Host.refreshHostDeletionProofs context.WithTimeout 1 per-call DeleteRetire.ReadOK one post-lease HEAD read for a requested host candidate; error retains work
|
||||
core/host/master/workspace_service.go services.AckWorkspaceRevoked context.WithTimeout 1 per-call FormatGate.Place; MoveAdmission.ReadForMove; StopAndRestart.ReadClean one RPC or request
|
||||
core/host/master/workspace_service.go services.MoveWorkspace context.WithTimeout 1 per-call FormatGate.Place; MoveAdmission.ReadForMove; StopAndRestart.ReadClean one RPC or request
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 49 and column 123.
|
@@ -439,6 +439,9 @@ Use this checklist when changing the feature.
|
||||
| `same-node-alpha-attach-chain.yaml` | loopback same-node accepted path |
|
||||
| `same-node-alpha-attach-negative-chain.yaml` | cross-node loopback blocked as unsupported |
|
||||
|
||||
The last three run only against the project's lab and are kept in a private test repository; the first three
|
||||
are in `testops/scenarios/`.
|
||||
|
||||
The runner must not pass a Stage 2 gate by grepping only lines it wrote itself.
|
||||
It needs independent evidence: pod UID, host sessions, multipath map, RTPG
|
||||
state, stale-I/O probe, and cleanup verifier.
|
||||
|
||||
@@ -85,7 +85,6 @@ Prefer gates that compare at least two surfaces:
|
||||
| Area | Path |
|
||||
|---|---|
|
||||
| scenario definitions | `testops/scenarios/` |
|
||||
| suites | `testops/suites/` |
|
||||
| runner contracts | `internal/docs/ref/testops-runner-binary-contract.md` |
|
||||
| control/data contract | `internal/docs/ref/testops-control-data-contract.md` |
|
||||
| QA sign-offs | `internal/docs/qa-assignments/` |
|
||||
|
||||
@@ -27,6 +27,9 @@ injection.
|
||||
| Cleanup | `cleanup-residue-chain.yaml` and cleanup verifier | zero-residue contract |
|
||||
| Protocol | `iscsi-*`, `nvme-*` | frontend-specific gates |
|
||||
|
||||
Scenarios that run against the project's lab are kept in a private test repository. This repository keeps
|
||||
the ones its own tests and scripts use; [testops/README.md](../../testops/README.md) lists them and the settings each needs.
|
||||
|
||||
## Release Evidence
|
||||
|
||||
Release claims should point to:
|
||||
|
||||
@@ -1164,11 +1164,11 @@ Approximate engineering effort if scope remains tight:
|
||||
baseline and corrects stale audit wording: ANA log/Identify/provider and CSI
|
||||
single-path NVMe stage/unstage are present. Phase 100 closed the Kubernetes
|
||||
CSI NVMe multipath attach follow-up for the supported lab path.
|
||||
- Operation milestone release readiness is active and blocked only on matching
|
||||
published images. Run `scripts/run-operation-milestone-release-readiness.ps1`
|
||||
plus the published-image Day-1 smoke before marking the operation milestone
|
||||
released. Development has moved ahead in parallel; this does not mark the
|
||||
operation milestone released.
|
||||
- Operation milestone release readiness is blocked only on matching published
|
||||
images. Its readiness script ran against the project lab and is kept outside
|
||||
this repository with the lab scenarios; run it and the published-image Day-1
|
||||
smoke there before marking the operation milestone released. Development has
|
||||
moved ahead in parallel; this does not mark the operation milestone released.
|
||||
- Phase 100 Kubernetes CSI NVMe Multipath Attach is closed. It implements and
|
||||
gates the path from dynamic PVC `protocol=nvme` and `replicationFactor=2` to
|
||||
master NVMe frontend grouping, CSI `nvmeAddrs` publish context, NodeStage
|
||||
|
||||
@@ -88,25 +88,27 @@ Default output:
|
||||
Validate a product-owned scenario:
|
||||
|
||||
```bash
|
||||
swblock validate testops/scenarios/csi-rf1-durable-restart-chain.yaml
|
||||
swblock validate testops/scenarios/nvme-p5-protocol-component-gate.yaml
|
||||
```
|
||||
|
||||
Run a product-owned scenario against m02:
|
||||
Run a product-owned scenario against a test node (every setting is required;
|
||||
testops/README.md lists them):
|
||||
|
||||
```bash
|
||||
swblock run testops/scenarios/csi-rf1-durable-restart-chain.yaml \
|
||||
--env product_root=/tmp/seaweed_block \
|
||||
--env ssh_key=C:/work/dev_server/testdev_key
|
||||
swblock run testops/scenarios/nvme-p5-protocol-component-gate.yaml \
|
||||
--env product_root=/path/to/seaweed-block \
|
||||
--env node_host=<node address> \
|
||||
--env node_user=<ssh user> \
|
||||
--env ssh_key=/path/to/key \
|
||||
--env artifact_root=/path/to/shared/artifacts
|
||||
```
|
||||
|
||||
Run the full protocol release gate:
|
||||
Run the full protocol release gate (the four protocol chains in order):
|
||||
|
||||
```bash
|
||||
swblock suite \
|
||||
--results-dir <evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native \
|
||||
--env product_root=/tmp/seaweed-block-nvme-p4l \
|
||||
--env ssh_key=C:/work/dev_server/testdev_key \
|
||||
C:/work/seaweed_block/testops/suites/protocol-release-gate.yaml
|
||||
SW_BLOCK_SSH_KEY=/path/to/key SW_BLOCK_NODE_HOST=<node address> \
|
||||
SW_BLOCK_NODE_USER=<ssh user> SW_BLOCK_NODE_ARTIFACT_ROOT=/path/to/shared/artifacts \
|
||||
bash scripts/testops-run-protocol-release-gate.sh
|
||||
```
|
||||
|
||||
Validate a finished protocol release gate bundle:
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
package scripts_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestReleaseGateRefusesArtifactRootOutsideAllowlist(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("bash script")
|
||||
}
|
||||
bash, err := exec.LookPath("bash")
|
||||
if err != nil {
|
||||
t.Skip("bash not available")
|
||||
}
|
||||
script := filepath.Join(repoRoot(t), "scripts", "testops-run-protocol-release-gate.sh")
|
||||
run := func(root string) (string, string, error) {
|
||||
artifacts := filepath.Join(t.TempDir(), "gate")
|
||||
cmd := exec.Command(bash, script, t.TempDir())
|
||||
cmd.Env = append(os.Environ(),
|
||||
"SW_BLOCK_SSH_KEY=/k",
|
||||
"SW_BLOCK_NODE_HOST=192.0.2.10",
|
||||
"SW_BLOCK_NODE_USER=tester",
|
||||
"SW_BLOCK_NODE_ARTIFACT_ROOT="+root,
|
||||
"SW_BLOCK_ARTIFACT_DIR="+artifacts,
|
||||
"SWBLOCK_CMD=/nonexistent-swblock",
|
||||
)
|
||||
out, err := cmd.CombinedOutput()
|
||||
return string(out), artifacts, err
|
||||
}
|
||||
const refusal = "must be an absolute path other than /"
|
||||
marker := filepath.Join(t.TempDir(), "substituted")
|
||||
for _, root := range []string{
|
||||
"/srv/test artifacts",
|
||||
"/srv/test\tartifacts",
|
||||
"/",
|
||||
"relative/dir",
|
||||
"/srv/*",
|
||||
"/srv/'$(touch " + marker + ")'",
|
||||
"/srv/x\n",
|
||||
} {
|
||||
out, artifacts, err := run(root)
|
||||
if err == nil {
|
||||
t.Fatalf("artifact root %q accepted; output:\n%s", root, out)
|
||||
}
|
||||
if !strings.Contains(out, refusal) {
|
||||
t.Fatalf("artifact root %q: unexpected output:\n%s", root, out)
|
||||
}
|
||||
if _, err := os.Stat(artifacts); !os.IsNotExist(err) {
|
||||
t.Fatalf("artifact root %q: %s created before the check (stat err %v)", root, artifacts, err)
|
||||
}
|
||||
}
|
||||
if _, err := os.Stat(marker); !os.IsNotExist(err) {
|
||||
t.Fatalf("a command substitution in the artifact root ran (stat err %v)", err)
|
||||
}
|
||||
if out, _, _ := run("/srv/evidence-2/block_v1.1"); strings.Contains(out, refusal) {
|
||||
t.Fatalf("plain absolute artifact root refused:\n%s", out)
|
||||
}
|
||||
|
||||
ps, err := os.ReadFile(filepath.Join(repoRoot(t), "scripts", "testops-run-protocol-release-gate.ps1"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
check := strings.Index(string(ps), `$NodeArtifactRoot -cnotmatch '^/[A-Za-z0-9._/-]+\z'`)
|
||||
mkdir := strings.Index(string(ps), "New-Item -ItemType Directory")
|
||||
if check < 0 || mkdir < 0 || check > mkdir {
|
||||
t.Fatalf(".ps1 must refuse a NodeArtifactRoot outside the allowlist before it creates directories (check at %d, New-Item at %d)", check, mkdir)
|
||||
}
|
||||
}
|
||||
@@ -1,155 +0,0 @@
|
||||
param(
|
||||
[string]$ProductRoot = (Get-Location).Path,
|
||||
[string]$ArtifactDir = "",
|
||||
[string]$ReleaseImage = $env:SW_BLOCK_RELEASE_IMAGE,
|
||||
[string]$ReleaseCSIImage = $env:SW_BLOCK_CSI_RELEASE_IMAGE
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($ArtifactDir)) {
|
||||
$stamp = (Get-Date).ToUniversalTime().ToString("yyyyMMddTHHmmssZ")
|
||||
$ArtifactDir = Join-Path $ProductRoot "results\operation-milestone-release-readiness-$stamp"
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $ArtifactDir | Out-Null
|
||||
|
||||
$summary = Join-Path $ArtifactDir "operation-milestone-release-readiness-summary.txt"
|
||||
$result = Join-Path $ArtifactDir "result.json"
|
||||
Set-Content -Path $summary -Value "operation_milestone_release_readiness_status=running"
|
||||
|
||||
function Add-Summary {
|
||||
param([string]$Line)
|
||||
Add-Content -Path $summary -Value $Line
|
||||
}
|
||||
|
||||
function Parse-ImageRef {
|
||||
param([string]$Image)
|
||||
if ($Image -match '^(?<repo>.+)@(?<digest>sha256:[0-9a-fA-F]+)$') {
|
||||
return [ordered]@{
|
||||
repository = $Matches.repo
|
||||
tag = ""
|
||||
digest = $Matches.digest
|
||||
}
|
||||
}
|
||||
$lastColon = $Image.LastIndexOf(':')
|
||||
$lastSlash = $Image.LastIndexOf('/')
|
||||
if ($lastColon -le $lastSlash) {
|
||||
throw "image must include an explicit tag or digest: $Image"
|
||||
}
|
||||
return [ordered]@{
|
||||
repository = $Image.Substring(0, $lastColon)
|
||||
tag = $Image.Substring($lastColon + 1)
|
||||
digest = ""
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-Step {
|
||||
param(
|
||||
[string]$Name,
|
||||
[string]$FilePath,
|
||||
[string[]]$Arguments
|
||||
)
|
||||
$stdout = Join-Path $ArtifactDir "$Name.stdout.txt"
|
||||
$stderr = Join-Path $ArtifactDir "$Name.stderr.txt"
|
||||
$process = Start-Process -FilePath $FilePath -ArgumentList $Arguments -WorkingDirectory $ProductRoot -NoNewWindow -Wait -PassThru -RedirectStandardOutput $stdout -RedirectStandardError $stderr
|
||||
if ($process.ExitCode -eq 0) {
|
||||
Add-Summary "$Name=ok"
|
||||
return $true
|
||||
}
|
||||
Add-Summary "$Name=failed"
|
||||
return $false
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($ReleaseImage) -or [string]::IsNullOrWhiteSpace($ReleaseCSIImage)) {
|
||||
Add-Summary "operation_milestone_release_readiness_status=blocked_missing_release_images"
|
||||
Add-Summary "required_env=SW_BLOCK_RELEASE_IMAGE,SW_BLOCK_CSI_RELEASE_IMAGE"
|
||||
Add-Summary "example_SW_BLOCK_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block:sha-<commit>"
|
||||
Add-Summary "example_SW_BLOCK_CSI_RELEASE_IMAGE=ghcr.io/seaweedfs/seaweed-block-csi:sha-<same-commit>"
|
||||
[ordered]@{
|
||||
schema_version = "1.0"
|
||||
scenario = "operation-milestone-release-readiness"
|
||||
status = "blocked"
|
||||
reason = "missing_release_images"
|
||||
artifact_dir = $ArtifactDir
|
||||
} | ConvertTo-Json -Depth 4 | Set-Content -Path $result
|
||||
exit 2
|
||||
}
|
||||
|
||||
$status = "ok"
|
||||
$image = Parse-ImageRef $ReleaseImage
|
||||
$csiImage = Parse-ImageRef $ReleaseCSIImage
|
||||
|
||||
Add-Summary "release_image=$ReleaseImage"
|
||||
Add-Summary "release_csi_image=$ReleaseCSIImage"
|
||||
|
||||
if (-not (Invoke-Step -Name "docker_manifest_release_image" -FilePath "docker" -Arguments @("manifest", "inspect", $ReleaseImage))) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "docker_manifest_release_csi_image" -FilePath "docker" -Arguments @("manifest", "inspect", $ReleaseCSIImage))) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "go_test_release_scope" -FilePath "go" -Arguments @("test", "./core/ops", "./cmd/sw-block", "./cmd/blockcsi", "./cmd/blockmaster", "./cmd/blockvolume", "./scripts", "-count=1"))) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "helm_lint" -FilePath "helm" -Arguments @("lint", "charts/seaweed-block"))) {
|
||||
$status = "failed"
|
||||
}
|
||||
|
||||
$templateArgs = @(
|
||||
"template", "sw-block", "charts/seaweed-block",
|
||||
"--namespace", "kube-system",
|
||||
"--include-crds",
|
||||
"--set", "image.repository=$($image.repository)",
|
||||
"--set", "csiImage.repository=$($csiImage.repository)",
|
||||
"--set", "image.pullPolicy=Always",
|
||||
"--set", "csiImage.pullPolicy=Always",
|
||||
"--set", "operatorStatus.create=true",
|
||||
"--set", "operatorStatus.dryRun=false",
|
||||
"--set", "lifecycleOwner.create=true",
|
||||
"--set", "lifecycleOwner.dryRun=false",
|
||||
"--set", "lifecycleOwner.admission.create=true"
|
||||
)
|
||||
if ($image.digest) {
|
||||
$templateArgs += @("--set", "image.digest=$($image.digest)")
|
||||
} else {
|
||||
$templateArgs += @("--set", "image.tag=$($image.tag)")
|
||||
}
|
||||
if ($csiImage.digest) {
|
||||
$templateArgs += @("--set", "csiImage.digest=$($csiImage.digest)")
|
||||
} else {
|
||||
$templateArgs += @("--set", "csiImage.tag=$($csiImage.tag)")
|
||||
}
|
||||
|
||||
if (-not (Invoke-Step -Name "helm_template_operation_components" -FilePath "helm" -Arguments $templateArgs)) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "validate_day1_published_image_scenario" -FilePath "C:\work\swblock.exe" -Arguments @("validate", "testops\scenarios\helm-first-volume-via-sw-block-cli-chain.yaml"))) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "validate_phase98_operation_close_scenario" -FilePath "C:\work\swblock.exe" -Arguments @("validate", "testops\scenarios\failback-frontend-workload-close-chain.yaml"))) {
|
||||
$status = "failed"
|
||||
}
|
||||
if (-not (Invoke-Step -Name "git_diff_check" -FilePath "git" -Arguments @("diff", "--check"))) {
|
||||
$status = "failed"
|
||||
}
|
||||
|
||||
Add-Summary "published_image_day1_lab_required=true"
|
||||
Add-Summary "published_image_operator_lifecycle_lab_required=true"
|
||||
Add-Summary "source_gated_phase98_regression_required=true"
|
||||
Add-Summary "nvme_not_in_release_claim=true"
|
||||
Add-Summary "operation_milestone_release_readiness_status=$status"
|
||||
|
||||
[ordered]@{
|
||||
schema_version = "1.0"
|
||||
scenario = "operation-milestone-release-readiness"
|
||||
status = $status
|
||||
release_image = $ReleaseImage
|
||||
release_csi_image = $ReleaseCSIImage
|
||||
artifact_dir = $ArtifactDir
|
||||
lab_qa_required = $true
|
||||
} | ConvertTo-Json -Depth 4 | Set-Content -Path $result
|
||||
|
||||
if ($status -ne "ok") {
|
||||
exit 1
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Parse commands AND env parameters, then execute every complete guarded action
|
||||
# with cleanup stubs. Requires Go and a POSIX shell; never contacts a cluster.
|
||||
# Usage: bash scripts/testops-artifact-root-guard-test.sh [scenario dir]
|
||||
set -euo pipefail
|
||||
here=$(cd "$(dirname "$0")" && pwd)
|
||||
dir=$(cd "${1:-$here/../testops/scenarios}" && pwd)
|
||||
go_cmd=${GO:-go}
|
||||
if [ "$("$go_cmd" env GOOS)" = windows ]; then
|
||||
echo 'artifact-root controls require a POSIX Go runtime (for example, in WSL)' >&2
|
||||
exit 2
|
||||
fi
|
||||
cd "$here/.."
|
||||
TESTOPS_SCENARIO_DIR="$dir" "$go_cmd" test ./scripts -run '^TestTestopsArtifactRootGuards$' -count=1
|
||||
@@ -1,14 +1,22 @@
|
||||
param(
|
||||
[string]$ProductRepoRoot = (Get-Location).Path,
|
||||
[string]$RunnerRoot = "C:\work\seaweedfs\learn\sw-test-runner-standalone",
|
||||
[string]$RunnerRoot = "",
|
||||
[string]$RemoteProductRoot = "/tmp/seaweed-block-nvme-p4l",
|
||||
[string]$SshKey = "C:\work\dev_server\testdev_key",
|
||||
[Parameter(Mandatory = $true)][string]$SshKey,
|
||||
[Parameter(Mandatory = $true)][string]$NodeHost,
|
||||
[Parameter(Mandatory = $true)][string]$NodeUser,
|
||||
[Parameter(Mandatory = $true)][string]$NodeArtifactRoot,
|
||||
[string]$ArtifactRoot = "",
|
||||
[string]$RunId = ""
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# The scenarios put artifact_root into shell commands as raw text.
|
||||
if ($NodeArtifactRoot -cnotmatch '^/[A-Za-z0-9._/-]+\z') {
|
||||
throw "NodeArtifactRoot must be an absolute path other than / using only A-Za-z0-9._/-: $NodeArtifactRoot"
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($RunId)) {
|
||||
$RunId = "protocol-release-gate-" + (Get-Date).ToUniversalTime().ToString("yyyyMMddTHHmmssZ")
|
||||
}
|
||||
@@ -23,7 +31,7 @@ $ProductCommit = "unknown"
|
||||
$RunnerCommit = "unknown"
|
||||
try { $ProductCommit = (& git -C $ProductRepoRoot rev-parse HEAD).Trim() } catch {}
|
||||
try {
|
||||
if (Test-Path $RunnerRoot) {
|
||||
if ($RunnerRoot -and (Test-Path $RunnerRoot)) {
|
||||
$RunnerCommit = (& git -C $RunnerRoot rev-parse HEAD).Trim()
|
||||
}
|
||||
} catch {}
|
||||
@@ -200,13 +208,16 @@ function Invoke-Chain {
|
||||
"run",
|
||||
"--env", "product_root=$RemoteProductRoot",
|
||||
"--env", "ssh_key=$SshKey",
|
||||
"--env", "node_host=$NodeHost",
|
||||
"--env", "node_user=$NodeUser",
|
||||
"--env", "artifact_root=$NodeArtifactRoot",
|
||||
"--results-dir", $stepResults,
|
||||
$scenarioPath
|
||||
)
|
||||
Set-Content -Path (Join-Path $stepDir "swblock.command.txt") -Value ("swblock " + ($swblockArgs -join " "))
|
||||
$rc = 0
|
||||
try {
|
||||
if (Test-Path $RunnerRoot) {
|
||||
if ($RunnerRoot -and (Test-Path $RunnerRoot)) {
|
||||
$rc = Invoke-NativeRedirect -FilePath "go" -Arguments (@("run", "./cmd/swblock") + $swblockArgs) -WorkingDirectory $RunnerRoot -StdoutPath $stdout -StderrPath $stderr
|
||||
} else {
|
||||
$rc = Invoke-NativeRedirect -FilePath "swblock" -Arguments $swblockArgs -WorkingDirectory $ProductRepoRoot -StdoutPath $stdout -StderrPath $stderr
|
||||
|
||||
@@ -6,7 +6,16 @@ RUN_ID="${SW_BLOCK_RUN_ID:-protocol-release-gate-$(date -u +%Y%m%dT%H%M%SZ)}"
|
||||
ARTIFACT_ROOT="${SW_BLOCK_ARTIFACT_DIR:-$ROOT/results/$RUN_ID}"
|
||||
RESULTS_ROOT="${SW_BLOCK_RESULTS_DIR:-$ARTIFACT_ROOT/runs}"
|
||||
REMOTE_PRODUCT_ROOT="${SW_BLOCK_REMOTE_PRODUCT_ROOT:-/tmp/seaweed-block-nvme-p4l}"
|
||||
SSH_KEY="${SW_BLOCK_SSH_KEY:-C:\\work\\dev_server\\testdev_key}"
|
||||
# The test node and its access: required, with no default host, user, key or share.
|
||||
SSH_KEY="${SW_BLOCK_SSH_KEY:?set SW_BLOCK_SSH_KEY to the private key for the test node}"
|
||||
NODE_HOST="${SW_BLOCK_NODE_HOST:?set SW_BLOCK_NODE_HOST to the test node address}"
|
||||
NODE_USER="${SW_BLOCK_NODE_USER:?set SW_BLOCK_NODE_USER to the ssh user on the test node}"
|
||||
NODE_ARTIFACT_ROOT="${SW_BLOCK_NODE_ARTIFACT_ROOT:?set SW_BLOCK_NODE_ARTIFACT_ROOT to the shared artifact directory on the test node}"
|
||||
# The scenarios put artifact_root into shell commands as raw text.
|
||||
if [[ ! "$NODE_ARTIFACT_ROOT" =~ ^/[A-Za-z0-9._/-]+$ ]]; then
|
||||
echo "SW_BLOCK_NODE_ARTIFACT_ROOT must be an absolute path other than / using only A-Za-z0-9._/-: $NODE_ARTIFACT_ROOT" >&2
|
||||
exit 2
|
||||
fi
|
||||
SWBLOCK_CMD="${SWBLOCK_CMD:-swblock}"
|
||||
SWBLOCK_RUNNER_ROOT="${SWBLOCK_RUNNER_ROOT:-}"
|
||||
SUITE_STARTED_EPOCH="$(date -u +%s)"
|
||||
@@ -167,6 +176,9 @@ run_chain() {
|
||||
run_swblock run \
|
||||
--env "product_root=$REMOTE_PRODUCT_ROOT" \
|
||||
--env "ssh_key=$SSH_KEY" \
|
||||
--env "node_host=$NODE_HOST" \
|
||||
--env "node_user=$NODE_USER" \
|
||||
--env "artifact_root=$NODE_ARTIFACT_ROOT" \
|
||||
--results-dir "$step_results" \
|
||||
"$ROOT/$scenario" \
|
||||
>"$step_dir/swblock.stdout.log" \
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
package scripts_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
type artifactRootScenario struct {
|
||||
Env map[string]string
|
||||
Phases []struct {
|
||||
Name string
|
||||
Always bool
|
||||
Actions []map[string]string
|
||||
}
|
||||
}
|
||||
|
||||
// Exercise whole action copies, including the runner's quoted environment
|
||||
// prefix. No real cleanup executable is reachable in the test's stub PATH.
|
||||
func TestTestopsArtifactRootGuards(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("POSIX shell controls")
|
||||
}
|
||||
dir := os.Getenv("TESTOPS_SCENARIO_DIR")
|
||||
if dir == "" {
|
||||
dir = filepath.Join(repoRoot(t), "testops", "scenarios")
|
||||
}
|
||||
files, err := filepath.Glob(filepath.Join(dir, "*.yaml"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
guarded, uninstalls := 0, 0
|
||||
for _, path := range files {
|
||||
raw, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
var scenario artifactRootScenario
|
||||
if err := yaml.Unmarshal(raw, &scenario); err != nil {
|
||||
t.Fatalf("%s: %v", path, err)
|
||||
}
|
||||
if _, exists := scenario.Env["artifact_root"]; !exists {
|
||||
continue
|
||||
}
|
||||
for _, phase := range scenario.Phases {
|
||||
for index, action := range phase.Actions {
|
||||
cmd := action["cmd"]
|
||||
if action["action"] != "exec" {
|
||||
continue
|
||||
}
|
||||
usesRoot := strings.Contains(cmd, "{{ artifact_root }}")
|
||||
for key, value := range action {
|
||||
if strings.HasPrefix(key, "env.") && strings.Contains(value, "{{ artifact_root }}") {
|
||||
usesRoot = true
|
||||
}
|
||||
}
|
||||
needsGuard := usesRoot && (phase.Always || strings.Contains(cmd, "rm -") || strings.Contains(cmd, "case "))
|
||||
if !needsGuard {
|
||||
continue
|
||||
}
|
||||
guarded++
|
||||
if phase.Always && strings.Contains(cmd, "uninstall-k8s-alpha.sh") {
|
||||
uninstalls++
|
||||
}
|
||||
name := fmt.Sprintf("%s/%s/%d", filepath.Base(path), phase.Name, index)
|
||||
t.Run(name, func(t *testing.T) { checkArtifactRootAction(t, action) })
|
||||
}
|
||||
}
|
||||
}
|
||||
if guarded < 24 || uninstalls != 6 {
|
||||
t.Fatalf("coverage: guarded actions=%d, always uninstalls=%d; want >=24 and 6", guarded, uninstalls)
|
||||
}
|
||||
}
|
||||
|
||||
func checkArtifactRootAction(t *testing.T, action map[string]string) {
|
||||
t.Helper()
|
||||
work := t.TempDir()
|
||||
bin := filepath.Join(work, "bin")
|
||||
if err := os.Mkdir(bin, 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, overridesPath := action["env.PATH"]; overridesPath {
|
||||
t.Fatal("cleanup controls must retain their stub-only PATH")
|
||||
}
|
||||
if err := os.Symlink("/bin/sh", filepath.Join(bin, "sh")); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := os.Symlink("/bin/cat", filepath.Join(bin, "cat")); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// Make the uncordon branch real in the supported-root control.
|
||||
nodeFile := filepath.Join(work, "g15d-k8s", "guard-test-node-loss-survival", "demo", "cordoned-primary-node.txt")
|
||||
if err := os.MkdirAll(filepath.Dir(nodeFile), 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := os.WriteFile(nodeFile, []byte("node-test\n"), 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
trace := filepath.Join(work, "cleanup-started")
|
||||
for _, name := range []string{"rm", "mkdir", "kubectl", "helm", "sudo", "nvme", "iscsiadm", "bash", "touch", "go"} {
|
||||
stub := "#!/bin/sh\nprintf '%s %s\\n' '" + name + "' \"$*\" >> \"$GUARD_TRACE\"\nexit 0\n"
|
||||
if err := os.WriteFile(filepath.Join(bin, name), []byte(stub), 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
bad := []string{"", "/", "relative/dir", "/srv/with space", "/srv/*", "/srv/x\n", "/srv/'$(touch injected)'", "/srv/x'; touch injected; '"}
|
||||
for index, root := range bad {
|
||||
t.Run(fmt.Sprintf("invalid-%d", index), func(t *testing.T) {
|
||||
_ = os.Remove(trace)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
cmd := exec.CommandContext(ctx, "bash", "-c", renderArtifactRootAction(action, root, work))
|
||||
cmd.Dir = work
|
||||
cmd.Env = append(os.Environ(), "PATH="+bin, "GUARD_TRACE="+trace)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if ctx.Err() != nil {
|
||||
t.Fatalf("invalid-root control expired: %v; %s", ctx.Err(), out)
|
||||
}
|
||||
var exit *exec.ExitError
|
||||
if !errors.As(err, &exit) {
|
||||
t.Fatalf("invalid-root command did not complete with a refusal: %v; %s", err, out)
|
||||
}
|
||||
if exit.ExitCode() != 2 {
|
||||
t.Errorf("invalid root %q: exit=%d want2; %s", root, exit.ExitCode(), out)
|
||||
}
|
||||
if raw, readErr := os.ReadFile(trace); readErr == nil || !os.IsNotExist(readErr) {
|
||||
t.Fatalf("invalid root %q started cleanup: %q (read=%v)", root, raw, readErr)
|
||||
}
|
||||
})
|
||||
}
|
||||
// A real supported path must reach the original action, not a blanket
|
||||
// refusal. Every complete body must finish and leave a command witness.
|
||||
_ = os.Remove(trace)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancel()
|
||||
cmd := exec.CommandContext(ctx, "bash", "-c", renderArtifactRootAction(action, work, work))
|
||||
cmd.Dir = work
|
||||
cmd.Env = append(os.Environ(), "PATH="+bin, "GUARD_TRACE="+trace)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if ctx.Err() != nil || err != nil {
|
||||
t.Fatalf("supported root command did not complete: %v (context=%v); %s", err, ctx.Err(), out)
|
||||
}
|
||||
witness, err := os.ReadFile(trace)
|
||||
if err != nil || len(witness) == 0 {
|
||||
t.Fatalf("supported root did not reach its action: %v; %s", err, out)
|
||||
}
|
||||
for _, target := range []string{"scripts/run-phase129-nvme-k8s-mounted-restage-gate.sh", "scripts/uninstall-k8s-alpha.sh"} {
|
||||
if strings.Contains(action["cmd"], target) && !strings.Contains(string(witness), "bash "+target+" ") {
|
||||
t.Fatalf("missing script witness %s: %s", target, witness)
|
||||
}
|
||||
}
|
||||
if strings.Contains(action["cmd"], "kubectl uncordon") {
|
||||
for _, target := range []string{"kubectl uncordon node-test", "kubectl get node node-test"} {
|
||||
if !strings.Contains(string(witness), target) {
|
||||
t.Fatalf("missing node-file witness %s: %s", target, witness)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func renderArtifactRootAction(action map[string]string, root, product string) string {
|
||||
render := strings.NewReplacer("{{ artifact_root }}", root, "{{ product_root }}", product, "{{ run_id }}", "guard-test")
|
||||
var keys []string
|
||||
for key := range action {
|
||||
if strings.HasPrefix(key, "env.") {
|
||||
keys = append(keys, key)
|
||||
}
|
||||
}
|
||||
sort.Strings(keys)
|
||||
var prefix strings.Builder
|
||||
for _, key := range keys {
|
||||
fmt.Fprintf(&prefix, "%s=%s ", strings.TrimPrefix(key, "env."), artifactShellQuote(render.Replace(action[key])))
|
||||
}
|
||||
// The runner applies env.* to the complete command through sh -c.
|
||||
return prefix.String() + "sh -c " + artifactShellQuote(render.Replace(action["cmd"]))
|
||||
}
|
||||
|
||||
func artifactShellQuote(value string) string {
|
||||
return "'" + strings.ReplaceAll(value, "'", "'\\''") + "'"
|
||||
}
|
||||
@@ -8,7 +8,10 @@ DELETE_ALL_BLOCKVOLUMES="${SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES:-0}"
|
||||
CHAP_SECRET_NAME="${SW_BLOCK_ISCSI_CHAP_SECRET_NAME:-sw-block-iscsi-chap}"
|
||||
STORAGECLASS_NAME="${SW_BLOCK_STORAGECLASS_NAME:-sw-block-dynamic}"
|
||||
|
||||
mkdir -p "$ARTIFACT_DIR"
|
||||
if ! mkdir -p "$ARTIFACT_DIR" 2>/dev/null; then
|
||||
printf '[alpha-uninstall] cannot create %s; refusing cleanup\n' "$ARTIFACT_DIR" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if [[ -z "${KUBECONFIG:-}" && -f /etc/rancher/k3s/k3s.yaml ]]; then
|
||||
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||
|
||||
@@ -2,7 +2,9 @@ package scripts_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -28,6 +30,52 @@ func TestUninstallK8sAlphaDeletesSeaweedISCSINodeRecords(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUninstallK8sAlphaRefusesBeforeCleanupWhenArtifactDirCannotBeCreated(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("bash script")
|
||||
}
|
||||
bash, err := exec.LookPath("bash")
|
||||
if err != nil {
|
||||
t.Skip("bash not available")
|
||||
}
|
||||
work := t.TempDir()
|
||||
bin := filepath.Join(work, "bin")
|
||||
if err := os.Mkdir(bin, 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
calls := filepath.Join(work, "calls.log")
|
||||
for _, name := range []string{"kubectl", "iscsiadm", "helm", "sudo", "nvme"} {
|
||||
stub := "#!/bin/sh\necho \"" + name + " $*\" >> \"" + calls + "\"\nexit 0\n"
|
||||
if err := os.WriteFile(filepath.Join(bin, name), []byte(stub), 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
blocker := filepath.Join(work, "not-a-dir")
|
||||
if err := os.WriteFile(blocker, nil, 0o644); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
cmd := exec.Command(bash, filepath.Join(repoRoot(t), "scripts", "uninstall-k8s-alpha.sh"), repoRoot(t))
|
||||
cmd.Env = append(os.Environ(),
|
||||
"PATH="+bin+string(os.PathListSeparator)+os.Getenv("PATH"),
|
||||
"SW_BLOCK_ARTIFACT_DIR="+filepath.Join(blocker, "cleanup"),
|
||||
"TMPDIR="+work,
|
||||
)
|
||||
if out, err := cmd.CombinedOutput(); err == nil {
|
||||
t.Fatalf("uninstall continued without its artifact directory:\n%s", out)
|
||||
}
|
||||
if log, err := os.ReadFile(calls); !os.IsNotExist(err) {
|
||||
t.Fatalf("uninstall started cleanup without its artifact directory: %q (read=%v)", log, err)
|
||||
}
|
||||
good := exec.Command(bash, filepath.Join(repoRoot(t), "scripts", "uninstall-k8s-alpha.sh"), repoRoot(t))
|
||||
good.Env = append(os.Environ(), "PATH="+bin+string(os.PathListSeparator)+os.Getenv("PATH"), "SW_BLOCK_ARTIFACT_DIR="+filepath.Join(work, "artifacts"), "TMPDIR="+work)
|
||||
if out, err := good.CombinedOutput(); err != nil {
|
||||
t.Fatalf("valid artifact directory refused: %v\n%s", err, out)
|
||||
}
|
||||
if log, err := os.ReadFile(calls); err != nil || !strings.Contains(string(log), "kubectl delete") {
|
||||
t.Fatalf("valid artifact directory did not reach cleanup: %q (%v)", log, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFailureSnapshotScriptCapturesRequiredEvidenceLayers(t *testing.T) {
|
||||
root := repoRoot(t)
|
||||
raw, err := os.ReadFile(filepath.Join(root, "scripts", "collect-k8s-failure-snapshot.sh"))
|
||||
|
||||
+47
-271
@@ -1,78 +1,65 @@
|
||||
# V3 TestOps Scenarios
|
||||
# TestOps scenarios
|
||||
|
||||
This directory holds product-owned scenario content for the standalone
|
||||
`sw-test-runner` stack.
|
||||
This directory holds runner scenarios for the `swblock` binary of `sw-test-runner`.
|
||||
The product owns the test intent: which scripts represent a gate, what each
|
||||
artifact proves, and what cleanup must hold. The runner owns orchestration:
|
||||
target cleanup, command execution, run-bundle layout and artifact collection.
|
||||
|
||||
The intended boundary is:
|
||||
The scenarios kept here are the ones this repository's tests or scripts use:
|
||||
`cmd/blockcsi/g15d_manifest_test.go` checks the contents of some of them, and
|
||||
scripts under `scripts/` run others.
|
||||
|
||||
- Product repo owns the test intent: which scripts or checks represent the
|
||||
product gate, what artifacts prove each hop, and what cleanup must be true.
|
||||
- Standalone runner owns orchestration: target cleanup, command execution,
|
||||
build/import coordination, progress checks, run-bundle layout, and artifact
|
||||
collection.
|
||||
- QA can run the same YAML locally or from CI; developers can run it before
|
||||
pushing to avoid stale-image / stale-process / scattered-artifact loops.
|
||||
## Running a scenario
|
||||
|
||||
## Runner Binary
|
||||
|
||||
`swblock` is the `sw-test-runner` binary used for Seaweed Block / V3 tests.
|
||||
|
||||
- Source repo: `pingqiu/sw-test-runner`
|
||||
- Source path: `cmd/swblock/main.go`
|
||||
- Build command from the runner repo:
|
||||
|
||||
```bash
|
||||
go build -o swblock ./cmd/swblock
|
||||
```
|
||||
|
||||
- Windows QA convention: `C:\work\swblock.exe`
|
||||
- Linux controller convention: put `swblock` on `PATH`, or set a shell alias to
|
||||
the built binary.
|
||||
|
||||
`swblock` is not built from this product repo. If a developer only has
|
||||
`seaweed_block` checked out, runner-native scenarios can still be authored and
|
||||
statically reviewed here, but `swblock validate`, `swblock run`, and
|
||||
`swblock suite` require the external runner binary.
|
||||
|
||||
Convenience build helpers are available when the runner source is accessible:
|
||||
|
||||
```powershell
|
||||
.\internal\tools\build-swblock.ps1
|
||||
```
|
||||
`swblock` is built from the runner's source (`go build -o swblock ./cmd/swblock`),
|
||||
not from this repository. Check a scenario before running it:
|
||||
|
||||
```bash
|
||||
bash internal/tools/build-swblock.sh
|
||||
swblock validate testops/scenarios/nvme-p5-protocol-component-gate.yaml
|
||||
```
|
||||
|
||||
They build into `.tools/swblock(.exe)`, write `.tools/swblock.path`, and print
|
||||
the final binary path.
|
||||
Apart from `helm-multi-volume-rf3-app-spread-failover-chain.yaml`, which still targets
|
||||
the project's lab, no scenario names a host, user, key or share. Each one reads them
|
||||
from its `env` block, where they are empty, so set every one on the command line:
|
||||
|
||||
Related runner binaries share the same engine but link different product/action
|
||||
sets:
|
||||
|
||||
- `swblock`: V3 / Seaweed Block product pack.
|
||||
- `weedblock`: V2 product pack.
|
||||
- `cmd/sw-test-runner`: kitchen-sink/dev binary.
|
||||
|
||||
Recommended local check before running scenarios:
|
||||
| Setting | Meaning |
|
||||
| --- | --- |
|
||||
| `product_root` | this repository's checkout on the test node |
|
||||
| `node_host` | address of the test node |
|
||||
| `node_user` | ssh user on the test node |
|
||||
| `ssh_key` | private key for `node_user`, on the controller |
|
||||
| `artifact_root` | shared directory for run artifacts, as the test node sees it; an absolute path other than `/` using only `A-Za-z0-9._/-` |
|
||||
| `import_nodes` | every other k3s node, for the image import (`nvme-tcp-status-surface-evidence-chain`, `nvme-tcp-cross-node-multivolume-lifecycle-soak-chain`); without it only the test node gets the images |
|
||||
| `node_ssh_key` | key path on the test node for the image import (those two chains and `node-loss-survival-rf3-reattach-chain`) |
|
||||
|
||||
```bash
|
||||
swblock list
|
||||
swblock validate testops/scenarios/csi-rf1-durable-restart-chain.yaml
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed-block \
|
||||
-env node_host=192.0.2.10 \
|
||||
-env node_user=tester \
|
||||
-env ssh_key=/path/to/key \
|
||||
-env artifact_root=/path/to/shared/artifacts \
|
||||
testops/scenarios/nvme-p5-protocol-component-gate.yaml
|
||||
```
|
||||
|
||||
## Which Gate To Run
|
||||
Destructive and artifact-dependent always actions validate the root independently,
|
||||
before cleanup starts. The value reaches the guard through the runner's quoted
|
||||
`env.SW_BLOCK_ARTIFACT_ROOT` parameter, rather than being rendered into shell
|
||||
syntax. This also protects a direct `swblock run` when an earlier phase fails.
|
||||
Uninstall refuses cleanup if its artifact directory cannot be created.
|
||||
|
||||
Use the smallest gate that can prove the contract you changed.
|
||||
Check every complete guard/action copy locally, with cleanup stubs and no cluster:
|
||||
`bash scripts/testops-artifact-root-guard-test.sh` (requires Go on a POSIX system).
|
||||
|
||||
| Change type | Default gate | Why |
|
||||
| --- | --- | --- |
|
||||
| Package-local logic, parser, renderer, state-machine helper | `go test -count=1 ./<touched-package>` | Fastest feedback; no m02 or runner dependency. |
|
||||
| CSI protocol propagation, lifecycle persistence, launcher render shape | `swblock run testops/scenarios/nvme-p5-protocol-component-gate.yaml` | Proves the known NVMe/iSCSI protocol-shape contracts with a runner bundle in seconds. |
|
||||
| RF=1 restart contract, durable-root/status manifest shape | `swblock run testops/scenarios/csi-rf1-durable-restart-component-gate.yaml` | Proves restart/recovery contract shape without a full K8s restart. |
|
||||
| Operations read-only volume status report shape | `swblock run testops/scenarios/operations-volume-status-report-component-gate.yaml` | Proves schema, frontend identity, unavailable fields, and residue copy behavior without starting product processes. |
|
||||
| Kernel initiator, k3s, mounted filesystem, failover, or stale-session behavior | The matching child chain, for example `nvme-p5-csi-protocol-chain` or `csi-rf1-durable-restart-chain` | These require real Linux/K8s/initiator behavior. |
|
||||
| Milestone readiness or cross-protocol release confidence | `swblock suite testops/suites/beta-hardening-gate.yaml` plus `swblock validate-bundle --profile beta-hardening` | Slow, evidence-heavy gate. Use for release/milestone claims, not first debugging. |
|
||||
## Which gate to run
|
||||
|
||||
Use the smallest gate that proves the contract you changed.
|
||||
|
||||
| Change type | Gate |
|
||||
| --- | --- |
|
||||
| Package-local logic, parser, renderer, state-machine helper | `go test -count=1 ./<touched-package>` |
|
||||
| CSI protocol propagation, lifecycle persistence, launcher render shape | `nvme-p5-protocol-component-gate` |
|
||||
| Kernel initiator, k3s, mounted filesystem, failover or stale-session behaviour | the matching chain, for example `nvme-p5-csi-protocol-chain`, `nvme-p4-multipath-failover-chain` or `iscsi-p6-alua-failover-chain` |
|
||||
|
||||
**Node loss (`node-loss-survival-rf3-reattach-chain`).** This release claims no automatic promotion on node loss:
|
||||
the gate cordons the primary's node and stops it, requires that no other replica is promoted during the hold
|
||||
@@ -83,214 +70,3 @@ data. Manual failover (a `SwBlockReplicaFailback` handled by the failback execut
|
||||
(`core/host/master/failback_runtime_test.go`), `TestFailbackAuthorityRuntimeAdapterRejectsStaleExpectedCurrent`
|
||||
(`core/ops/failback_authority_runtime_adapter_test.go`) and `TestFailbackExecutorInvokesRuntimeWhenExplicitlyEnabled`
|
||||
(`core/ops/failback_executor_controller_test.go`).
|
||||
|
||||
Default ownership:
|
||||
|
||||
- Developers run unit/component tests, fast runner-native component gates, and
|
||||
single-child chains while iterating.
|
||||
- QA runs full-suite repeatability, long soak, ambiguous lab failures, and
|
||||
independent milestone validation.
|
||||
- If QA would only execute a single known command and return stdout, run it
|
||||
yourself and reserve QA for scenario design or trust-critical validation.
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed_block/on/m02 \
|
||||
-env ssh_key=/path/to/testdev_key/on/controller \
|
||||
testops/scenarios/nvme-p5-csi-protocol-chain.yaml
|
||||
```
|
||||
|
||||
Fast component gates are available for developer loops before running the
|
||||
heavier K8s or initiator paths. For example, the NVMe-P5 protocol component
|
||||
gate pins CSI protocol extraction, lifecycle protocol planning, and launcher
|
||||
protocol persistence/planning, plus launcher NVMe/iSCSI manifest shape without
|
||||
launching k3s:
|
||||
|
||||
```bash
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed_block/on/m02 \
|
||||
-env ssh_key=/path/to/testdev_key/on/controller \
|
||||
testops/scenarios/nvme-p5-protocol-component-gate.yaml
|
||||
```
|
||||
|
||||
The RF=1 durable restart path also has a component gate that checks restart
|
||||
wrapper shape, generated hostPath/status manifest behavior, master frontend
|
||||
projection, and durable status lineage without doing the full K8s restart:
|
||||
|
||||
```bash
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed_block/on/m02 \
|
||||
-env ssh_key=/path/to/testdev_key/on/controller \
|
||||
testops/scenarios/csi-rf1-durable-restart-component-gate.yaml
|
||||
```
|
||||
|
||||
The first operations-layer status report contract has its own component gate.
|
||||
It is read-only, does not start product processes, and is not a block/data
|
||||
snapshot:
|
||||
|
||||
```bash
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed_block/on/m02 \
|
||||
-env ssh_key=/path/to/testdev_key/on/controller \
|
||||
testops/scenarios/operations-volume-status-report-component-gate.yaml
|
||||
```
|
||||
|
||||
The same runner-native shape is used for the longer iSCSI P8 soak:
|
||||
|
||||
```bash
|
||||
swblock run \
|
||||
-env product_root=/path/to/seaweed_block/on/m02 \
|
||||
-env ssh_key=/path/to/testdev_key/on/controller \
|
||||
testops/scenarios/iscsi-p8-compat-soak-chain.yaml
|
||||
```
|
||||
|
||||
The scenario still shells out to existing bash payloads. That is deliberate:
|
||||
the first migration step is to move orchestration and evidence collection into
|
||||
the runner without rewriting the product smoke tests.
|
||||
|
||||
## Protocol Release Gate
|
||||
|
||||
The product-owned release gate composes the current protocol chains:
|
||||
|
||||
- `iscsi-p6-alua-failover-chain`
|
||||
- `nvme-p4-multipath-failover-chain`
|
||||
- `nvme-p5-csi-protocol-chain`
|
||||
- `iscsi-p8-compat-soak-chain`
|
||||
|
||||
The primary operator path is the runner-native suite command. Run it from the
|
||||
controller, pointing it at the remote product checkout on m02:
|
||||
|
||||
```powershell
|
||||
swblock suite `
|
||||
--results-dir <evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native `
|
||||
--env product_root=/tmp/seaweed-block-nvme-p4l `
|
||||
--env ssh_key=C:/work/dev_server/testdev_key `
|
||||
C:/work/seaweed_block/testops/suites/protocol-release-gate.yaml
|
||||
```
|
||||
|
||||
Validate the bundle before manual artifact review:
|
||||
|
||||
```powershell
|
||||
swblock validate-bundle --profile protocol-release-gate `
|
||||
<evidence-store>/g15d-k8s/testops-runs/protocol-release-gate-native/<run-id>
|
||||
```
|
||||
|
||||
QA close evidence:
|
||||
|
||||
- product commit: `033028e74c1ac3bc06f19c0563bc2e6a0495af59`,
|
||||
- runner commit: `3c1b6603aefcf4c1bf0b22f9a9c081a67e786d8d`,
|
||||
- suite run: `20260509-151531-9c6c`,
|
||||
- result: PASS, validated by `swblock validate-bundle --profile
|
||||
protocol-release-gate`.
|
||||
|
||||
The older wrappers remain available for compatibility and local debugging. The
|
||||
PowerShell wrapper supports both Windows PowerShell 5.1 and PowerShell 7+;
|
||||
native runner stderr is captured into the child artifact directory instead of
|
||||
being treated as a PowerShell exception.
|
||||
|
||||
```powershell
|
||||
.\scripts\testops-run-protocol-release-gate.ps1 `
|
||||
-RunnerRoot C:\work\seaweedfs\learn\sw-test-runner-standalone `
|
||||
-RemoteProductRoot /tmp/seaweed-block-nvme-p4l `
|
||||
-SshKey C:\work\dev_server\testdev_key `
|
||||
-ArtifactRoot C:\work\tmp\protocol-release-gate-$(Get-Date -Format yyyyMMddTHHmmssZ)
|
||||
```
|
||||
|
||||
Linux / Git Bash controllers can use the bash wrapper:
|
||||
|
||||
```bash
|
||||
SWBLOCK_RUNNER_ROOT=/c/work/seaweedfs/learn/sw-test-runner-standalone \
|
||||
SW_BLOCK_REMOTE_PRODUCT_ROOT=/tmp/seaweed-block-nvme-p4l \
|
||||
SW_BLOCK_SSH_KEY='C:\work\dev_server\testdev_key' \
|
||||
SW_BLOCK_ARTIFACT_DIR=/c/work/tmp/protocol-release-gate-$(date -u +%Y%m%dT%H%M%SZ) \
|
||||
bash scripts/testops-run-protocol-release-gate.sh "$PWD"
|
||||
```
|
||||
|
||||
The suite writes a top-level `result.json` and `status.json` with
|
||||
`started_at`, `ended_at`, `wall_clock_s`, child run IDs, per-child PASS/FAIL,
|
||||
and artifact pointers. Each child bundle still owns its own `status.json`,
|
||||
`result.json`, `scenario.yaml`, and collected remote artifacts under
|
||||
`<suite-artifact>/<step>/runs/<child-run-id>/`.
|
||||
|
||||
After a run, validate the suite bundle offline before manual artifact review:
|
||||
|
||||
```powershell
|
||||
.\scripts\testops-validate-latest-protocol-release-gate.ps1 `
|
||||
-RunnerRoot C:\work\seaweedfs\learn\sw-test-runner-standalone `
|
||||
-ArtifactRoot C:\work\tmp\protocol-release-gate-20260509T000000Z `
|
||||
-ExpectCommit 033028e74c1ac3bc06f19c0563bc2e6a0495af59
|
||||
```
|
||||
|
||||
Linux / Git Bash:
|
||||
|
||||
```bash
|
||||
SWBLOCK_RUNNER_ROOT=/c/work/seaweedfs/learn/sw-test-runner-standalone \
|
||||
SW_BLOCK_ARTIFACT_DIR=/c/work/tmp/protocol-release-gate-20260509T000000Z \
|
||||
SW_BLOCK_EXPECT_COMMIT=033028e74c1ac3bc06f19c0563bc2e6a0495af59 \
|
||||
bash scripts/testops-validate-latest-protocol-release-gate.sh "$PWD"
|
||||
```
|
||||
|
||||
The wrapper calls the platform validator profile:
|
||||
|
||||
```bash
|
||||
swblock validate-bundle --profile protocol-release-gate \
|
||||
--expect-commit 033028e74c1ac3bc06f19c0563bc2e6a0495af59 \
|
||||
/path/to/protocol-release-gate-artifact
|
||||
```
|
||||
|
||||
The older product-specific Python checker remains available for local
|
||||
debugging but is no longer the primary operator path:
|
||||
|
||||
```bash
|
||||
python3 scripts/testops-validate-protocol-release-gate.py \
|
||||
/path/to/protocol-release-gate-artifact \
|
||||
--expect-product-commit 033028e74c1ac3bc06f19c0563bc2e6a0495af59
|
||||
```
|
||||
|
||||
Use `--allow-fail` when validating the schema of an intentionally failed or
|
||||
cancelled run; without it the checker requires all four child chains to be
|
||||
`pass` with complete phase counts.
|
||||
|
||||
## Beta Hardening Gate
|
||||
|
||||
`testops/suites/beta-hardening-gate.yaml` is the seed suite for the current
|
||||
beta-hardening plan. It composes the protocol release children plus the new
|
||||
component/restart/reintegration gates:
|
||||
|
||||
- `iscsi-p6-alua-failover-chain`
|
||||
- `nvme-p4-multipath-failover-chain`
|
||||
- `nvme-p5-csi-protocol-chain`
|
||||
- `iscsi-p8-compat-soak-chain`
|
||||
- `csi-lifecycle-component-gate`
|
||||
- `csi-rf1-durable-restart-chain`
|
||||
- `operations-status-diagnostics-chain`
|
||||
- `returned-replica-component-gate`
|
||||
- `iscsi-returned-replica-chain`
|
||||
- `cleanup-residue-chain`
|
||||
|
||||
Run shape:
|
||||
|
||||
```powershell
|
||||
swblock suite `
|
||||
--results-dir <evidence-store>/g15d-k8s/testops-runs/beta-hardening-gate `
|
||||
--env product_root=/tmp/seaweed-block-plan-roadmap-refresh-devrun `
|
||||
--env ssh_key=C:/work/dev_server/testdev_key `
|
||||
C:/work/seaweed_block/testops/suites/beta-hardening-gate.yaml
|
||||
```
|
||||
|
||||
Repeatability evidence:
|
||||
|
||||
- product commit:
|
||||
`8822f20e91c2b88727ead9e49f9bf75eec28c791`
|
||||
- runner commit:
|
||||
`cf65daaf2ce5cf500e1efa48b411f7cb66dbac0b`
|
||||
- run 1: `20260511-031605-8258`, PASS, `21m46s`,
|
||||
`validate-bundle --profile beta-hardening` VALID.
|
||||
- run 2: `20260511-040412-ac38`, PASS, `22m55s`,
|
||||
`validate-bundle --profile beta-hardening` VALID.
|
||||
- no manual cleanup between runs; final residue audit clean.
|
||||
|
||||
Use this suite for milestone readiness or release-candidate confidence. Do not
|
||||
use it as the first debug loop for a package-level change.
|
||||
@@ -1,80 +0,0 @@
|
||||
# Runner-native Phase 67 gate: caught-up rebuild to ACK eligibility publication.
|
||||
|
||||
name: ack-eligibility-publication-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: ack_eligibility_publication_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication bash scripts/run-phase67-ack-eligibility-publication-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^phase67_ack_eligibility_publication_status=ok$"
|
||||
save_as: phase67_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase67_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^ack_publication_after_caught_up=true$"
|
||||
save_as: ack_after_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_after_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^ack_publication_requires_rebuild_caught_up=true$"
|
||||
save_as: requires_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ requires_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^ack_publication_rejects_running_rebuild=true$"
|
||||
save_as: rejects_running
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_running }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^ack_publication_rejects_unexpected_publication_allowed=true$"
|
||||
save_as: rejects_unexpected_policy
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_unexpected_policy }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication/phase67-ack-eligibility-publication-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase67-ack-eligibility-publication"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -10,42 +10,46 @@ timeout: 24m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
|
||||
node_host: "" # address of the test node; set with -env node_host=<address>
|
||||
node_user: "" # ssh user on the test node; set with -env node_user=<user>
|
||||
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
node-a:
|
||||
host: "{{ node_host }}"
|
||||
user: "{{ node_user }}"
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/activation /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
|
||||
node: node-a
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/activation $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: activate_alpha_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash scripts/activate-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/activation"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/activation"
|
||||
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
|
||||
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
|
||||
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
|
||||
@@ -53,81 +57,81 @@ phases:
|
||||
- name: first_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
|
||||
|
||||
- name: first_volume_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^pvc=sw-block-example-pvc$"
|
||||
save_as: pvc_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pvc_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^writer_verified=true$"
|
||||
save_as: writer_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^reader_verified=true$"
|
||||
save_as: reader_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/writer.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/writer.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: writer_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/reader.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/reader.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: basic_cleanup_count
|
||||
- action: assert_greater
|
||||
actual: "{{ basic_cleanup_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/cluster-evidence.json"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/cluster-evidence.json"
|
||||
pattern: "\"volumes\""
|
||||
save_as: cluster_volumes_count
|
||||
- action: assert_greater
|
||||
actual: "{{ cluster_volumes_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/inventory/volume-inventory-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/basic-app/status/inventory/volume-inventory-summary.txt"
|
||||
pattern: "pvc=sw-block-example-pvc"
|
||||
save_as: inventory_pvc_count
|
||||
- action: assert_greater
|
||||
@@ -138,14 +142,15 @@ phases:
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 5m
|
||||
cmd: "kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-first-volume/cleanup"
|
||||
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
@@ -7,8 +7,11 @@
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# -env product_root=/path/to/seaweed_block/on/node-a \
|
||||
# -env ssh_key=/path/to/ssh/key/on/controller \
|
||||
# -env node_host=192.0.2.10 \
|
||||
# -env node_user=tester \
|
||||
# -env artifact_root=/path/to/shared/artifacts \
|
||||
# testops/scenarios/activation-day1-install-chain.yaml
|
||||
|
||||
name: activation-day1-install-chain
|
||||
@@ -16,127 +19,131 @@ timeout: 18m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
|
||||
node_host: "" # address of the test node; set with -env node_host=<address>
|
||||
node_user: "" # ssh user on the test node; set with -env node_user=<user>
|
||||
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
node-a:
|
||||
host: "{{ node_host }}"
|
||||
user: "{{ node_user }}"
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1 && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation /mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
|
||||
node: node-a
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1 && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1/activation $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: activate_alpha_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash scripts/activate-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation"
|
||||
env.SW_BLOCK_ACTIVATION_IMPORT_K3S: "1"
|
||||
|
||||
- name: activation_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^activation_status=ok$"
|
||||
save_as: activation_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ activation_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^master_ready_replicas=1$"
|
||||
save_as: master_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ master_ready_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^csi_controller_ready_replicas=1$"
|
||||
save_as: csi_controller_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ csi_controller_ready_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^csi_node_ready=[1-9][0-9]*/[1-9][0-9]*$"
|
||||
save_as: csi_node_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ csi_node_ready_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^storageclass=sw-block-dynamic$"
|
||||
save_as: storageclass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ storageclass_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^storageclass_provider=block.csi.seaweedfs.com$"
|
||||
save_as: storageclass_provider_count
|
||||
- action: assert_greater
|
||||
actual: "{{ storageclass_provider_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^protocol=iscsi$"
|
||||
save_as: protocol_count
|
||||
- action: assert_greater
|
||||
actual: "{{ protocol_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "^ack_profile=best-effort$"
|
||||
save_as: ack_profile_count
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_profile_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "next_create_volume=kubectl apply -f examples/kubernetes/basic-app/storageclass-pvc.yaml"
|
||||
save_as: next_create_volume_count
|
||||
- action: assert_greater
|
||||
actual: "{{ next_create_volume_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/activation-summary.txt"
|
||||
pattern: "non_claims=alpha_only,no_backup_restore,no_upgrade_safety,no_mutating_dashboard_actions,no_broad_performance_slo"
|
||||
save_as: non_claims_count
|
||||
- action: assert_greater
|
||||
actual: "{{ non_claims_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/activation/readiness.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/activation/readiness.txt"
|
||||
pattern: "sw-block-csi-node"
|
||||
save_as: readiness_csi_node_count
|
||||
- action: assert_greater
|
||||
@@ -147,20 +154,21 @@ phases:
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/cleanup"
|
||||
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-activation-day1/cleanup/delete-storageclass.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-activation-day1/cleanup/delete-storageclass.log"
|
||||
pattern: "sw-block-dynamic"
|
||||
save_as: storageclass_cleanup_count
|
||||
- action: assert_greater
|
||||
|
||||
@@ -1,168 +0,0 @@
|
||||
# Runner-native Phase 54 D4 gate: authority-executor ACK eligibility call-site.
|
||||
|
||||
name: authority-executor-callsite-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_callsite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite bash scripts/run-phase54-authority-executor-callsite-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^phase54_authority_executor_callsite_status=ok$"
|
||||
save_as: phase54_callsite_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase54_callsite_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^target_missing_mutation_attempts=0$"
|
||||
save_as: target_missing_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ target_missing_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^target_missing_created_targets=0$"
|
||||
save_as: target_missing_no_create
|
||||
- action: assert_greater
|
||||
actual: "{{ target_missing_no_create }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^terminal_missing_mutation_attempts=0$"
|
||||
save_as: terminal_missing_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ terminal_missing_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^terminal_missing_target_reason_absent=$"
|
||||
save_as: terminal_missing_no_status
|
||||
- action: assert_greater
|
||||
actual: "{{ terminal_missing_no_status }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_mutation_attempts=1$"
|
||||
save_as: complete_one_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_one_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_ack_eligibility_mutation_attempts=1$"
|
||||
save_as: complete_one_ack_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_one_ack_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_reason=ack_eligibility_recorded$"
|
||||
save_as: complete_reason
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_reason }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_ack_eligible=true$"
|
||||
save_as: complete_ack_eligible
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_ack_eligible }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_frontend_fenced=true$"
|
||||
save_as: complete_frontend_fenced
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_frontend_fenced }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_primary_unchanged=true$"
|
||||
save_as: complete_primary_unchanged
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_primary_unchanged }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_frontier_covered=true$"
|
||||
save_as: complete_frontier_covered
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_frontier_covered }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_no_cross_volume=true$"
|
||||
save_as: complete_no_cross_volume
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_no_cross_volume }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_swblockvolume_ack_still_false=false$"
|
||||
save_as: complete_source_unchanged
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_source_unchanged }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^complete_target_nonclaims_ok=true$"
|
||||
save_as: complete_nonclaims
|
||||
- action: assert_greater
|
||||
actual: "{{ complete_nonclaims }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
|
||||
save_as: boundary_volume_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_volume_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite/phase54-authority-executor-callsite-summary.txt"
|
||||
pattern: "^exec_create_events_denied=no$"
|
||||
save_as: boundary_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_events_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-callsite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,128 +0,0 @@
|
||||
# Runner-native Phase 62 gate: authority-executor HTTP rebuild runtime transport.
|
||||
|
||||
name: authority-executor-http-runtime-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_http_runtime_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime bash scripts/run-phase62-authority-executor-http-runtime-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^phase62_authority_executor_http_runtime_status=ok$"
|
||||
save_as: phase62_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase62_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^http_runtime_posts_request=true$"
|
||||
save_as: posts_request
|
||||
- action: assert_greater
|
||||
actual: "{{ posts_request }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^http_runtime_decodes_terminal_frontier=true$"
|
||||
save_as: decodes_frontier
|
||||
- action: assert_greater
|
||||
actual: "{{ decodes_frontier }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^cli_rebuild_runtime_url_enabled=true$"
|
||||
save_as: cli_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ cli_enabled }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^cli_rebuild_runtime_url_requires_rebuild_traffic=true$"
|
||||
save_as: cli_guard
|
||||
- action: assert_greater
|
||||
actual: "{{ cli_guard }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^rebuild_status_running_written=true$"
|
||||
save_as: running_written
|
||||
- action: assert_greater
|
||||
actual: "{{ running_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^rebuild_status_caught_up_written=true$"
|
||||
save_as: caught_up_written
|
||||
- action: assert_greater
|
||||
actual: "{{ caught_up_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^rebuild_status_blocked_on_runtime_failure=true$"
|
||||
save_as: blocked_written
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^planned_status_preserved_without_runtime=true$"
|
||||
save_as: planned_preserved
|
||||
- action: assert_greater
|
||||
actual: "{{ planned_preserved }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^blockvolume_runtime_endpoint_wired=false$"
|
||||
save_as: endpoint_not_wired
|
||||
- action: assert_greater
|
||||
actual: "{{ endpoint_not_wired }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime/phase62-authority-executor-http-runtime-summary.txt"
|
||||
pattern: "^failback_allowed=false$"
|
||||
save_as: no_failback
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase62-authority-executor-http-runtime"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,166 +0,0 @@
|
||||
# Runner-native Phase 54 D7 gate: live returned-replica close with bounded ACK eligibility execution.
|
||||
|
||||
name: authority-executor-live-close-chain
|
||||
timeout: 22m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-phase54-live-close/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: authority_executor_live_close_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 18m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close bash scripts/run-phase54-authority-executor-live-close-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^phase54_authority_executor_live_close_status=ok$"
|
||||
save_as: phase54_live_close_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase54_live_close_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^previous_primary_frontend_fenced=true$"
|
||||
save_as: previous_primary_fenced
|
||||
- action: assert_greater
|
||||
actual: "{{ previous_primary_fenced }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^current_primary_unchanged=true$"
|
||||
save_as: current_primary_unchanged
|
||||
- action: assert_greater
|
||||
actual: "{{ current_primary_unchanged }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^durable_frontier_covered=true$"
|
||||
save_as: durable_frontier_covered
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_frontier_covered }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^executor_ack_mutation_attempts=1$"
|
||||
save_as: one_ack_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ one_ack_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_reason=ack_eligibility_recorded$"
|
||||
save_as: target_ack_recorded
|
||||
- action: assert_greater
|
||||
actual: "{{ target_ack_recorded }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_ack_eligible=true$"
|
||||
save_as: target_ack_eligible
|
||||
- action: assert_greater
|
||||
actual: "{{ target_ack_eligible }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_frontend_fenced=true$"
|
||||
save_as: target_frontend_fenced
|
||||
- action: assert_greater
|
||||
actual: "{{ target_frontend_fenced }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_primary_unchanged=true$"
|
||||
save_as: target_primary_unchanged
|
||||
- action: assert_greater
|
||||
actual: "{{ target_primary_unchanged }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_frontier_covered=true$"
|
||||
save_as: target_frontier_covered
|
||||
- action: assert_greater
|
||||
actual: "{{ target_frontier_covered }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_no_cross_volume=true$"
|
||||
save_as: target_no_cross_volume
|
||||
- action: assert_greater
|
||||
actual: "{{ target_no_cross_volume }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^source_ack_still_false=false$"
|
||||
save_as: source_ack_unchanged
|
||||
- action: assert_greater
|
||||
actual: "{{ source_ack_unchanged }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close/phase54-authority-executor-live-close-summary.txt"
|
||||
pattern: "^target_nonclaims_ok=true$"
|
||||
save_as: target_nonclaims_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ target_nonclaims_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-phase54-live-close/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-live-close"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,152 +0,0 @@
|
||||
# Runner-native Phase 54 D6 gate: authority-executor multi-volume isolation.
|
||||
|
||||
name: authority-executor-multivolume-chain
|
||||
timeout: 10m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_multivolume_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 9m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume bash scripts/run-phase54-authority-executor-multivolume-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^phase54_authority_executor_multivolume_status=ok$"
|
||||
save_as: phase54_multivolume_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase54_multivolume_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^multivolume_contracts=4$"
|
||||
save_as: multivolume_contracts
|
||||
- action: assert_greater
|
||||
actual: "{{ multivolume_contracts }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^multivolume_mutation_attempts=2$"
|
||||
save_as: multivolume_two_mutations
|
||||
- action: assert_greater
|
||||
actual: "{{ multivolume_two_mutations }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^multivolume_ack_mutation_attempts=2$"
|
||||
save_as: multivolume_two_ack_mutations
|
||||
- action: assert_greater
|
||||
actual: "{{ multivolume_two_ack_mutations }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^multivolume_terminal_missing=1$"
|
||||
save_as: multivolume_one_terminal_missing
|
||||
- action: assert_greater
|
||||
actual: "{{ multivolume_one_terminal_missing }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^multivolume_target_missing=1$"
|
||||
save_as: multivolume_one_target_missing
|
||||
- action: assert_greater
|
||||
actual: "{{ multivolume_one_target_missing }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^eligible_a_reason=ack_eligibility_recorded$"
|
||||
save_as: eligible_a_written
|
||||
- action: assert_greater
|
||||
actual: "{{ eligible_a_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^eligible_b_reason=ack_eligibility_recorded$"
|
||||
save_as: eligible_b_written
|
||||
- action: assert_greater
|
||||
actual: "{{ eligible_b_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^blocked_c_reason_absent=$"
|
||||
save_as: blocked_c_held
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_c_held }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^mismatch_e_reason_absent=$"
|
||||
save_as: mismatch_e_held
|
||||
- action: assert_greater
|
||||
actual: "{{ mismatch_e_held }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^no_contract_d_target_count=0$"
|
||||
save_as: no_contract_d_no_target
|
||||
- action: assert_greater
|
||||
actual: "{{ no_contract_d_no_target }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^eligible_written_count=2$"
|
||||
save_as: exactly_two_written
|
||||
- action: assert_greater
|
||||
actual: "{{ exactly_two_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^cross_contamination_count=0$"
|
||||
save_as: no_cross_contamination
|
||||
- action: assert_greater
|
||||
actual: "{{ no_cross_contamination }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
|
||||
save_as: boundary_volume_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_volume_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume/phase54-authority-executor-multivolume-summary.txt"
|
||||
pattern: "^exec_create_events_denied=no$"
|
||||
save_as: boundary_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_events_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-multivolume"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,128 +0,0 @@
|
||||
# Runner-native Phase 54 D5 gate: authority-executor negative/hold matrix.
|
||||
|
||||
name: authority-executor-negative-chain
|
||||
timeout: 10m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_negative_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 9m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative bash scripts/run-phase54-authority-executor-negative-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^phase54_authority_executor_negative_status=ok$"
|
||||
save_as: phase54_negative_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase54_negative_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^blocked-preflight_mutation_attempts=0$"
|
||||
save_as: blocked_preflight_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_preflight_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^stale-frontier_mutation_attempts=0$"
|
||||
save_as: stale_frontier_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ stale_frontier_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^unsafe-frontend_mutation_attempts=0$"
|
||||
save_as: unsafe_frontend_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ unsafe_frontend_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^ambiguous_target_mutation_attempts=0$"
|
||||
save_as: ambiguous_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ ambiguous_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^identity_mismatch_mutation_attempts=0$"
|
||||
save_as: identity_mismatch_no_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ identity_mismatch_no_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^partial_mutation_attempts=1$"
|
||||
save_as: partial_one_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ partial_one_mutation }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^partial_terminal_missing=1$"
|
||||
save_as: partial_one_hold
|
||||
- action: assert_greater
|
||||
actual: "{{ partial_one_hold }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^partial_a_reason=ack_eligibility_recorded$"
|
||||
save_as: partial_a_written
|
||||
- action: assert_greater
|
||||
actual: "{{ partial_a_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^partial_b_reason_absent=$"
|
||||
save_as: partial_b_held
|
||||
- action: assert_greater
|
||||
actual: "{{ partial_b_held }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
|
||||
save_as: boundary_volume_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_volume_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative/phase54-authority-executor-negative-summary.txt"
|
||||
pattern: "^exec_create_events_denied=no$"
|
||||
save_as: boundary_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ boundary_events_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-negative"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,72 +0,0 @@
|
||||
# Runner-native Phase 53 gate: authority-executor RBAC boundary.
|
||||
|
||||
name: authority-executor-rbac-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_rbac_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac bash scripts/run-phase53-authority-executor-rbac-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
|
||||
pattern: "^phase53_authority_executor_rbac_status=ok$"
|
||||
save_as: phase53_rbac_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase53_rbac_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
|
||||
pattern: "^authority_executor_get_swblockvolumes_allowed=yes$"
|
||||
save_as: phase53_get_allowed
|
||||
- action: assert_greater
|
||||
actual: "{{ phase53_get_allowed }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
|
||||
pattern: "^authority_executor_patch_swblockvolumes_denied=no$"
|
||||
save_as: phase53_patch_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ phase53_patch_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
|
||||
pattern: "^authority_executor_patch_status_denied=no$"
|
||||
save_as: phase53_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ phase53_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac/phase53-authority-executor-rbac-summary.txt"
|
||||
pattern: "^authority_executor_create_events_denied=no$"
|
||||
save_as: phase53_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ phase53_events_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase53-authority-executor-rbac"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,128 +0,0 @@
|
||||
# Runner-native Phase 57 gate: authority-executor rebuild target RBAC boundary.
|
||||
|
||||
name: authority-executor-rebuild-target-rbac-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_rebuild_target_rbac_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac bash scripts/run-phase57-authority-executor-rebuild-target-rbac-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^phase57_authority_executor_rebuild_target_rbac_status=ok$"
|
||||
save_as: phase57_rbac_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase57_rbac_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^default_patch_swblockreplicarebuilds_status_denied=no$"
|
||||
save_as: default_rebuild_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ default_rebuild_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockreplicarebuilds_status_allowed=yes$"
|
||||
save_as: exec_rebuild_status_allowed
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_rebuild_status_allowed }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockreplicarebuilds_main_denied=no$"
|
||||
save_as: exec_rebuild_main_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_rebuild_main_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
|
||||
save_as: exec_swblockvolume_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_swblockvolume_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockreplicaeligibilities_status_denied=no$"
|
||||
save_as: exec_eligibility_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_eligibility_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^exec_create_events_denied=no$"
|
||||
save_as: exec_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_events_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^default_rebuild_status_patch_runtime_denied=true$"
|
||||
save_as: default_runtime_patch_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ default_runtime_patch_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^runtime_rebuild_status_state=planned$"
|
||||
save_as: runtime_state_planned
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_state_planned }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^runtime_rebuild_status_reason=rebuild_progress_planned$"
|
||||
save_as: runtime_reason_planned
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_reason_planned }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^runtime_rebuild_traffic_started=false$"
|
||||
save_as: runtime_no_traffic
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_no_traffic }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac/phase57-authority-executor-rebuild-target-rbac-summary.txt"
|
||||
pattern: "^runtime_no_frontend_publication=true$"
|
||||
save_as: runtime_no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase57-authority-executor-rebuild-target-rbac"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,136 +0,0 @@
|
||||
# Runner-native Phase 61 gate: authority-executor rebuild runtime call-site.
|
||||
|
||||
name: authority-executor-runtime-callsite-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_runtime_callsite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite bash scripts/run-phase61-authority-executor-runtime-callsite-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^phase61_authority_executor_runtime_callsite_status=ok$"
|
||||
save_as: phase61_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase61_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^planned_without_runtime_test=true$"
|
||||
save_as: planned_preserved
|
||||
- action: assert_greater
|
||||
actual: "{{ planned_preserved }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^runtime_callsite_caught_up_test=true$"
|
||||
save_as: runtime_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^runtime_failure_blocked_test=true$"
|
||||
save_as: runtime_blocked
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_blocked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^runtime_callsite_invoked=true$"
|
||||
save_as: callsite_invoked
|
||||
- action: assert_greater
|
||||
actual: "{{ callsite_invoked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^rebuild_status_running_written=true$"
|
||||
save_as: running_written
|
||||
- action: assert_greater
|
||||
actual: "{{ running_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^rebuild_status_caught_up_written=true$"
|
||||
save_as: caught_up_written
|
||||
- action: assert_greater
|
||||
actual: "{{ caught_up_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^rebuild_status_blocked_on_runtime_failure=true$"
|
||||
save_as: blocked_written
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_written }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^rebuild_traffic_started_when_runtime_invoked=true$"
|
||||
save_as: traffic_started
|
||||
- action: assert_greater
|
||||
actual: "{{ traffic_started }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^durable_frontier_caught_up_after_runtime=true$"
|
||||
save_as: frontier_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ frontier_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^blockvolume_rpc_wired=false$"
|
||||
save_as: rpc_not_wired
|
||||
- action: assert_greater
|
||||
actual: "{{ rpc_not_wired }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite/phase61-authority-executor-runtime-callsite-summary.txt"
|
||||
pattern: "^failback_allowed=false$"
|
||||
save_as: no_failback
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase61-authority-executor-runtime-callsite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,80 +0,0 @@
|
||||
# Runner-native Phase 54 D3 gate: authority-executor ACK target RBAC boundary.
|
||||
|
||||
name: authority-executor-target-rbac-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: authority_executor_target_rbac_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac bash scripts/run-phase54-authority-executor-target-rbac-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^phase54_authority_executor_target_rbac_status=ok$"
|
||||
save_as: phase54_rbac_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase54_rbac_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^default_patch_swblockreplicaeligibilities_status_denied=no$"
|
||||
save_as: default_target_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ default_target_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockreplicaeligibilities_status_allowed=yes$"
|
||||
save_as: exec_target_status_allowed
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_target_status_allowed }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockreplicaeligibilities_main_denied=no$"
|
||||
save_as: exec_target_main_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_target_main_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^exec_patch_swblockvolumes_status_denied=no$"
|
||||
save_as: exec_swblockvolume_status_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_swblockvolume_status_denied }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac/phase54-authority-executor-target-rbac-summary.txt"
|
||||
pattern: "^exec_create_events_denied=no$"
|
||||
save_as: exec_events_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ exec_events_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase54-authority-executor-target-rbac"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 64 gate: blockvolume runtime rebuild start endpoint.
|
||||
|
||||
name: blockvolume-runtime-endpoint-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: blockvolume_runtime_endpoint_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint bash scripts/run-phase64-blockvolume-runtime-endpoint-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^phase64_blockvolume_runtime_endpoint_status=ok$"
|
||||
save_as: phase64_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase64_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^runtime_state_started_supported=true$"
|
||||
save_as: started_supported
|
||||
- action: assert_greater
|
||||
actual: "{{ started_supported }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^authority_executor_started_result_not_blocked=true$"
|
||||
save_as: started_not_blocked
|
||||
- action: assert_greater
|
||||
actual: "{{ started_not_blocked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^blockvolume_runtime_endpoint_opt_in=true$"
|
||||
save_as: opt_in
|
||||
- action: assert_greater
|
||||
actual: "{{ opt_in }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^blockvolume_runtime_endpoint_posts_started=true$"
|
||||
save_as: posts_started
|
||||
- action: assert_greater
|
||||
actual: "{{ posts_started }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^blockvolume_runtime_endpoint_requires_primary=true$"
|
||||
save_as: requires_primary
|
||||
- action: assert_greater
|
||||
actual: "{{ requires_primary }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^replication_runtime_rejects_lineage_drift=true$"
|
||||
save_as: rejects_drift
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_drift }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint/phase64-blockvolume-runtime-endpoint-summary.txt"
|
||||
pattern: "^runtime_endpoint_terminal_frontier_claimed=false$"
|
||||
save_as: no_terminal_claim
|
||||
- action: assert_greater
|
||||
actual: "{{ no_terminal_claim }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase64-blockvolume-runtime-endpoint"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,72 +0,0 @@
|
||||
# Runner-native Phase 66 gate: caught-up publication preflight surface.
|
||||
|
||||
name: caught-up-publication-preflight-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: publication_preflight_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight bash scripts/run-phase66-caught-up-publication-preflight-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
|
||||
pattern: "^phase66_caught_up_publication_preflight_status=ok$"
|
||||
save_as: phase66_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase66_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
|
||||
pattern: "^publication_decision_schema_locked=true$"
|
||||
save_as: schema_locked
|
||||
- action: assert_greater
|
||||
actual: "{{ schema_locked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
|
||||
pattern: "^publication_blocked_until_caught_up=true$"
|
||||
save_as: blocked_until_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_until_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
|
||||
pattern: "^publication_disabled_after_caught_up=true$"
|
||||
save_as: disabled_after_caught_up
|
||||
- action: assert_greater
|
||||
actual: "{{ disabled_after_caught_up }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight/phase66-caught-up-publication-preflight-summary.txt"
|
||||
pattern: "^publication_mutation_allowed=false$"
|
||||
save_as: mutation_false
|
||||
- action: assert_greater
|
||||
actual: "{{ mutation_false }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase66-caught-up-publication-preflight"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,88 +0,0 @@
|
||||
# Runner-native cleanup residue audit.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the lab is clean before the next workload starts. This is not an
|
||||
# install/uninstall functional test; it is a repeatability guard for beta
|
||||
# suites that should fail when stale iSCSI/NVMe/K8s/process state leaks from
|
||||
# earlier children.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/cleanup-residue-chain.yaml
|
||||
|
||||
name: cleanup-residue-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: host_protocol_residue
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/uninstall /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status; else echo no-git-worktree > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.sha; : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/pin_build/git.status; fi"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "command -v iscsiadm >/dev/null && (sudo -n iscsiadm -m session > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/iscsi-sessions.after-cleanup.txt 2>&1 || grep -q 'No active sessions' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/iscsi-sessions.after-cleanup.txt)"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/verify-cleanup bash scripts/verify-helm-cleanup.sh {{ product_root }}"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "sudo nvme list-subsys -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.json 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.err && ! grep -Ei 'nqn\\.[^[:space:]\"}]*seaweedfs|nqn\\.[^[:space:]\"}]*sw-block|nqn\\.[^[:space:]\"}]*weedblock' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/nvme-list-subsys.after-cleanup.json"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: kubernetes_residue
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "bash -e -c 'kubectl get deploy,daemonset,statefulset,pod,svc,pvc,pv -A -o name > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.err; kubectl get storageclass,csidriver -o name >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt 2>> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.err; if grep -E \"(sw-block|seaweed-block|block\\.csi\\.seaweedfs\\.com)\" /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-resources.after-cleanup.txt > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/k8s-residue.after-cleanup.txt; then exit 1; fi'"
|
||||
|
||||
- name: hostpath_residue
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "if sudo test -d /var/lib/sw-block; then sudo find /var/lib/sw-block -maxdepth 1 -mindepth 1 -print > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath.all.txt; sudo find /var/lib/sw-block -maxdepth 1 -mindepth 1 -type d -name 'testops-*' -print > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt; else : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath.all.txt; : > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt; fi; test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/sw-block-hostpath-testops-residue.txt"
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/uninstall"
|
||||
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "kubectl delete storageclass sw-block sw-block-example sw-block-dynamic sw-block-dynamic-nvme --ignore-not-found=true > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue/delete-storageclasses.log 2>&1 || true"
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
unmount: "/tmp/sw-block-iscsi-os/mnt,/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt,/tmp/sw-block-nvme-failover/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cleanup-residue"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,340 +0,0 @@
|
||||
# Runner-native cluster operations inventory chain.
|
||||
#
|
||||
# Goal:
|
||||
# Prove that an operator can discover the live alpha Kubernetes volume from
|
||||
# the cluster itself, not from TestOps artifacts, and collect nested
|
||||
# per-replica status bundles through sw-block ops inventory.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/cluster-ops-inventory-chain.yaml
|
||||
|
||||
name: cluster-ops-inventory-chain
|
||||
timeout: 22m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: preflight
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/preflight.txt 2>&1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/preflight.txt"
|
||||
pattern: "summary status=PASS"
|
||||
save_as: preflight_count
|
||||
- action: assert_greater
|
||||
actual: "{{ preflight_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: pin_build_alpha_images
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.SW_BLOCK_IMPORT_K3S: "1"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE_ID="
|
||||
save_as: sw_block_image_id_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sw_block_image_id_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_CSI_IMAGE_ID="
|
||||
save_as: sw_block_csi_image_id_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sw_block_csi_image_id_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: live_volume_boundary
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash -lc 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_DEMO_STOP_AFTER=blockvolume-ready SW_BLOCK_DEMO_KEEP_ON_STOP=1 bash scripts/run-k8s-demo.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/controlled-stop.exit_code; test \"$rc\" -eq 42'"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/run.log"
|
||||
pattern: "\\[app-demo\\] controlled stop after blockvolume ready"
|
||||
save_as: controlled_stop_count
|
||||
- action: assert_greater
|
||||
actual: "{{ controlled_stop_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/demo/generated-blockvolume.yaml"
|
||||
pattern: "--status-addr="
|
||||
save_as: generated_status_addr_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generated_status_addr_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: second_volume_boundary
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-pvc.yaml <<'YAML'\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n name: sw-block-demo-pvc-2\n namespace: default\nspec:\n accessModes:\n - ReadWriteOnce\n storageClassName: sw-block-dynamic\n resources:\n requests:\n storage: 1Mi\nYAML\nkubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-pvc.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nkubectl -n default wait --for=jsonpath='{.status.phase}'=Bound pvc/sw-block-demo-pvc-2 --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nfor i in $(seq 1 120); do count=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2 && break; sleep 1; done\ncount=$(kubectl -n default get deploy -l app=sw-blockvolume --no-headers 2>/dev/null | wc -l); test \"$count\" -ge 2\nkubectl -n default wait --for=condition=available deploy -l app=sw-blockvolume --timeout=120s >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log 2>&1\nkubectl -n kube-system exec deploy/sw-blockmaster -c blockmaster -- sh -c 'cat /manifests/*.yaml' > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume-generated-blockvolume.yaml 2> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume-generated-blockvolume.err\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/product-owned-blockvolumes.after-second-pvc.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/apply-second-pvc.log"
|
||||
pattern: "persistentvolumeclaim/sw-block-demo-pvc-2 created"
|
||||
save_as: second_pvc_created_count
|
||||
- action: assert_greater
|
||||
actual: "{{ second_pvc_created_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/product-owned-blockvolumes.after-second-pvc.txt"
|
||||
pattern: "^sw-blockvolume-"
|
||||
save_as: second_volume_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ second_volume_ready_count }}"
|
||||
threshold: "1"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "test ! -e /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/second-volume/apply.log"
|
||||
|
||||
- name: inventory_live_cluster
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; find \"$OUT/volumes\" -name ops-status-bundle.json -exec cat {} \\; > \"$OUT/nested-ops-status-bundles.json\" 2>/dev/null || true; exit \"$rc\"'"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/exit_code.txt"
|
||||
pattern: "^0$"
|
||||
save_as: inventory_exit_zero_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_exit_zero_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: inventory_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "^inventory_status: \\(ok\\|unhealthy\\)$"
|
||||
save_as: inventory_status_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_status_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "^volumes: total=2 ok=[0-2] unhealthy=[0-2] invalid=0$"
|
||||
save_as: two_volume_count
|
||||
- action: assert_greater
|
||||
actual: "{{ two_volume_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "rf=1 desired=1 observed=1"
|
||||
save_as: two_observed_volume_count
|
||||
- action: assert_greater
|
||||
actual: "{{ two_observed_volume_count }}"
|
||||
threshold: "1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "protocols=iscsi"
|
||||
save_as: two_iscsi_protocol_count
|
||||
- action: assert_greater
|
||||
actual: "{{ two_iscsi_protocol_count }}"
|
||||
threshold: "1"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -q 'generated_deployment_missing\\|observed_replicas=0 desired_replicas=1\\|replica_slot_missing' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -q 'replica_unhealthy' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -E 'replica: .*status=ok .*epoch=0 endpoint_version=0' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -q 'ops_status=unhealthy reason=authority_not_assigned epoch=' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "lifecycle_owner=pvc-owner-ref"
|
||||
save_as: lifecycle_owner_count
|
||||
- action: assert_greater
|
||||
actual: "{{ lifecycle_owner_count }}"
|
||||
threshold: "1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc"
|
||||
save_as: pvc_owner_ref_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pvc_owner_ref_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc-2"
|
||||
save_as: second_pvc_owner_ref_count
|
||||
- action: assert_greater
|
||||
actual: "{{ second_pvc_owner_ref_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "pvc=sw-block-demo-pvc"
|
||||
save_as: pvc_identity_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pvc_identity_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "pvc=sw-block-demo-pvc-2"
|
||||
save_as: second_pvc_identity_count
|
||||
- action: assert_greater
|
||||
actual: "{{ second_pvc_identity_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory-summary.txt"
|
||||
pattern: "support_bundle=volumes/"
|
||||
save_as: replica_support_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ replica_support_bundle_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
|
||||
pattern: "\"pvc_name\": \"sw-block-demo-pvc\""
|
||||
save_as: json_pvc_count
|
||||
- action: assert_greater
|
||||
actual: "{{ json_pvc_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
|
||||
pattern: "\"pvc_name\": \"sw-block-demo-pvc-2\""
|
||||
save_as: json_second_pvc_count
|
||||
- action: assert_greater
|
||||
actual: "{{ json_second_pvc_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/volume-inventory.json"
|
||||
pattern: "\"status_address\": \"127.0.0.1:"
|
||||
save_as: json_status_addr_count
|
||||
- action: assert_greater
|
||||
actual: "{{ json_status_addr_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory/nested-ops-status-bundles.json"
|
||||
pattern: "\"command\": \"sw-block ops status\""
|
||||
save_as: nested_status_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ nested_status_bundle_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: scoped_delete_inventory
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "kubectl -n default delete pvc sw-block-demo-pvc-2 --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/delete-second-pvc.log 2>&1\nfor i in $(seq 1 120); do if ! kubectl -n default get deploy -l app=sw-blockvolume -o jsonpath='{range .items[*]}{.metadata.ownerReferences[0].name}{\"\\n\"}{end}' 2>/dev/null | grep -q '^sw-block-demo-pvc-2$'; then break; fi; sleep 1; done\nif kubectl -n default get deploy -l app=sw-blockvolume -o jsonpath='{range .items[*]}{.metadata.ownerReferences[0].name}{\"\\n\"}{end}' 2>/dev/null | grep -q '^sw-block-demo-pvc-2$'; then echo 'second PVC-owned deployment still present after delete' >&2; exit 1; fi\nkubectl -n default get deploy -l app=sw-blockvolume -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/blockvolumes.after-delete-second-pvc.txt"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "cd {{ product_root }} && bash -c 'set -euo pipefail; OUT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete; mkdir -p \"$OUT\"; pf_port=$(python3 - <<\"PY\"\nimport socket\ns=socket.socket(); s.bind((\"127.0.0.1\",0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n kube-system port-forward svc/blockmaster ${pf_port}:9333 > \"$OUT/blockmaster-port-forward.log\" 2>&1 & pf_pid=$!; echo \"$pf_pid\" > \"$OUT/blockmaster-port-forward.pid\"; cleanup(){ kill \"$pf_pid\" >/dev/null 2>&1 || true; wait \"$pf_pid\" >/dev/null 2>&1 || true; }; trap cleanup EXIT; for i in $(seq 1 30); do (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1 && break; sleep 1; done; (echo >/dev/tcp/127.0.0.1/${pf_port}) >/dev/null 2>&1; go run ./cmd/sw-block ops inventory --namespace default --master 127.0.0.1:${pf_port} --out \"$OUT\" --timeout 30s > \"$OUT/stdout.txt\" 2> \"$OUT/stderr.txt\"; rc=$?; echo \"$rc\" > \"$OUT/exit_code.txt\"; exit \"$rc\"'"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
|
||||
pattern: "^volumes: total=1 ok=[0-1] unhealthy=[0-1] invalid=0$"
|
||||
save_as: one_volume_after_delete_count
|
||||
- action: assert_greater
|
||||
actual: "{{ one_volume_after_delete_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
|
||||
pattern: "pvc=sw-block-demo-pvc"
|
||||
save_as: surviving_pvc_count
|
||||
- action: assert_greater
|
||||
actual: "{{ surviving_pvc_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -q 'pvc=sw-block-demo-pvc-2\\|owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc-2\\|generated_deployment_missing\\|orphan-blockvolume-deploy' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/inventory-after-delete/volume-inventory-summary.txt"
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "kubectl -n default delete pvc sw-block-demo-pvc-2 --ignore-not-found=true --wait=true --timeout=120s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/delete-second-pvc.log 2>&1 || true"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash scripts/uninstall-k8s-alpha.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory/uninstall"
|
||||
env.SW_BLOCK_UNINSTALL_DELETE_ALL_BLOCKVOLUMES: "1"
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "pkill -f 'kubectl.*port-forward.*svc/blockmaste[r]' >/dev/null 2>&1 || true"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |[/]kubectl .*port-forward .*svc/blockmaste[r]|^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-cluster-inventory"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,94 +0,0 @@
|
||||
# Runner-native CSI lifecycle component gate.
|
||||
#
|
||||
# Goal:
|
||||
# Run the fast CSI controller/node component tests that pin publish,
|
||||
# stage, unpublish, unstage, and reattach semantics without requiring a
|
||||
# privileged Linux initiator or Kubernetes workload.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/csi-lifecycle-component-gate.yaml
|
||||
|
||||
name: csi-lifecycle-component-gate
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build"
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/pin_build/git.status"
|
||||
|
||||
- name: csi_component_tests
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -v ./core/csi | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log'"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
|
||||
pattern: "--- PASS: TestG15e_CSIReattachUsesFreshPublishTargetAfterUnstage"
|
||||
save_as: reattach_component_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reattach_component_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
|
||||
pattern: "--- PASS: TestNodeStage_FailsClosedOnStaleLoggedInSessionWithoutStagedIdentity"
|
||||
save_as: stale_session_component_count
|
||||
- action: assert_greater
|
||||
actual: "{{ stale_session_component_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component/core-csi-go-test.log"
|
||||
pattern: "--- PASS: TestNodeStageUnstage_RepeatedCyclesLeaveNoLocalState"
|
||||
save_as: repeated_cycle_component_count
|
||||
- action: assert_greater
|
||||
actual: "{{ repeated_cycle_component_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-lifecycle-component"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,278 +0,0 @@
|
||||
# Runner-native RF=1 durable blockvolume restart chain.
|
||||
#
|
||||
# Goal:
|
||||
# clean target -> build/import alpha images -> run dynamic PVC with durable
|
||||
# generated blockvolume hostPath state -> restart generated blockvolume
|
||||
# Deployment -> verify replacement app pod reads pre-restart bytes -> collect.
|
||||
#
|
||||
# Expected invocation from sw-test-runner-standalone:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/csi-rf1-durable-restart-chain.yaml
|
||||
|
||||
name: csi-rf1-durable-restart-chain
|
||||
timeout: 18m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: pin_build_alpha_images
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.SW_BLOCK_IMPORT_K3S: "1"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE_ID="
|
||||
save_as: pin_image_id_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pin_image_id_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: durable_blockvolume_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-k8s-blockvolume-restart.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/pin_build/alpha-images.env"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart"
|
||||
env.SW_BLOCK_LAUNCHER_STATE_HOSTPATH: "/var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
|
||||
env.SW_BLOCK_COLLECT_INVENTORY_AFTER_RESTART: "1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/run.log"
|
||||
pattern: "\\[app-demo\\] PASS:"
|
||||
save_as: app_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ app_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/run.log"
|
||||
pattern: "restart_blockvolume_before_reader=1"
|
||||
save_as: restart_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/block-stack.rendered.yaml"
|
||||
pattern: "--launcher-status"
|
||||
save_as: launcher_status_count
|
||||
- action: assert_greater
|
||||
actual: "{{ launcher_status_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/block-stack.rendered.yaml"
|
||||
pattern: "--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
|
||||
save_as: launcher_state_hostpath_count
|
||||
- action: assert_greater
|
||||
actual: "{{ launcher_state_hostpath_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
|
||||
pattern: "hostPath:"
|
||||
save_as: generated_hostpath_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generated_hostpath_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
|
||||
pattern: "type: DirectoryOrCreate"
|
||||
save_as: generated_hostpath_type_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generated_hostpath_type_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
|
||||
pattern: "--status-addr=127.0.0.1:"
|
||||
save_as: generated_status_addr_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generated_status_addr_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "awk 'BEGIN{in_volumes=0;in_state=0;bad=0} /^[[:space:]]*volumes:[[:space:]]*$/{in_volumes=1;next} in_volumes && /^[^[:space:]]/{in_volumes=0;in_state=0} in_volumes && /^[[:space:]]*-[[:space:]]*name:[[:space:]]*state[[:space:]]*$/{in_state=1;next} in_state && /^[[:space:]]*-[[:space:]]*name:[[:space:]]*/{in_state=0} in_state && /emptyDir:/{bad=1} END{exit bad}' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/generated-blockvolume.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/writer.log"
|
||||
pattern: "\\[app-writer\\] wrote and verified /data/demo.bin"
|
||||
save_as: writer_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.before-restart.tsv && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.after-restart.tsv && ! cmp -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.before-restart.tsv /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-pod-ids.after-restart.tsv"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -q 'iqn.2026-05.io.seaweedfs' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/iscsi-sessions.before-blockvolume-restart.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/restart-blockvolume-status.log"
|
||||
pattern: "successfully rolled out"
|
||||
save_as: blockvolume_rollout_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blockvolume_rollout_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/reader.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/reader.describe.before-delete.txt"
|
||||
pattern: "Status: Succeeded"
|
||||
save_as: reader_succeeded_describe_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_succeeded_describe_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
|
||||
pattern: "\"ReplicaID\"[[:space:]]*:[[:space:]]*\"r1\""
|
||||
save_as: durable_status_replica_count
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_status_replica_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
|
||||
pattern: "\"Epoch\"[[:space:]]*:[[:space:]]*[1-9][0-9]*"
|
||||
save_as: durable_status_epoch_count
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_status_epoch_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
|
||||
pattern: "\"Latched\"[[:space:]]*:[[:space:]]*true"
|
||||
save_as: durable_status_latched_count
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_status_latched_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/status-durable-after-blockvolume-restart.json"
|
||||
pattern: "\"Operational\"[[:space:]]*:[[:space:]]*true"
|
||||
save_as: durable_status_operational_count
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_status_operational_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/blockvolume-generated.after-restart.log"
|
||||
pattern: "\"phase\":\"iscsi-listening\""
|
||||
save_as: blockvolume_iscsi_listening_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blockvolume_iscsi_listening_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/lifecycle-volumes.after-blockvolume-restart.json"
|
||||
pattern: "\"protocol\"[[:space:]]*:[[:space:]]*\"iscsi\""
|
||||
save_as: lifecycle_after_restart_protocol_count
|
||||
- action: assert_greater
|
||||
actual: "{{ lifecycle_after_restart_protocol_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
|
||||
pattern: "^volume: .*pvc=sw-block-demo-pvc .*protocols=iscsi"
|
||||
save_as: inventory_after_restart_volume_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_after_restart_volume_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
|
||||
pattern: "^replica: .*support_bundle=volumes/"
|
||||
save_as: inventory_after_restart_support_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_after_restart_support_bundle_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volume-inventory-summary.txt"
|
||||
pattern: "lifecycle_owner=pvc-owner-ref owner_ref=PersistentVolumeClaim/default/sw-block-demo-pvc"
|
||||
save_as: inventory_after_restart_owner_ref_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_after_restart_owner_ref_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/nested-ops-status-bundles.json"
|
||||
pattern: "\"command\": \"sw-block ops status\""
|
||||
save_as: nested_ops_status_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ nested_ops_status_bundle_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "find /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain/durable_blockvolume_restart/ops-inventory-after-restart/volumes -name volume-status-summary.txt -exec grep -q '^durable_entry: .*latched=true .*operational=true' {} \\; -print | grep -q ."
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-csi-rf1-restart"
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-chain"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,120 +0,0 @@
|
||||
# Runner-native RF=1 durable restart component gate.
|
||||
#
|
||||
# Goal:
|
||||
# Pin the cheap contracts behind csi-rf1-durable-restart-chain without
|
||||
# launching k3s: restart wrapper shape, generated hostPath/status manifests,
|
||||
# master frontend status projection, and durable status endpoint lineage.
|
||||
# The full csi-rf1-durable-restart-chain remains the end-to-end proof for
|
||||
# pod restart, reattach timing, and mounted data continuity.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/csi-rf1-durable-restart-component-gate.yaml
|
||||
|
||||
name: csi-rf1-durable-restart-component-gate
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build"
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/pin_build/git.status"
|
||||
|
||||
- name: restart_component_tests
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash -o pipefail -c 'go test -count=1 -json -run \"^(TestCSIRF1DurableRestartScripts_PinBlockvolumeRestartContract|TestG15d_K8sRenderer_CanUseHostPathStateVolume|TestG15d_K8sRenderer_DurableHostPathPreservesOwnerRefAndStatus|TestG15d_K8sRenderer_CanOptIntoBlockVolumeStatusEndpoint|TestStatusFrontendsForAssignedLine_ReturnsObservedFrontendFacts|TestStatusServer_DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage)$\" ./internal/testops ./core/host/master ./core/host/volume ./core/launcher | tee /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl'"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestCSIRF1DurableRestartScripts_PinBlockvolumeRestartContract\""
|
||||
save_as: restart_wrapper_shape_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_wrapper_shape_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_CanUseHostPathStateVolume\""
|
||||
save_as: hostpath_render_count
|
||||
- action: assert_greater
|
||||
actual: "{{ hostpath_render_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_DurableHostPathPreservesOwnerRefAndStatus\""
|
||||
save_as: hostpath_owner_ref_status_count
|
||||
- action: assert_greater
|
||||
actual: "{{ hostpath_owner_ref_status_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestG15d_K8sRenderer_CanOptIntoBlockVolumeStatusEndpoint\""
|
||||
save_as: status_render_count
|
||||
- action: assert_greater
|
||||
actual: "{{ status_render_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusFrontendsForAssignedLine_ReturnsObservedFrontendFacts\""
|
||||
save_as: master_frontend_projection_count
|
||||
- action: assert_greater
|
||||
actual: "{{ master_frontend_projection_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component/restart-component-go-test.jsonl"
|
||||
pattern: "\"Action\":\"pass\".*\"Test\":\"TestStatusServer_DurableStatusEndpoint_EnabledAfterStart_ReturnsLineage\""
|
||||
save_as: durable_status_lineage_count
|
||||
- action: assert_greater
|
||||
actual: "{{ durable_status_lineage_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-component"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,140 +0,0 @@
|
||||
# Runner-native RF=1 durable restart partial-state chain.
|
||||
#
|
||||
# Goal:
|
||||
# Prove that a controlled post-restart blockvolume outage produces an
|
||||
# actionable inventory bundle instead of a silent reader timeout.
|
||||
|
||||
name: csi-rf1-durable-restart-failure-chain
|
||||
timeout: 18m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: pin_build_alpha_images
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.SW_BLOCK_IMPORT_K3S: "1"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE_ID="
|
||||
save_as: pin_image_id_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pin_image_id_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: durable_hostpath_unwritable
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash -c 'set -a; source /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/pin_build/alpha-images.env; set +a; set +e; SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure SW_BLOCK_LAUNCHER_STATE_HOSTPATH=/proc/sw-block-testops-{{ run_id }} SW_BLOCK_COLLECT_INVENTORY_ON_FAILURE=1 bash scripts/run-k8s-blockvolume-restart.sh {{ product_root }}; rc=$?; echo $rc > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/exit_code.txt; test \"$rc\" -ne 0'"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/run.log"
|
||||
pattern: "launcher_state_hostpath=/proc/sw-block-testops-{{ run_id }}"
|
||||
save_as: bad_hostpath_count
|
||||
- action: assert_greater
|
||||
actual: "{{ bad_hostpath_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/exit_code.txt"
|
||||
pattern: "^[1-9][0-9]*$"
|
||||
save_as: failed_exit_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failed_exit_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: failure_bundle_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
|
||||
pattern: "^inventory_status: unhealthy$"
|
||||
save_as: inventory_unhealthy_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_unhealthy_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
|
||||
pattern: "pvc=sw-block-demo-pvc"
|
||||
save_as: pvc_row_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pvc_row_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
|
||||
pattern: "generated_deployment_missing\\|observed_replicas=0 desired_replicas=1\\|replica_degraded=r1 status=unhealthy\\|ops_status=unhealthy"
|
||||
save_as: actionable_issue_count
|
||||
- action: assert_greater
|
||||
actual: "{{ actionable_issue_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/ops-inventory-bundle.json"
|
||||
pattern: "\"command\": \"sw-block ops inventory\""
|
||||
save_as: inventory_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ inventory_bundle_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure/restart_failure/ops-inventory-on-failure/volume-inventory-summary.txt"
|
||||
pattern: "collection_error: ops_status:"
|
||||
save_as: collection_error_count
|
||||
- action: assert_greater
|
||||
actual: "{{ collection_error_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-csi-rf1-restart-failure"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,97 +0,0 @@
|
||||
name: data-plane-address-capability-chain
|
||||
timeout: 10m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: run_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address bash scripts/run-phase121-data-plane-address-capability-gate.sh {{ product_root }}"
|
||||
|
||||
- name: assert_summary
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^phase121_data_plane_address_capability_status=ok$"
|
||||
save_as: phase121_status_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase121_status_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^management_ip_m01=192\\.168\\.1\\.181$"
|
||||
save_as: management_ip_recorded
|
||||
- action: assert_greater
|
||||
actual: "{{ management_ip_recorded }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^publish_target_ip_m01=10\\.0\\.0\\.181$"
|
||||
save_as: data_plane_ip_recorded
|
||||
- action: assert_greater
|
||||
actual: "{{ data_plane_ip_recorded }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^publish_target_network_class=100gbe_tcp$"
|
||||
save_as: network_class_recorded
|
||||
- action: assert_greater
|
||||
actual: "{{ network_class_recorded }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^frontend_transport=tcp$"
|
||||
save_as: tcp_transport
|
||||
- action: assert_greater
|
||||
actual: "{{ tcp_transport }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^nvme_rdma_supported=false$"
|
||||
save_as: rdma_not_supported
|
||||
- action: assert_greater
|
||||
actual: "{{ rdma_not_supported }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^internal_ip_not_reused_as_performance_target=true$"
|
||||
save_as: internal_ip_not_reused
|
||||
- action: assert_greater
|
||||
actual: "{{ internal_ip_not_reused }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address/phase121-data-plane-address-capability-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: cleanup_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ cleanup_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase121-data-plane-address"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,115 +0,0 @@
|
||||
# Runner-native Phase 79 gate: the failback executor can call the
|
||||
# authority-owned runtime adapter. Execution remains explicit-policy gated, and
|
||||
# stale expected-current evidence blocks the call-site without a false failback.
|
||||
|
||||
name: failback-authority-callsite-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_authority_callsite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite bash scripts/run-phase79-failback-authority-callsite-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^phase79_failback_authority_callsite_status=ok$"
|
||||
save_as: phase79_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase79_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^authority_runtime_adapter_invoked_by_executor=true$"
|
||||
save_as: adapter_invoked
|
||||
- action: assert_greater
|
||||
actual: "{{ adapter_invoked }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^publisher_authority_line_advanced=true$"
|
||||
save_as: publisher_advanced
|
||||
- action: assert_greater
|
||||
actual: "{{ publisher_advanced }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^stale_expected_current_blocks_callsite=true$"
|
||||
save_as: stale_guard
|
||||
- action: assert_greater
|
||||
actual: "{{ stale_guard }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^execution_policy_still_required=true$"
|
||||
save_as: policy_gate
|
||||
- action: assert_greater
|
||||
actual: "{{ policy_gate }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^failed_back_status_written=true$"
|
||||
save_as: failed_back_status
|
||||
- action: assert_greater
|
||||
actual: "{{ failed_back_status }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^runtime_failure_no_false_failback=true$"
|
||||
save_as: no_false_failback
|
||||
- action: assert_greater
|
||||
actual: "{{ no_false_failback }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite/phase79-failback-authority-callsite-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase79-failback-authority-callsite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,125 +0,0 @@
|
||||
# Runner-native Phase 78 gate: failback has a first authority-owned runtime
|
||||
# seam. It mints authority reassignment through Publisher.apply only after
|
||||
# expected-current and terminal-evidence guards pass. Default behavior remains
|
||||
# disabled and non-mutating.
|
||||
|
||||
name: failback-authority-runtime-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_authority_runtime_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime bash scripts/run-phase78-failback-authority-runtime-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^phase78_failback_authority_runtime_status=ok$"
|
||||
save_as: phase78_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase78_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^authority_failback_reassign_minted=true$"
|
||||
save_as: reassign_minted
|
||||
- action: assert_greater
|
||||
actual: "{{ reassign_minted }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^stale_expected_current_rejected=true$"
|
||||
save_as: stale_guard
|
||||
- action: assert_greater
|
||||
actual: "{{ stale_guard }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^terminal_preconditions_required=true$"
|
||||
save_as: terminal_guard
|
||||
- action: assert_greater
|
||||
actual: "{{ terminal_guard }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^failback_target_endpoint_fields=true$"
|
||||
save_as: endpoint_fields
|
||||
- action: assert_greater
|
||||
actual: "{{ endpoint_fields }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^failback_target_expected_current_fields=true$"
|
||||
save_as: expected_current_fields
|
||||
- action: assert_greater
|
||||
actual: "{{ expected_current_fields }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^executable_failback_requires_authority_endpoint=true$"
|
||||
save_as: executable_requires_endpoint
|
||||
- action: assert_greater
|
||||
actual: "{{ executable_requires_endpoint }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^explicit_runtime_authority_mutation_allowed=true$"
|
||||
save_as: authority_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ authority_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime/phase78-failback-authority-runtime-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase78-failback-authority-runtime"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,106 +0,0 @@
|
||||
# Runner-native Phase 83 gate: Helm chart wiring for the failback gRPC
|
||||
# runtime transport. The default chart remains non-mutating; explicit values
|
||||
# render the blockmaster RPC flag plus executor execution/gRPC flags.
|
||||
|
||||
name: failback-chart-runtime-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_chart_runtime_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime bash scripts/run-phase83-failback-chart-runtime-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^phase83_failback_chart_runtime_status=ok$"
|
||||
save_as: phase83_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase83_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^default_omits_failback_runtime_rpc=true$"
|
||||
save_as: default_rpc_off
|
||||
- action: assert_greater
|
||||
actual: "{{ default_rpc_off }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^enabled_renders_failback_runtime_rpc=true$"
|
||||
save_as: enabled_rpc
|
||||
- action: assert_greater
|
||||
actual: "{{ enabled_rpc }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^enabled_renders_failback_grpc_addr=true$"
|
||||
save_as: enabled_grpc
|
||||
- action: assert_greater
|
||||
actual: "{{ enabled_grpc }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^rejects_execution_with_dry_run=true$"
|
||||
save_as: rejects_dryrun
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_dryrun }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^rejects_execution_without_policy=true$"
|
||||
save_as: rejects_policy
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_policy }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^rejects_ambiguous_runtime_transports=true$"
|
||||
save_as: rejects_ambiguous
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_ambiguous }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime/phase83-failback-chart-runtime-summary.txt"
|
||||
pattern: "^chart_default_remains_non_mutating=true$"
|
||||
save_as: default_non_mutating
|
||||
- action: assert_greater
|
||||
actual: "{{ default_non_mutating }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase83-failback-chart-runtime"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,88 +0,0 @@
|
||||
# Runner-native Phase 94 gate: full opt-in failback suite renders coherently and
|
||||
# the executor can call a real blockmaster FailbackService in local test.
|
||||
# This is not a live Kubernetes install claim.
|
||||
|
||||
name: failback-deployed-grpc-smoke-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_deployed_grpc_smoke_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke bash scripts/run-phase94-failback-deployed-grpc-smoke-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^phase94_failback_deployed_grpc_smoke_status=ok$"
|
||||
save_as: phase94_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase94_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^enabled_renders_failback_runtime_rpc=true$"
|
||||
save_as: runtime_rpc
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_rpc }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^enabled_target_owner_activates_targets=true$"
|
||||
save_as: target_activation
|
||||
- action: assert_greater
|
||||
actual: "{{ target_activation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^enabled_executor_grpc_runtime=true$"
|
||||
save_as: executor_grpc
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_grpc }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^executor_grpc_uses_real_master_service=true$"
|
||||
save_as: real_master_grpc
|
||||
- action: assert_greater
|
||||
actual: "{{ real_master_grpc }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke/phase94-failback-deployed-grpc-smoke-summary.txt"
|
||||
pattern: "^live_kubernetes_install_claimed=false$"
|
||||
save_as: no_live_install_claim
|
||||
- action: assert_greater
|
||||
actual: "{{ no_live_install_claim }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase94-failback-deployed-grpc-smoke"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,106 +0,0 @@
|
||||
# Runner-native Phase 88 gate: returned-replica failback can be packaged as a
|
||||
# deployable component suite. This is still a chart/RBAC gate, not a live
|
||||
# authority-mutation claim.
|
||||
|
||||
name: failback-deployed-suite-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_deployed_suite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite bash scripts/run-phase88-failback-deployed-suite-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^phase88_failback_deployed_suite_status=ok$"
|
||||
save_as: phase88_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase88_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^default_omits_failback_target_owner=true$"
|
||||
save_as: target_default_off
|
||||
- action: assert_greater
|
||||
actual: "{{ target_default_off }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^enabled_renders_failback_target_owner=true$"
|
||||
save_as: target_owner_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ target_owner_enabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^enabled_renders_failback_executor=true$"
|
||||
save_as: executor_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_enabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^values_schema_covers_failback_suite=true$"
|
||||
save_as: schema_covers_suite
|
||||
- action: assert_greater
|
||||
actual: "{{ schema_covers_suite }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^target_owner_rbac_create_targets_only=true$"
|
||||
save_as: target_owner_rbac
|
||||
- action: assert_greater
|
||||
actual: "{{ target_owner_rbac }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^executor_rbac_status_only=true$"
|
||||
save_as: executor_rbac
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_rbac }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite/phase88-failback-deployed-suite-summary.txt"
|
||||
pattern: "^automatic_failback_claimed=false$"
|
||||
save_as: no_auto_claim
|
||||
- action: assert_greater
|
||||
actual: "{{ no_auto_claim }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase88-failback-deployed-suite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,60 +0,0 @@
|
||||
# Runner-native Phase 87 gate: docs agree that returned-replica failback
|
||||
# runtime is opt-in/source-gated and automatic deployed failback is not claimed.
|
||||
|
||||
name: failback-docs-alignment-chain
|
||||
timeout: 4m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_docs_alignment
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment bash scripts/run-phase87-failback-docs-alignment-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
|
||||
pattern: "^phase87_failback_docs_alignment_status=ok$"
|
||||
save_as: phase87_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase87_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
|
||||
pattern: "^automatic_failback_not_claimed=true$"
|
||||
save_as: no_auto
|
||||
- action: assert_greater
|
||||
actual: "{{ no_auto }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment/phase87-failback-docs-alignment-summary.txt"
|
||||
pattern: "^frontend_publication_after_failback_not_claimed=true$"
|
||||
save_as: no_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase87-failback-docs-alignment"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,115 +0,0 @@
|
||||
# Runner-native Phase 76 gate: SwBlockReplicaFailback executor writes
|
||||
# disabled/blocked status only. It does not execute failback, advance authority,
|
||||
# swap publish targets, publish frontend paths, or mutate storage.
|
||||
|
||||
name: failback-executor-boundary-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_executor_boundary_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary bash scripts/run-phase76-failback-executor-boundary-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^phase76_failback_executor_boundary_status=ok$"
|
||||
save_as: phase76_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase76_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^failback_executor_writes_disabled_status=true$"
|
||||
save_as: writes_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ writes_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^failback_executor_dry_run_no_status_write=true$"
|
||||
save_as: dry_run_no_write
|
||||
- action: assert_greater
|
||||
actual: "{{ dry_run_no_write }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^kubernetes_writer_failback_status_subresource=true$"
|
||||
save_as: status_subresource
|
||||
- action: assert_greater
|
||||
actual: "{{ status_subresource }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^failback_executor_rbac_status_only=true$"
|
||||
save_as: rbac_status_only
|
||||
- action: assert_greater
|
||||
actual: "{{ rbac_status_only }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempt
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempt }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^authority_mutation_allowed=false$"
|
||||
save_as: no_authority_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_authority_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary/phase76-failback-executor-boundary-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase76-failback-executor-boundary"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,115 +0,0 @@
|
||||
# Runner-native Phase 82 gate: failback executor can use the blockmaster
|
||||
# FailbackService gRPC runtime transport, still behind explicit execution
|
||||
# policy. HTTP runtime remains supported; HTTP and gRPC are mutually exclusive.
|
||||
|
||||
name: failback-executor-grpc-runtime-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_executor_grpc_runtime_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime bash scripts/run-phase82-failback-executor-grpc-runtime-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^phase82_failback_executor_grpc_runtime_status=ok$"
|
||||
save_as: phase82_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase82_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^grpc_runtime_calls_failback_service=true$"
|
||||
save_as: grpc_calls_service
|
||||
- action: assert_greater
|
||||
actual: "{{ grpc_calls_service }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^cmd_grpc_runtime_writes_failed_back_status=true$"
|
||||
save_as: grpc_status
|
||||
- action: assert_greater
|
||||
actual: "{{ grpc_status }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^cmd_grpc_runtime_requires_enable=true$"
|
||||
save_as: requires_enable
|
||||
- action: assert_greater
|
||||
actual: "{{ requires_enable }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^cmd_rejects_ambiguous_runtime_transports=true$"
|
||||
save_as: ambiguous_rejected
|
||||
- action: assert_greater
|
||||
actual: "{{ ambiguous_rejected }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^cmd_http_runtime_still_supported=true$"
|
||||
save_as: http_still_supported
|
||||
- action: assert_greater
|
||||
actual: "{{ http_still_supported }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^execution_policy_still_required=true$"
|
||||
save_as: policy_gate
|
||||
- action: assert_greater
|
||||
actual: "{{ policy_gate }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime/phase82-failback-executor-grpc-runtime-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase82-failback-executor-grpc-runtime"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,97 +0,0 @@
|
||||
# Runner-native Phase 85 gate: failback executor policy safety. Explicit
|
||||
# execution flags do not cause runtime calls unless a valid executable target
|
||||
# exists.
|
||||
|
||||
name: failback-executor-policy-safety-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_executor_policy_safety
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety bash scripts/run-phase85-failback-executor-policy-safety-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^phase85_failback_executor_policy_safety_status=ok$"
|
||||
save_as: phase85_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase85_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^no_targets_no_runtime_call=true$"
|
||||
save_as: no_targets
|
||||
- action: assert_greater
|
||||
actual: "{{ no_targets }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^invalid_target_no_runtime_call=true$"
|
||||
save_as: invalid_target
|
||||
- action: assert_greater
|
||||
actual: "{{ invalid_target }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^execution_flags_alone_insufficient=true$"
|
||||
save_as: flags_insufficient
|
||||
- action: assert_greater
|
||||
actual: "{{ flags_insufficient }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^runtime_requires_valid_target=true$"
|
||||
save_as: requires_valid
|
||||
- action: assert_greater
|
||||
actual: "{{ requires_valid }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety/phase85-failback-executor-policy-safety-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase85-failback-executor-policy-safety"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,97 +0,0 @@
|
||||
# Runner-native Phase 96 gate: terminal SwBlockReplicaFailback evidence creates
|
||||
# a disabled SwBlockFrontendPublication target. This is not a frontend
|
||||
# publication execution or data-path claim.
|
||||
|
||||
name: failback-frontend-publication-target-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_frontend_publication_target_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target bash scripts/run-phase96-failback-frontend-publication-target-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^phase96_failback_frontend_publication_target_status=ok$"
|
||||
save_as: phase96_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase96_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^terminal_failed_back_creates_frontend_publication_target=true$"
|
||||
save_as: target_created
|
||||
- action: assert_greater
|
||||
actual: "{{ target_created }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^non_terminal_failback_rejected=true$"
|
||||
save_as: rejects_non_terminal
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_non_terminal }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^executor_accepts_failback_target_as_disabled=true$"
|
||||
save_as: executor_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_publication_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_publication_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target/phase96-failback-frontend-publication-target-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase96-failback-frontend-publication-target"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 98 close gate: deployed failback, product-owned frontend
|
||||
# publication runtime confirmation, post-publication workload I/O, and cleanup.
|
||||
|
||||
name: failback-frontend-workload-close-chain
|
||||
timeout: 35m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_frontend_workload_close_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 34m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close bash scripts/run-phase98-failback-frontend-workload-close-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^phase98_failback_frontend_workload_close_status=ok$"
|
||||
save_as: phase98_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase98_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^executor_status_failed_back=true$"
|
||||
save_as: failback_done
|
||||
- action: assert_greater
|
||||
actual: "{{ failback_done }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^frontend_published=true$"
|
||||
save_as: frontend_published
|
||||
- action: assert_greater
|
||||
actual: "{{ frontend_published }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^frontend_publication_failback_started=false$"
|
||||
save_as: no_second_failback
|
||||
- action: assert_greater
|
||||
actual: "{{ no_second_failback }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^post_failback_publication_writer_verified=true$"
|
||||
save_as: post_writer
|
||||
- action: assert_greater
|
||||
actual: "{{ post_writer }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^post_failback_publication_reader_verified=true$"
|
||||
save_as: post_reader
|
||||
- action: assert_greater
|
||||
actual: "{{ post_reader }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close/phase98-failback-frontend-workload-close-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: cleanup_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ cleanup_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase98-failback-frontend-workload-close"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,87 +0,0 @@
|
||||
# Runner-native Phase 86 gate: an explicit gRPC failback runtime address is
|
||||
# sufficient; the target does not need the legacy HTTP runtimeEndpoint field.
|
||||
|
||||
name: failback-grpc-runtime-endpoint-decoupling-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_grpc_runtime_endpoint_decoupling
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling bash scripts/run-phase86-failback-grpc-runtime-endpoint-decoupling-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^phase86_failback_grpc_runtime_endpoint_decoupling_status=ok$"
|
||||
save_as: phase86_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase86_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^grpc_runtime_does_not_require_target_runtime_endpoint=true$"
|
||||
save_as: grpc_no_endpoint
|
||||
- action: assert_greater
|
||||
actual: "{{ grpc_no_endpoint }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^legacy_http_runtime_endpoint_still_supported=true$"
|
||||
save_as: http_supported
|
||||
- action: assert_greater
|
||||
actual: "{{ http_supported }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^real_master_grpc_service_without_target_endpoint=true$"
|
||||
save_as: real_master
|
||||
- action: assert_greater
|
||||
actual: "{{ real_master }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling/phase86-failback-grpc-runtime-endpoint-decoupling-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase86-failback-grpc-runtime-endpoint-decoupling"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,79 +0,0 @@
|
||||
# Runner-native Phase 93 gate: multi-volume target-owner -> executor handoff
|
||||
# isolation. Runtime requests must not mix expected-current authority or target
|
||||
# addresses across volumes.
|
||||
|
||||
name: failback-handoff-isolation-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_handoff_isolation_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation bash scripts/run-phase93-failback-handoff-isolation-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
|
||||
pattern: "^phase93_failback_handoff_isolation_status=ok$"
|
||||
save_as: phase93_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase93_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
|
||||
pattern: "^multi_volume_target_create_count=2$"
|
||||
save_as: target_count
|
||||
- action: assert_greater
|
||||
actual: "{{ target_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
|
||||
pattern: "^multi_volume_runtime_request_count=2$"
|
||||
save_as: request_count
|
||||
- action: assert_greater
|
||||
actual: "{{ request_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
|
||||
pattern: "^cross_volume_expected_current_mixup=false$"
|
||||
save_as: no_expected_current_mixup
|
||||
- action: assert_greater
|
||||
actual: "{{ no_expected_current_mixup }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation/phase93-failback-handoff-isolation-summary.txt"
|
||||
pattern: "^cross_volume_target_addr_mixup=false$"
|
||||
save_as: no_target_addr_mixup
|
||||
- action: assert_greater
|
||||
actual: "{{ no_target_addr_mixup }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase93-failback-handoff-isolation"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 84 gate: local integrated smoke for failback executor ->
|
||||
# gRPC runtime -> real blockmaster FailbackService -> master Publisher.
|
||||
|
||||
name: failback-integrated-grpc-smoke-chain
|
||||
timeout: 6m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_integrated_grpc_smoke
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc bash scripts/run-phase84-failback-integrated-grpc-smoke.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^phase84_failback_integrated_grpc_status=ok$"
|
||||
save_as: phase84_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase84_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^service_default_disabled_test=true$"
|
||||
save_as: default_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ default_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^executor_grpc_uses_real_master_service=true$"
|
||||
save_as: integrated
|
||||
- action: assert_greater
|
||||
actual: "{{ integrated }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^master_publisher_epoch_advanced=true$"
|
||||
save_as: epoch_advanced
|
||||
- action: assert_greater
|
||||
actual: "{{ epoch_advanced }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^publish_target_swapped_after_failback=true$"
|
||||
save_as: target_swapped
|
||||
- action: assert_greater
|
||||
actual: "{{ target_swapped }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc/phase84-failback-integrated-grpc-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase84-failback-integrated-grpc"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,124 +0,0 @@
|
||||
# Runner-native Phase 95 gate: install the failback target-owner/executor
|
||||
# suite in k3s and drive one real blockmaster gRPC failback authority call
|
||||
# from an in-cluster executor. This is not a frontend publication claim.
|
||||
|
||||
name: failback-live-deployed-suite-chain
|
||||
timeout: 35m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_live_deployed_suite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 34m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite bash scripts/run-phase95-failback-live-deployed-suite-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^phase95_failback_live_deployed_suite_status=ok$"
|
||||
save_as: phase95_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase95_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^helm_install=pass$"
|
||||
save_as: helm_install_pass
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_install_pass }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^first_volume_writer_reader=pass$"
|
||||
save_as: first_volume_pass
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_pass }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^failback_target_created=true$"
|
||||
save_as: target_created
|
||||
- action: assert_greater
|
||||
actual: "{{ target_created }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^failback_executor_completed=true$"
|
||||
save_as: executor_completed
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_completed }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^executor_status_failed_back=true$"
|
||||
save_as: failed_back
|
||||
- action: assert_greater
|
||||
actual: "{{ failed_back }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^master_publisher_epoch_advanced=true$"
|
||||
save_as: epoch_advanced
|
||||
- action: assert_greater
|
||||
actual: "{{ epoch_advanced }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^publish_target_swapped_after_failback=true$"
|
||||
save_as: target_swapped
|
||||
- action: assert_greater
|
||||
actual: "{{ target_swapped }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^frontend_publication_after_failback_claimed=false$"
|
||||
save_as: no_frontend_claim
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_claim }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite/phase95-failback-live-deployed-suite-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: cleanup_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ cleanup_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase95-failback-live-deployed-suite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,106 +0,0 @@
|
||||
# Runner-native Phase 77 gate: failback has a typed runtime contract and
|
||||
# explicit execution-policy gate. Default reconciliation remains disabled; a
|
||||
# fake runtime can report terminal evidence only in tests.
|
||||
|
||||
name: failback-runtime-contract-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_runtime_contract_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract bash scripts/run-phase77-failback-runtime-contract-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^phase77_failback_runtime_contract_status=ok$"
|
||||
save_as: phase77_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase77_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^failback_execution_policy_gate=true$"
|
||||
save_as: policy_gate
|
||||
- action: assert_greater
|
||||
actual: "{{ policy_gate }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^failback_runtime_invoked_only_when_enabled=true$"
|
||||
save_as: runtime_gated
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_gated }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^runtime_failure_no_false_failback=true$"
|
||||
save_as: failure_no_false
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_no_false }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^runtime_invalid_terminal_evidence_no_false_failback=true$"
|
||||
save_as: invalid_no_false
|
||||
- action: assert_greater
|
||||
actual: "{{ invalid_no_false }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^http_runtime_contract_posts_request=true$"
|
||||
save_as: http_contract
|
||||
- action: assert_greater
|
||||
actual: "{{ http_contract }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^target_writer_serializes_runtime_fields=true$"
|
||||
save_as: writer_contract
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_contract }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract/phase77-failback-runtime-contract-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase77-failback-runtime-contract"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,115 +0,0 @@
|
||||
# Runner-native Phase 81 gate: blockmaster has a FailbackService RPC that is
|
||||
# registered but disabled by default. Enabling it is explicit and still requires
|
||||
# expected-current + terminal evidence.
|
||||
|
||||
name: failback-service-rpc-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_service_rpc_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc bash scripts/run-phase81-failback-service-rpc-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^phase81_failback_service_rpc_status=ok$"
|
||||
save_as: phase81_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase81_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^failback_service_default_disabled=true$"
|
||||
save_as: default_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ default_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^failback_runtime_rpc_flag_default_false=true$"
|
||||
save_as: flag_default_false
|
||||
- action: assert_greater
|
||||
actual: "{{ flag_default_false }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^failback_runtime_rpc_flag_opt_in=true$"
|
||||
save_as: flag_opt_in
|
||||
- action: assert_greater
|
||||
actual: "{{ flag_opt_in }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^failback_service_registered=true$"
|
||||
save_as: service_registered
|
||||
- action: assert_greater
|
||||
actual: "{{ service_registered }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^enabled_failback_service_advances_publisher=true$"
|
||||
save_as: enabled_advances
|
||||
- action: assert_greater
|
||||
actual: "{{ enabled_advances }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^public_rpc_enabled_by_default=false$"
|
||||
save_as: public_rpc_default_off
|
||||
- action: assert_greater
|
||||
actual: "{{ public_rpc_default_off }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc/phase81-failback-service-rpc-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase81-failback-service-rpc"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,88 +0,0 @@
|
||||
# Runner-native Phase 91 gate: failback target activation is explicit,
|
||||
# default-off, and requires both policy and runtime endpoint. The target owner
|
||||
# may stamp enabled targets, but it does not call the runtime.
|
||||
|
||||
name: failback-target-activation-policy-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_target_activation_policy_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy bash scripts/run-phase91-failback-target-activation-policy-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^phase91_failback_target_activation_policy_status=ok$"
|
||||
save_as: phase91_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase91_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^activation_default_off=true$"
|
||||
save_as: activation_default_off
|
||||
- action: assert_greater
|
||||
actual: "{{ activation_default_off }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^activation_policy_required=true$"
|
||||
save_as: policy_required
|
||||
- action: assert_greater
|
||||
actual: "{{ policy_required }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^activation_runtime_endpoint_required=true$"
|
||||
save_as: runtime_required
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_required }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^activated_target_failback_decision=enabled$"
|
||||
save_as: target_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ target_enabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy/phase91-failback-target-activation-policy-summary.txt"
|
||||
pattern: "^failback_runtime_call_attempted=false$"
|
||||
save_as: no_runtime_call
|
||||
- action: assert_greater
|
||||
actual: "{{ no_runtime_call }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase91-failback-target-activation-policy"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,88 +0,0 @@
|
||||
# Runner-native Phase 90 gate: failback target owner consumes current
|
||||
# SwBlockVolume.status authority facts before creating a failback target.
|
||||
# This does not execute failback or publish a frontend.
|
||||
|
||||
name: failback-target-authority-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_target_authority_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority bash scripts/run-phase90-failback-target-authority-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^phase90_failback_target_authority_status=ok$"
|
||||
save_as: phase90_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase90_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^expected_current_replica_from_swblockvolume_status=true$"
|
||||
save_as: expected_replica_from_status
|
||||
- action: assert_greater
|
||||
actual: "{{ expected_replica_from_status }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^expected_current_epoch_from_swblockvolume_status=true$"
|
||||
save_as: expected_epoch_from_status
|
||||
- action: assert_greater
|
||||
actual: "{{ expected_epoch_from_status }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^missing_current_authority_target_create_count=0$"
|
||||
save_as: missing_authority_no_target
|
||||
- action: assert_greater
|
||||
actual: "{{ missing_authority_no_target }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^created_target_failback_decision=disabled$"
|
||||
save_as: target_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ target_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority/phase90-failback-target-authority-summary.txt"
|
||||
pattern: "^failback_runtime_call_attempted=false$"
|
||||
save_as: no_runtime_call
|
||||
- action: assert_greater
|
||||
actual: "{{ no_runtime_call }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase90-failback-target-authority"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,88 +0,0 @@
|
||||
# Runner-native Phase 92 gate: target owner creates an enabled failback target,
|
||||
# executor consumes it through a fake/local runtime, and expected-current
|
||||
# authority facts reach the runtime request.
|
||||
|
||||
name: failback-target-executor-handoff-chain
|
||||
timeout: 5m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_target_executor_handoff_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff bash scripts/run-phase92-failback-target-executor-handoff-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^phase92_failback_target_executor_handoff_status=ok$"
|
||||
save_as: phase92_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase92_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^target_owner_created_enabled_target=true$"
|
||||
save_as: owner_created
|
||||
- action: assert_greater
|
||||
actual: "{{ owner_created }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^executor_consumed_target=true$"
|
||||
save_as: executor_consumed
|
||||
- action: assert_greater
|
||||
actual: "{{ executor_consumed }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^runtime_request_expected_current_replica=r2$"
|
||||
save_as: expected_replica
|
||||
- action: assert_greater
|
||||
actual: "{{ expected_replica }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^runtime_request_expected_current_epoch=7$"
|
||||
save_as: expected_epoch
|
||||
- action: assert_greater
|
||||
actual: "{{ expected_epoch }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff/phase92-failback-target-executor-handoff-summary.txt"
|
||||
pattern: "^frontend_publication_after_failback_claimed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase92-failback-target-executor-handoff"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,116 +0,0 @@
|
||||
# Runner-native Phase 75 gate: returned-replica failback can create a
|
||||
# failback target handoff CR only after terminal evidence is present. The owner
|
||||
# remains disabled by default, dry-run by default, and has no status/finalizer,
|
||||
# storage, authority, or frontend publication mutation power.
|
||||
|
||||
name: failback-target-owner-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: failback_target_owner_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner bash scripts/run-phase75-failback-target-owner-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^phase75_failback_target_owner_status=ok$"
|
||||
save_as: phase75_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase75_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_target_owner_creates_target=true$"
|
||||
save_as: creates_target
|
||||
- action: assert_greater
|
||||
actual: "{{ creates_target }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_target_owner_dry_run_no_create=true$"
|
||||
save_as: dry_run_no_create
|
||||
- action: assert_greater
|
||||
actual: "{{ dry_run_no_create }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_target_owner_requires_terminal_evidence=true$"
|
||||
save_as: terminal_evidence_required
|
||||
- action: assert_greater
|
||||
actual: "{{ terminal_evidence_required }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_target_crd_schema=true$"
|
||||
save_as: target_crd_schema
|
||||
- action: assert_greater
|
||||
actual: "{{ target_crd_schema }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_target_owner_chart_boundary=true$"
|
||||
save_as: chart_boundary
|
||||
- action: assert_greater
|
||||
actual: "{{ chart_boundary }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempt
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempt }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner/phase75-failback-target-owner-summary.txt"
|
||||
pattern: "^frontend_publication_allowed=false$"
|
||||
save_as: no_frontend_publication
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_publication }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase75-failback-target-owner"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 73 gate: returned-replica frontend publication requires
|
||||
# a real authority/failback owner and must not be faked by runtime status.
|
||||
|
||||
name: frontend-publication-authority-owner-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_authority_owner_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner bash scripts/run-phase73-frontend-publication-authority-owner-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^phase73_frontend_publication_authority_owner_status=ok$"
|
||||
save_as: phase73_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase73_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^frontend_publication_requires_authority_owner=true$"
|
||||
save_as: authority_owner_required
|
||||
- action: assert_greater
|
||||
actual: "{{ authority_owner_required }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^returned_replica_runtime_invocations=0$"
|
||||
save_as: no_returned_runtime
|
||||
- action: assert_greater
|
||||
actual: "{{ no_returned_runtime }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^returned_replica_frontend_published=false$"
|
||||
save_as: no_false_publish
|
||||
- action: assert_greater
|
||||
actual: "{{ no_false_publish }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^generic_runtime_seam_preserved=true$"
|
||||
save_as: generic_seam_preserved
|
||||
- action: assert_greater
|
||||
actual: "{{ generic_seam_preserved }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_publication_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_publication_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner/phase73-frontend-publication-authority-owner-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase73-frontend-publication-authority-owner"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 70 gate: frontend publication executor status boundary.
|
||||
|
||||
name: frontend-publication-executor-boundary-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_executor_boundary_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary bash scripts/run-phase70-frontend-publication-executor-boundary-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^phase70_frontend_publication_executor_boundary_status=ok$"
|
||||
save_as: phase70_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase70_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_status_writes=true$"
|
||||
save_as: status_writes
|
||||
- action: assert_greater
|
||||
actual: "{{ status_writes }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_status=blocked$"
|
||||
save_as: status_blocked
|
||||
- action: assert_greater
|
||||
actual: "{{ status_blocked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_reason=frontend_publication_policy_disabled$"
|
||||
save_as: reason_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ reason_disabled }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_frontend_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_attempts }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^frontend_published=false$"
|
||||
save_as: no_frontend_published
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_published }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^failback_started=false$"
|
||||
save_as: no_failback_started
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_started }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary/phase70-frontend-publication-executor-boundary-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase70-frontend-publication-executor-boundary"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,97 +0,0 @@
|
||||
# Runner-native Phase 97 gate: explicit-policy frontend publication executor
|
||||
# call-site after terminal failback evidence. This proves executor/runtime
|
||||
# handoff only; workload-visible I/O remains a later gate.
|
||||
|
||||
name: frontend-publication-executor-callsite-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_executor_callsite_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite bash scripts/run-phase97-frontend-publication-executor-callsite-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^phase97_frontend_publication_executor_callsite_status=ok$"
|
||||
save_as: phase97_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase97_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^failback_target_runtime_invoked=true$"
|
||||
save_as: runtime_invoked
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_invoked }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=1$"
|
||||
save_as: publication_attempt
|
||||
- action: assert_greater
|
||||
actual: "{{ publication_attempt }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^frontend_published=true$"
|
||||
save_as: frontend_published
|
||||
- action: assert_greater
|
||||
actual: "{{ frontend_published }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^failback_started=false$"
|
||||
save_as: no_failback_started
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_started }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite/phase97-frontend-publication-executor-callsite-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase97-frontend-publication-executor-callsite"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,167 +0,0 @@
|
||||
# Runner-native Phase 71 gate: frontend publication executor live API boundary.
|
||||
|
||||
name: frontend-publication-live-api-boundary-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_live_api_boundary_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary bash scripts/run-phase71-frontend-publication-live-api-boundary-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^phase71_frontend_publication_live_api_boundary_status=ok$"
|
||||
save_as: phase71_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase71_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^executor_status_patch_succeeded=true$"
|
||||
save_as: status_patch
|
||||
- action: assert_greater
|
||||
actual: "{{ status_patch }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_status_writes=true$"
|
||||
save_as: status_writes
|
||||
- action: assert_greater
|
||||
actual: "{{ status_writes }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_status=blocked$"
|
||||
save_as: status_blocked
|
||||
- action: assert_greater
|
||||
actual: "{{ status_blocked }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_reason=frontend_publication_policy_disabled$"
|
||||
save_as: reason_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ reason_disabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_status_mutation_allowed=true$"
|
||||
save_as: status_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ status_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_mutation_allowed=false$"
|
||||
save_as: frontend_mutation_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ frontend_mutation_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_published=false$"
|
||||
save_as: no_frontend_published
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_published }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^failback_started=false$"
|
||||
save_as: no_failback_started
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_started }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^frontend_publication_executor_rbac_status_only=true$"
|
||||
save_as: rbac_status_only
|
||||
- action: assert_greater
|
||||
actual: "{{ rbac_status_only }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^executor_spec_patch_allowed=false$"
|
||||
save_as: spec_patch_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ spec_patch_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^executor_label_patch_allowed=false$"
|
||||
save_as: label_patch_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ label_patch_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^executor_finalizers_endpoint_allowed=false$"
|
||||
save_as: finalizers_denied
|
||||
- action: assert_greater
|
||||
actual: "{{ finalizers_denied }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary/phase71-frontend-publication-live-api-boundary-summary.txt"
|
||||
pattern: "^target_object_integrity_preserved=true$"
|
||||
save_as: integrity_preserved
|
||||
- action: assert_greater
|
||||
actual: "{{ integrity_preserved }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase71-frontend-publication-live-api-boundary"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,72 +0,0 @@
|
||||
# Runner-native Phase 68 gate: ACK eligibility to frontend publication preflight.
|
||||
|
||||
name: frontend-publication-preflight-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_preflight_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight bash scripts/run-phase68-frontend-publication-preflight-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
|
||||
pattern: "^phase68_frontend_publication_preflight_status=ok$"
|
||||
save_as: phase68_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase68_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
|
||||
pattern: "^frontend_publication_decision_schema_locked=true$"
|
||||
save_as: schema_locked
|
||||
- action: assert_greater
|
||||
actual: "{{ schema_locked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
|
||||
pattern: "^frontend_publication_decision=disabled$"
|
||||
save_as: decision_disabled
|
||||
- action: assert_greater
|
||||
actual: "{{ decision_disabled }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
|
||||
pattern: "^frontend_publication_mutation_allowed=false$"
|
||||
save_as: mutation_false
|
||||
- action: assert_greater
|
||||
actual: "{{ mutation_false }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight/phase68-frontend-publication-preflight-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_frontend_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase68-frontend-publication-preflight"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,131 +0,0 @@
|
||||
# Runner-native Phase 72 gate: frontend publication runtime contract.
|
||||
|
||||
name: frontend-publication-runtime-contract-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_runtime_contract_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract bash scripts/run-phase72-frontend-publication-runtime-contract-gate.sh {{ product_root }}"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^phase72_frontend_publication_runtime_contract_status=ok$"
|
||||
save_as: phase72_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase72_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_runtime_contract_schema_locked=true$"
|
||||
save_as: schema_locked
|
||||
- action: assert_greater
|
||||
actual: "{{ schema_locked }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_runtime_endpoint_field=true$"
|
||||
save_as: endpoint_field
|
||||
- action: assert_greater
|
||||
actual: "{{ endpoint_field }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_execution_policy_gate=true$"
|
||||
save_as: policy_gate
|
||||
- action: assert_greater
|
||||
actual: "{{ policy_gate }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_runtime_invoked_only_when_enabled=true$"
|
||||
save_as: runtime_invoked_only_when_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ runtime_invoked_only_when_enabled }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_runtime_failure_no_false_publish=true$"
|
||||
save_as: no_false_publish
|
||||
- action: assert_greater
|
||||
actual: "{{ no_false_publish }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_runtime_invalid_terminal_evidence_no_false_publish=true$"
|
||||
save_as: invalid_terminal_no_false_publish
|
||||
- action: assert_greater
|
||||
actual: "{{ invalid_terminal_no_false_publish }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=1$"
|
||||
save_as: one_frontend_attempt
|
||||
- action: assert_greater
|
||||
actual: "{{ one_frontend_attempt }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^frontend_published=true$"
|
||||
save_as: frontend_published
|
||||
- action: assert_greater
|
||||
actual: "{{ frontend_published }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^failback_started=false$"
|
||||
save_as: failback_not_started
|
||||
- action: assert_greater
|
||||
actual: "{{ failback_not_started }}"
|
||||
threshold: "0"
|
||||
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract/phase72-frontend-publication-runtime-contract-summary.txt"
|
||||
pattern: "^storage_mutation_allowed=false$"
|
||||
save_as: no_storage_mutation
|
||||
- action: assert_greater
|
||||
actual: "{{ no_storage_mutation }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase72-frontend-publication-runtime-contract"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,96 +0,0 @@
|
||||
# Runner-native Phase 69 gate: frontend publication target contract.
|
||||
|
||||
name: frontend-publication-target-contract-chain
|
||||
timeout: 8m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: frontend_publication_target_contract_gate
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 7m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract bash scripts/run-phase69-frontend-publication-target-contract-gate.sh {{ product_root }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^phase69_frontend_publication_target_contract_status=ok$"
|
||||
save_as: phase69_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ phase69_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_target_schema_locked=true$"
|
||||
save_as: schema_locked
|
||||
- action: assert_greater
|
||||
actual: "{{ schema_locked }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_target_owner_creates_target=true$"
|
||||
save_as: creates_target
|
||||
- action: assert_greater
|
||||
actual: "{{ creates_target }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_target_owner_dry_run_no_create=true$"
|
||||
save_as: dry_run_no_create
|
||||
- action: assert_greater
|
||||
actual: "{{ dry_run_no_create }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_target_owner_rejects_enabled_publication=true$"
|
||||
save_as: rejects_enabled
|
||||
- action: assert_greater
|
||||
actual: "{{ rejects_enabled }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_target_owner_rbac_narrow=true$"
|
||||
save_as: rbac_narrow
|
||||
- action: assert_greater
|
||||
actual: "{{ rbac_narrow }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^frontend_publication_attempts=0$"
|
||||
save_as: no_frontend_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_frontend_attempts }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract/phase69-frontend-publication-target-contract-summary.txt"
|
||||
pattern: "^failback_attempts=0$"
|
||||
save_as: no_failback_attempts
|
||||
- action: assert_greater
|
||||
actual: "{{ no_failback_attempts }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase69-frontend-publication-target-contract"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,270 +0,0 @@
|
||||
# Runner-native Phase 21 D3 Helm first-volume chain.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the PM/user Helm path:
|
||||
# generate values.day1.yaml -> helm install -> first PVC ->
|
||||
# writer checksum -> reader checksum -> read-only report -> helm uninstall.
|
||||
#
|
||||
# Lab prerequisite:
|
||||
# helm must be installed on the runner node. k3s labs also need explicit
|
||||
# KUBECONFIG because helm does not auto-load /etc/rancher/k3s/k3s.yaml the
|
||||
# way the k3s-wrapped kubectl command does.
|
||||
|
||||
name: helm-first-volume-chain
|
||||
timeout: 26m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: generate_day1_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/helm-version.txt && cd {{ product_root }} && bash scripts/generate-helm-values-day1.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_HELM_VALUES_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
|
||||
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
|
||||
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
|
||||
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
|
||||
pattern: "^blockNodes:$"
|
||||
save_as: block_nodes_count
|
||||
- action: assert_greater
|
||||
actual: "{{ block_nodes_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
|
||||
pattern: "externalISCSI: true"
|
||||
save_as: external_iscsi_count
|
||||
- action: assert_greater
|
||||
actual: "{{ external_iscsi_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
|
||||
pattern: "enabled: true"
|
||||
save_as: chap_enabled_count
|
||||
- action: assert_greater
|
||||
actual: "{{ chap_enabled_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml --wait --timeout 5m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-blockmaster.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-csi-controller.txt && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/wait-csi-node.txt && helm status {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-status.txt && kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/kube-system-ready.txt && kubectl get sc sw-block-dynamic -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/storageclass.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/helm-status.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/install/storageclass.txt"
|
||||
pattern: "block.csi.seaweedfs.com"
|
||||
save_as: storageclass_provider_count
|
||||
- action: assert_greater
|
||||
actual: "{{ storageclass_provider_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/values/values.day1.yaml"
|
||||
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
|
||||
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
|
||||
|
||||
- name: first_volume_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^install_mode=helm$"
|
||||
save_as: install_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ install_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^helm_release={{ helm_release }}$"
|
||||
save_as: helm_release_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_release_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^image={{ sw_block_image }}$"
|
||||
save_as: image_count
|
||||
- action: assert_greater
|
||||
actual: "{{ image_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^image_digest="
|
||||
save_as: image_digest_count
|
||||
- action: assert_greater
|
||||
actual: "{{ image_digest_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^writer_verified=true$"
|
||||
save_as: writer_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^reader_verified=true$"
|
||||
save_as: reader_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/writer.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: writer_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/reader.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: basic_cleanup_count
|
||||
- action: assert_greater
|
||||
actual: "{{ basic_cleanup_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/index.html"
|
||||
pattern: "<html"
|
||||
save_as: report_html_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_html_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/cluster-evidence.json"
|
||||
pattern: "\"volumes\""
|
||||
save_as: report_cluster_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_cluster_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/timeline.jsonl"
|
||||
pattern: "\"event_id\":\"master-"
|
||||
save_as: report_timeline_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_timeline_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/summary.txt"
|
||||
pattern: "^status=ok"
|
||||
save_as: report_summary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_summary_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "! grep -Eiq '<button[^>]*>(promote|repair|delete|rebuild|cleanup)|data-action=\"(promote|repair|delete|rebuild|cleanup)\"|href=\"[^\"]*/(promote|repair|delete|rebuild|cleanup)' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/basic-app/status/report/index.html"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/kube-system-after-uninstall.txt 2>&1 || true"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-first-volume/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,234 +0,0 @@
|
||||
# Runner-native v0.3 pre-release gate: documented Go CLI Helm values path.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the literal user-facing path:
|
||||
# go build ./cmd/sw-block
|
||||
# -> sw-block ops generate-helm-values
|
||||
# -> helm install
|
||||
# -> first PVC writer/reader
|
||||
# -> read-only report
|
||||
# -> helm uninstall cleanup
|
||||
#
|
||||
# This exists because the older Helm gates used scripts/generate-helm-values-day1.sh
|
||||
# and did not cover the documented Go CLI generator.
|
||||
|
||||
name: helm-first-volume-via-sw-block-cli-chain
|
||||
timeout: 28m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: build_sw_block_cli
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block.version.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block.version.txt"
|
||||
pattern: "sw-block"
|
||||
save_as: sw_block_version_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sw_block_version_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: generate_day1_values_via_cli
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/helm-version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/generate.stdout.txt && ! grep -q '^ dataPort: 3260$' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
|
||||
pattern: "dataPort: 19101"
|
||||
save_as: data_port_19101_count
|
||||
- action: assert_greater
|
||||
actual: "{{ data_port_19101_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
|
||||
pattern: "launcherReplicationAckFlag: false"
|
||||
save_as: compat_ack_false_count
|
||||
- action: assert_greater
|
||||
actual: "{{ compat_ack_false_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/values/values.day1.yaml"
|
||||
|
||||
- name: first_volume_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^writer_verified=true$"
|
||||
save_as: writer_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^reader_verified=true$"
|
||||
save_as: reader_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^status_report=status/report/index.html$"
|
||||
save_as: report_html_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_html_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/first-volume-summary.txt"
|
||||
pattern: "^operator_snapshot=status/report/operator-snapshot.json$"
|
||||
save_as: operator_snapshot_summary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ operator_snapshot_summary_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 1m
|
||||
cmd: |
|
||||
set -e;
|
||||
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app/status/report/dashboard-route;
|
||||
mkdir -p "$out";
|
||||
port=$(python3 - <<'PY'
|
||||
import socket
|
||||
s = socket.socket()
|
||||
s.bind(("127.0.0.1", 0))
|
||||
print(s.getsockname()[1])
|
||||
s.close()
|
||||
PY
|
||||
);
|
||||
echo "$port" > "$out/dashboard.port";
|
||||
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/bin/sw-block ops dashboard --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/basic-app --listen 127.0.0.1:${port} > "$out/dashboard.stdout.txt" 2> "$out/dashboard.stderr.txt" &
|
||||
pid=$!;
|
||||
trap 'kill $pid >/dev/null 2>&1 || true; wait $pid >/dev/null 2>&1 || true' EXIT;
|
||||
for i in $(seq 1 100); do
|
||||
code=$(curl -s -o "$out/operator-snapshot.json" -w '%{http_code}' "http://127.0.0.1:${port}/operator-snapshot.json" || true);
|
||||
if [ "$code" = "200" ] && python3 - "$out/operator-snapshot.json" <<'PY'
|
||||
import json, sys
|
||||
doc = json.load(open(sys.argv[1]))
|
||||
if doc.get("read_only") is not True:
|
||||
raise SystemExit(1)
|
||||
if (doc.get("mutation") or {}).get("mutation_allowed") is not False:
|
||||
raise SystemExit(1)
|
||||
PY
|
||||
then
|
||||
exit 0;
|
||||
fi;
|
||||
sleep 0.2;
|
||||
done;
|
||||
echo "operator-snapshot route failed" >&2;
|
||||
cat "$out/dashboard.stderr.txt" >&2 || true;
|
||||
exit 1
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-cli-first-volume/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,181 +0,0 @@
|
||||
# Runner-native Phase 26 D2 gate: Helm install / upgrade / rollback lifecycle.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the chart handles a narrow release lifecycle smoke:
|
||||
# generate values
|
||||
# -> helm install
|
||||
# -> first PVC writer/reader, keep PVC
|
||||
# -> helm upgrade with the same chart/values
|
||||
# -> verify existing PVC data
|
||||
# -> helm rollback to revision 1
|
||||
# -> verify existing PVC data again
|
||||
# -> helm uninstall and strict cleanup
|
||||
|
||||
name: helm-lifecycle-upgrade-rollback-chain
|
||||
timeout: 32m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/generate.stdout.txt && cd {{ product_root }} && bash scripts/verify-helm-release-hygiene.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/hygiene"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-install.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-history.after-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_keep_pvc
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm-lifecycle"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/first-volume/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_upgrade_and_verify
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm upgrade {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-upgrade.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-history.after-upgrade.txt && bash scripts/verify-basic-app-existing-pvc.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-upgrade/existing-pvc-summary.txt"
|
||||
pattern: "^existing_pvc_status=ok$"
|
||||
save_as: after_upgrade_reader_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ after_upgrade_reader_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/upgrade/helm-history.after-upgrade.txt"
|
||||
pattern: "superseded"
|
||||
save_as: helm_superseded_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_superseded_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_rollback_and_verify
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "helm rollback {{ helm_release }} 1 --namespace {{ helm_namespace }} --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-rollback.txt && helm history {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-history.after-rollback.txt && cd {{ product_root }} && bash scripts/verify-basic-app-existing-pvc.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/after-rollback/existing-pvc-summary.txt"
|
||||
pattern: "^existing_pvc_status=ok$"
|
||||
save_as: after_rollback_reader_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ after_rollback_reader_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/rollback/helm-history.after-rollback.txt"
|
||||
pattern: "deployed"
|
||||
save_as: helm_deployed_after_rollback_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_after_rollback_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-lifecycle/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,172 +0,0 @@
|
||||
# Runner-native Phase 26 D3 gate: multi-volume Day-1 smoke.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the Helm-installed StorageClass can handle a small multi-PVC user
|
||||
# shape and that ops report/dashboard evidence distinguishes each volume.
|
||||
|
||||
name: helm-multi-volume-day1-chain
|
||||
timeout: 34m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase26-d3"
|
||||
sw_block_csi_image: "sw-block-csi:phase26-d3"
|
||||
volume_count: "3"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
|
||||
save_as: local_image_built_count
|
||||
- action: assert_greater
|
||||
actual: "{{ local_image_built_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/generate.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "1"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^multi_volume_status=ok$"
|
||||
save_as: multi_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multi_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^writer_verified_count=3$"
|
||||
save_as: writer_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^reader_verified_count=3$"
|
||||
save_as: reader_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^managed_volume_count=3$"
|
||||
save_as: managed_volume_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ managed_volume_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/multi-volume/status/report/summary.txt"
|
||||
pattern: "^volumes=3$"
|
||||
save_as: report_volume_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ report_volume_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "for i in $(seq 1 60); do out=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null); if [ -z \"$out\" ]; then exit 0; fi; sleep 2; done; echo \"timeout: launcher-rendered deployments still present\" >&2; kubectl -n default get deploy -l app=sw-blockvolume -o wide >&2; exit 1"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/helm-uninstall.txt || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
-303
@@ -1,303 +0,0 @@
|
||||
# Phase 27 D4: multi-volume RF=3 interleaved mounted failover.
|
||||
#
|
||||
# Pass = three RF=3 PVCs are mounted by long-running writer pods on the same
|
||||
# kubelet, two target volumes have their current primaries stopped in one bounded window, the same
|
||||
# writer pod UID verifies old data and writes new data through dm-multipath,
|
||||
# non-target mounted workloads keep working, and cleanup is clean.
|
||||
|
||||
name: helm-multi-volume-rf3-interleaved-failover-chain
|
||||
timeout: 52m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase27-d4"
|
||||
sw_block_csi_image: "sw-block-csi:phase27-d4"
|
||||
volume_count: "3"
|
||||
target_volume_count: "2"
|
||||
replication_factor: "3"
|
||||
app_node: "m02"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --wait=true --timeout=180s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-mounted-writer-$i --ignore-not-found=true --wait=true --timeout=180s; kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=true --timeout=180s; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=true --timeout=180s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preclean/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: preflight
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preflight.txt 2>&1"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/preflight.txt"
|
||||
pattern: "summary status=PASS"
|
||||
save_as: preflight_count
|
||||
- action: assert_greater
|
||||
actual: "{{ preflight_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: host_multipath_prereq
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover; { echo stage2_protocol=iscsi-alua; command -v iscsiadm >/dev/null && echo command_iscsiadm=present; command -v multipath >/dev/null && echo command_multipath=present; command -v sg_rtpg >/dev/null && echo command_sg_rtpg=present; sudo modprobe iscsi_tcp; sudo modprobe dm_multipath; sudo modprobe scsi_dh_alua; test -d /sys/module/iscsi_tcp && echo module_iscsi_tcp=loaded; test -d /sys/module/dm_multipath && echo module_dm_multipath=loaded; test -d /sys/module/scsi_dh_alua && echo module_scsi_dh_alua=loaded; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/multipath-prereq.txt"
|
||||
pattern: "multipath_prereq=pass"
|
||||
save_as: multipath_prereq_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multipath_prereq_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --stage2-multipath > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
|
||||
pattern: "replicationFactor: 3"
|
||||
save_as: rf3_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
|
||||
pattern: "ackProfile: sync-quorum"
|
||||
save_as: sync_quorum_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ sync_quorum_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
|
||||
pattern: "enabled: true"
|
||||
save_as: stage2_enabled_count
|
||||
- action: assert_greater
|
||||
actual: "{{ stage2_enabled_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml"
|
||||
pattern: "launcherReplicationAckFlag: true"
|
||||
save_as: ack_flag_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_flag_in_values }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_interleaved_failover
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 34m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-mounted-failover.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_FAILOVER_MODE: "interleaved"
|
||||
env.SW_BLOCK_MULTI_VOLUME_TARGET_COUNT: "{{ target_volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_APP_NODE: "{{ app_node }}"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^multi_volume_interleaved_failover_status=ok$"
|
||||
save_as: interleaved_failover_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ interleaved_failover_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: interleaved_failover_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^recovered_volume_count=2$"
|
||||
save_as: recovered_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ recovered_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^mounted_workload_checksum_passed_count=2$"
|
||||
save_as: mounted_workload_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ mounted_workload_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^failover_mode=interleaved$"
|
||||
save_as: interleaved_mode_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ interleaved_mode_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^target_volume_count=2$"
|
||||
save_as: target_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ target_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^untouched_volume_stable=true$"
|
||||
save_as: untouched_stable_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ untouched_stable_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^untouched_workload_ok=true$"
|
||||
save_as: untouched_workload_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ untouched_workload_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^pod_recreate_used=false$"
|
||||
save_as: no_pod_recreate
|
||||
- action: assert_greater
|
||||
actual: "{{ no_pod_recreate }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^cross_interference_observed=false$"
|
||||
save_as: no_cross_interference
|
||||
- action: assert_greater
|
||||
actual: "{{ no_cross_interference }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/host/multipath.before.txt"
|
||||
pattern: "hwhandler='1 alua'"
|
||||
save_as: multipath_alua_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multipath_alua_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/host/sg-rtpg.before.txt"
|
||||
pattern: "asymmetric access state"
|
||||
save_as: rtpg_before_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rtpg_before_count }}"
|
||||
threshold: "2"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 2m
|
||||
cmd: "for i in 1 2; do D=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/failover/volume-$i; S=$D/summary.txt; P=$D/stale-primary-probe.log; B=$D/rtpg-before-states.txt; A=$D/rtpg-after-states.txt; grep -q '^interleaved_fault=true$' \"$S\"; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^pod_recreate_used=false$' \"$S\"; grep -q '^data_check_after_failover=mounted_workload_checksum_passed$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^stale_primary_probe=direct_read$' \"$S\"; grep -q '^old_primary_stale_io_success_count=0$' \"$S\"; test -s \"$P\"; grep -q '^stale_primary_probe=direct_read$' \"$P\"; grep -q '^old_primary_stale_io_success_count=0$' \"$P\"; test -s \"$B\"; test -s \"$A\"; grep -q '^rtpg_before_old_primary_aas=0x00$' \"$S\"; grep -q '^rtpg_after_promoted_aas=0x00$' \"$S\"; grep -q '^rtpg_transition_verified=true$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done; grep -q '^non_target_workload_ok$' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/recovery/failover/untouched-volume-3.log"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --force --grace-period=0 --wait=false; for i in 1 2 3; do kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=false; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=false; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "for _ in $(seq 1 60); do if ! sudo -n iscsiadm -m session 2>/dev/null | grep -q io.seaweedfs; then break; fi; sudo -n iscsiadm -m session 2>/dev/null | awk '/io.seaweedfs/ {print $3, $4}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" --logout || true; done; sleep 2; done; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-interleaved-failover/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,268 +0,0 @@
|
||||
# Phase 27 D3: multi-volume RF=3 mounted transparent failover.
|
||||
#
|
||||
# Pass = three RF=3 PVCs are mounted by long-running writer pods on the same
|
||||
# kubelet, each target volume's current primary is stopped in turn, the same
|
||||
# writer pod UID verifies old data and writes new data through dm-multipath,
|
||||
# non-target mounted workloads keep working, and cleanup is clean.
|
||||
|
||||
name: helm-multi-volume-rf3-mounted-failover-chain
|
||||
timeout: 52m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase27-d3"
|
||||
sw_block_csi_image: "sw-block-csi:phase27-d3"
|
||||
volume_count: "3"
|
||||
replication_factor: "3"
|
||||
app_node: "m02"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --wait=true --timeout=180s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-mounted-writer-$i --ignore-not-found=true --wait=true --timeout=180s; kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=true --timeout=180s; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=true --timeout=180s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preclean/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: preflight
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && bash scripts/preflight-k8s-alpha.sh --local-k3s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preflight.txt 2>&1"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/preflight.txt"
|
||||
pattern: "summary status=PASS"
|
||||
save_as: preflight_count
|
||||
- action: assert_greater
|
||||
actual: "{{ preflight_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: host_multipath_prereq
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "set -e; B=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover; { echo stage2_protocol=iscsi-alua; command -v iscsiadm >/dev/null && echo command_iscsiadm=present; command -v multipath >/dev/null && echo command_multipath=present; command -v sg_rtpg >/dev/null && echo command_sg_rtpg=present; sudo modprobe iscsi_tcp; sudo modprobe dm_multipath; sudo modprobe scsi_dh_alua; test -d /sys/module/iscsi_tcp && echo module_iscsi_tcp=loaded; test -d /sys/module/dm_multipath && echo module_dm_multipath=loaded; test -d /sys/module/scsi_dh_alua && echo module_scsi_dh_alua=loaded; sudo multipath -t > \"$B/multipath-prereq.config.txt\" 2>&1; echo multipath_prereq=pass; } > \"$B/multipath-prereq.txt\" 2>&1"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/multipath-prereq.txt"
|
||||
pattern: "multipath_prereq=pass"
|
||||
save_as: multipath_prereq_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multipath_prereq_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --stage2-multipath > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
|
||||
pattern: "replicationFactor: 3"
|
||||
save_as: rf3_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
|
||||
pattern: "ackProfile: sync-quorum"
|
||||
save_as: sync_quorum_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ sync_quorum_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
|
||||
pattern: "enabled: true"
|
||||
save_as: stage2_enabled_count
|
||||
- action: assert_greater
|
||||
actual: "{{ stage2_enabled_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml"
|
||||
pattern: "launcherReplicationAckFlag: true"
|
||||
save_as: ack_flag_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_flag_in_values }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_mounted_failover
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 34m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-mounted-failover.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_APP_NODE: "{{ app_node }}"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^multi_volume_mounted_failover_status=ok$"
|
||||
save_as: mounted_failover_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ mounted_failover_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: mounted_failover_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^recovered_volume_count=3$"
|
||||
save_as: recovered_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ recovered_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^mounted_workload_checksum_passed_count=3$"
|
||||
save_as: mounted_workload_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ mounted_workload_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^pod_recreate_used=false$"
|
||||
save_as: no_pod_recreate
|
||||
- action: assert_greater
|
||||
actual: "{{ no_pod_recreate }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/multi-volume-mounted-failover-summary.txt"
|
||||
pattern: "^cross_interference_observed=false$"
|
||||
save_as: no_cross_interference
|
||||
- action: assert_greater
|
||||
actual: "{{ no_cross_interference }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/host/multipath.before.txt"
|
||||
pattern: "hwhandler='1 alua'"
|
||||
save_as: multipath_alua_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multipath_alua_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/host/sg-rtpg.before.txt"
|
||||
pattern: "asymmetric access state"
|
||||
save_as: rtpg_before_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rtpg_before_count }}"
|
||||
threshold: "2"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 2m
|
||||
cmd: "for i in 1 2 3; do D=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/recovery/failover/volume-$i; S=$D/summary.txt; P=$D/stale-primary-probe.log; B=$D/rtpg-before-states.txt; A=$D/rtpg-after-states.txt; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^pod_recreate_used=false$' \"$S\"; grep -q '^data_check_after_failover=mounted_workload_checksum_passed$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^stale_primary_probe=direct_read$' \"$S\"; grep -q '^old_primary_stale_io_success_count=0$' \"$S\"; test -s \"$P\"; grep -q '^stale_primary_probe=direct_read$' \"$P\"; grep -q '^old_primary_stale_io_success_count=0$' \"$P\"; test -s \"$B\"; test -s \"$A\"; grep -q '^rtpg_before_old_primary_aas=0x00$' \"$S\"; grep -q '^rtpg_after_promoted_aas=0x00$' \"$S\"; grep -q '^rtpg_transition_verified=true$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume-mounted-failover --ignore-not-found=true --force --grace-period=0 --wait=false; for i in 1 2 3; do kubectl -n default delete pvc sw-block-multi-mounted-pvc-$i --ignore-not-found=true --wait=false; done; kubectl delete storageclass sw-block-multi-mounted sw-block-dynamic --ignore-not-found=true --wait=false; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=false"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "for _ in $(seq 1 60); do if ! sudo -n iscsiadm -m session 2>/dev/null | grep -q io.seaweedfs; then break; fi; sudo -n iscsiadm -m session 2>/dev/null | awk '/io.seaweedfs/ {print $3, $4}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" --logout || true; done; sleep 2; done; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n multipath -F >/dev/null 2>&1 || true"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_MULTIPATH_FLUSH: "1"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-mounted-failover/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,205 +0,0 @@
|
||||
# Phase 27 D1 spike: multi-volume Day-1 at RF=3, no fault injection.
|
||||
#
|
||||
# Goal:
|
||||
# First signal on whether the v0.3.1 placement / port-assignment scheme can
|
||||
# actually host N concurrent RF=3 volumes (N=3 PVCs => 9 blockvolume pods
|
||||
# total, 3 per node on a 3-node lab). This is the lowest-bar readiness gate
|
||||
# for the multi-volume HA independence track; it does NOT inject faults.
|
||||
#
|
||||
# Pass = 3 PVCs bind, 3 writers verify, 3 readers verify, report shows
|
||||
# replication_factor=3 and three ManagedVolumes, cleanup is clean.
|
||||
# Fail = first signal that the port / placement scheme needs more work before
|
||||
# multi-volume HA gates can even be authored.
|
||||
|
||||
name: helm-multi-volume-rf3-readiness-chain
|
||||
timeout: 34m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase27-rf3"
|
||||
sw_block_csi_image: "sw-block-csi:phase27-rf3"
|
||||
volume_count: "3"
|
||||
replication_factor: "3"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3 && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
|
||||
save_as: local_image_built_count
|
||||
- action: assert_greater
|
||||
actual: "{{ local_image_built_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/generate.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml"
|
||||
pattern: "replicationFactor: 3"
|
||||
save_as: rf3_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_values }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 18m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "1"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^multi_volume_status=ok$"
|
||||
save_as: multi_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multi_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_rf3_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^replication_factor=3$"
|
||||
save_as: rf3_in_summary
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_summary }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^writer_verified_count=3$"
|
||||
save_as: writer_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^reader_verified_count=3$"
|
||||
save_as: reader_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^managed_volume_count=3$"
|
||||
save_as: managed_volume_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ managed_volume_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/status/report/summary.txt"
|
||||
pattern: "^volumes=3$"
|
||||
save_as: report_volume_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ report_volume_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/multi-volume/status/report/summary.txt"
|
||||
pattern: "rf=3"
|
||||
save_as: rf3_in_report
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_report }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "for i in $(seq 1 60); do out=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null); if [ -z \"$out\" ]; then exit 0; fi; sleep 2; done; echo \"timeout: launcher-rendered deployments still present\" >&2; kubectl -n default get deploy -l app=sw-blockvolume -o wide >&2; exit 1"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/helm-uninstall.txt || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,174 +0,0 @@
|
||||
# Phase 27 D2: multi-volume RF=3 CSI reattach recovery.
|
||||
#
|
||||
# Pass = three RF=3 PVCs are ready, then each volume's current primary is
|
||||
# stopped in turn; only the target volume changes primary, a replacement
|
||||
# reader verifies persisted data through CSI/pod recreate, and cleanup is
|
||||
# clean.
|
||||
|
||||
name: helm-multi-volume-rf3-reattach-recovery-chain
|
||||
timeout: 48m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase27-d2"
|
||||
sw_block_csi_image: "sw-block-csi:phase27-d2"
|
||||
volume_count: "3"
|
||||
replication_factor: "3"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
|
||||
pattern: "replicationFactor: 3"
|
||||
save_as: rf3_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
|
||||
pattern: "ackProfile: sync-quorum"
|
||||
save_as: sync_quorum_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ sync_quorum_in_values }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml"
|
||||
pattern: "launcherReplicationAckFlag: true"
|
||||
save_as: ack_flag_in_values
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_flag_in_values }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_reattach_recovery
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 26m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-reattach-recovery.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
|
||||
pattern: "^multi_volume_reattach_status=ok$"
|
||||
save_as: recovery_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ recovery_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: recovery_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
|
||||
pattern: "^recovered_volume_count=3$"
|
||||
save_as: recovered_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ recovered_count_ok }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/multi-volume-reattach-summary.txt"
|
||||
pattern: "^cross_interference_observed=false$"
|
||||
save_as: no_cross_interference
|
||||
- action: assert_greater
|
||||
actual: "{{ no_cross_interference }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 2m
|
||||
cmd: "for i in 1 2 3; do S=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/recovery/failover/volume-$i/summary.txt; grep -q '^failover_status=promoted$' \"$S\"; grep -q '^target_recovered=true$' \"$S\"; grep -q '^reader_verified=true$' \"$S\"; grep -q '^pod_recreate_used=true$' \"$S\"; grep -q '^post_failure_primary_count=1$' \"$S\"; grep -q '^cross_interference_observed=false$' \"$S\"; done"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-reattach/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,212 +0,0 @@
|
||||
# Phase 31 D5: multi-volume RF3 restart smoke.
|
||||
#
|
||||
# Goal:
|
||||
# Prove a Helm-installed RF=3 sync-quorum stack with hostPath restart
|
||||
# persistence can restart k3s/product and keep three independent PVCs readable
|
||||
# without mixing per-volume authority or publish targets.
|
||||
#
|
||||
# Product boundary:
|
||||
# Three PVCs, RF=3, sync-quorum, no injected primary failure. This is restart
|
||||
# persistence smoke, not rebuild/failback or physical-host-loss recovery.
|
||||
|
||||
name: helm-multi-volume-rf3-restart-smoke-chain
|
||||
timeout: 42m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase31-d5"
|
||||
sw_block_csi_image: "sw-block-csi:phase31-d5"
|
||||
volume_count: "3"
|
||||
replication_factor: "3"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s; done; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/generate.stdout.txt"
|
||||
pattern: "^restart_persistence_mode=hostpath$"
|
||||
save_as: restart_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml"
|
||||
pattern: "replicationFactor: 3"
|
||||
save_as: rf3_values_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rf3_values_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml"
|
||||
pattern: "ackProfile: sync-quorum"
|
||||
save_as: sync_quorum_values_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sync_quorum_values_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && grep -q -- '--launcher-replication-ack=sync-quorum' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: multi_volume_before_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 16m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_CLEANUP: "0"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^writer_verified_count=3$"
|
||||
save_as: writer_before_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_before_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/multi-volume-summary.txt"
|
||||
pattern: "^reader_verified_count=3$"
|
||||
save_as: reader_before_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_before_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/status/cluster-evidence.json"
|
||||
pattern: "\"volumes\""
|
||||
save_as: cluster_before_count
|
||||
- action: assert_greater
|
||||
actual: "{{ cluster_before_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: restart_k3s_and_compare_volumes
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "set -e; cp /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/status/cluster-evidence.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-before-restart.json; date -u > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/restart-start.txt; sudo -n systemctl restart k3s; for i in $(seq 1 180); do if sudo -n k3s kubectl get nodes >/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/nodes.wait.txt 2>&1; then break; fi; sleep 2; done; sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml; kubectl wait --for=condition=Ready node/m02 --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-node-ready.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-blockmaster.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-csi-controller.txt; kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-csi-node.txt; for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do kubectl -n default rollout status \"$d\" --timeout=300s; done > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/wait-blockvolumes.txt; port=$(/usr/bin/python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n {{ helm_namespace }} port-forward deploy/sw-blockmaster ${port}:9333 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/blockmaster-port-forward.log 2>&1 & pf=$!; trap 'kill $pf >/dev/null 2>&1 || true; wait $pf >/dev/null 2>&1 || true' EXIT; for i in $(seq 1 60); do if (echo >/dev/tcp/127.0.0.1/$port) >/dev/null 2>&1; then break; fi; sleep 1; done; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops cluster --master-api 127.0.0.1:${port} --timeout 30s -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-after-restart.json; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/bin/sw-block ops report --master-api 127.0.0.1:${port} --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/report > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/report.stdout.txt; python3 - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-before-restart.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/cluster-after-restart.json /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt <<'PY'\nimport json, sys\nbefore=json.load(open(sys.argv[1])); after=json.load(open(sys.argv[2])); out=sys.argv[3]\ndef by_id(doc):\n return {v.get('volume_id'): v for v in doc.get('volumes', []) if v.get('volume_id')}\nb=by_id(before); a=by_id(after)\nstatus='ok'; reasons=[]\nif len(b)!=3 or len(a)!=3:\n status='failed'; reasons.append(f'volume_count_before_{len(b)}_after_{len(a)}')\nfor vid, bv in b.items():\n av=a.get(vid)\n if not av:\n status='failed'; reasons.append(f'missing_{vid}'); continue\n for field in ('primary_replica','publish_target'):\n if bv.get(field) != av.get(field):\n status='failed'; reasons.append(f'{vid}_{field}_changed')\n be=int(bv.get('epoch') or bv.get('authority_epoch') or 0)\n ae=int(av.get('epoch') or av.get('authority_epoch') or 0)\n if ae < be:\n status='failed'; reasons.append(f'{vid}_epoch_rollback')\npublish=[v.get('publish_target') for v in a.values() if v.get('publish_target')]\nduplicate=len(publish)!=len(set(publish))\nif duplicate:\n status='failed'; reasons.append('duplicate_publish_target_for_distinct_volume')\nwith open(out,'w',encoding='utf-8') as f:\n f.write(f'multi_volume_restart_status={status}\\n')\n f.write(f'before_volume_count={len(b)}\\n')\n f.write(f'after_volume_count={len(a)}\\n')\n f.write('reader_verified_count=pending\\n')\n f.write(f'managed_volume_count={sum(1 for line in open(sys.argv[3].replace(\"multi-volume-restart-summary.txt\",\"report/summary.txt\"), encoding=\"utf-8\") if line.startswith(\"managed_volume=\"))}\\n')\n f.write(f'duplicate_publish_target_for_distinct_volume={str(duplicate).lower()}\\n')\n f.write(f'cross_volume_authority_mixup={\"true\" if status != \"ok\" else \"false\"}\\n')\n f.write(f'reason={\",\".join(reasons) if reasons else \"all_volumes_persisted\"}\\n')\nif status!='ok':\n raise SystemExit(','.join(reasons))\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
|
||||
pattern: "^multi_volume_restart_status=ok$"
|
||||
save_as: restart_status_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_status_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
|
||||
pattern: "^managed_volume_count=3$"
|
||||
save_as: managed_volume_after_count
|
||||
- action: assert_greater
|
||||
actual: "{{ managed_volume_after_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: readers_after_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 14m
|
||||
cmd: "set -e; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-reader-$i --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/multi-volume/manifests/reader-$i.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/apply-reader-$i.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-multi-reader-$i --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/wait-reader-$i.log; kubectl -n default logs sw-block-multi-reader-$i > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-$i.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-$i.log; done; count=$(grep -l '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/after-restart/reader-*.log | wc -l | tr -d ' '); echo \"reader_verified_count=$count\" >> /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt; test \"$count\" = \"3\""
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/restart/multi-volume-restart-summary.txt"
|
||||
pattern: "^reader_verified_count=3$"
|
||||
save_as: reader_count_ok
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_count_ok }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 9m
|
||||
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/diagnostics; for n in $(seq 1 90); do kubectl get nodes >/dev/null 2>&1 && break; sleep 2; done; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=180s || true; for i in 1 2 3; do kubectl -n default delete pod sw-block-multi-writer-$i sw-block-multi-reader-$i sw-block-multi-reattach-reader-$i --ignore-not-found=true --wait=true --timeout=120s || true; kubectl -n default delete pvc sw-block-multi-pvc-$i --ignore-not-found=true --wait=true --timeout=120s || true; done; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=true --timeout=180s || true; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s || true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-restart-smoke; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-rf3-restart-smoke"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-multi-volume-rf3-restart"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,112 +0,0 @@
|
||||
# Runner-native Phase 26 D1 gate: Helm release hygiene.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the chart is a repeatable release artifact before running heavier
|
||||
# lifecycle gates:
|
||||
# build sw-block CLI
|
||||
# -> generate Day-1 values from the live cluster
|
||||
# -> helm lint
|
||||
# -> helm template
|
||||
# -> helm package
|
||||
# -> assert rendered release-critical resources exist
|
||||
|
||||
name: helm-release-hygiene-chain
|
||||
timeout: 12m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
|
||||
- name: build_sw_block_cli
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block.version.txt"
|
||||
|
||||
- name: generate_day1_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/helm-version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/generate.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_release_hygiene
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/verify-helm-release-hygiene.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/values/values.day1.yaml"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
|
||||
- name: helm_release_hygiene_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
|
||||
pattern: "^helm_hygiene_status=ok$"
|
||||
save_as: hygiene_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ hygiene_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
|
||||
pattern: "^rendered_storageclass_count=1$"
|
||||
save_as: rendered_sc_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rendered_sc_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
|
||||
pattern: "^rendered_csidriver_count=1$"
|
||||
save_as: rendered_csidriver_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rendered_csidriver_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-release-hygiene-summary.txt"
|
||||
pattern: "^rendered_master_count=1$"
|
||||
save_as: rendered_master_count
|
||||
- action: assert_greater
|
||||
actual: "{{ rendered_master_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 1m
|
||||
cmd: "ls /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/*.tgz >/dev/null && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-template.yaml && test -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-release-hygiene/hygiene/helm-lint.txt"
|
||||
@@ -1,481 +0,0 @@
|
||||
# Phase 31 D4: RF3 promotion state survives Kubernetes restart.
|
||||
#
|
||||
# Goal:
|
||||
# Prove that after an RF=3 sync-quorum volume promotes a surviving replica,
|
||||
# a k3s/product restart does not resurrect the old primary or roll authority
|
||||
# back to the pre-promotion target.
|
||||
#
|
||||
# Product boundary:
|
||||
# One PVC, RF=3, sync-quorum, CSI/pod recreate recovery after failover, then
|
||||
# CSI/pod recreate after k3s restart. This is not backup/restore, returned
|
||||
# replica rebuild/failback, or physical host loss.
|
||||
|
||||
name: helm-rf3-promotion-restart-persistence-chain
|
||||
timeout: 44m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase31-d4"
|
||||
sw_block_csi_image: "sw-block-csi:phase31-d4"
|
||||
volume_count: "1"
|
||||
replication_factor: "3"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod sw-block-multi-writer-1 sw-block-multi-reader-1 sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete deploy -l app=sw-blockvolume --ignore-not-found=true --wait=true --timeout=180s; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup; leftover=$(kubectl -n default get deploy -l app=sw-blockvolume -o name 2>/dev/null || true); if [ -n \"$leftover\" ]; then echo \"$leftover\" > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/pre-clean-blockvolume-leftover.txt; exit 3; fi"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --replication-factor {{ replication_factor }} --ack-profile sync-quorum --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/generate.stdout.txt && python3 - <<'PY'\nfrom pathlib import Path\np=Path('/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml')\ns=p.read_text()\ns=s.replace('launcherReplicationAckFlag: false','launcherReplicationAckFlag: true')\np.write_text(s)\nPY"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/generate.stdout.txt"
|
||||
pattern: "^restart_persistence_mode=hostpath$"
|
||||
save_as: restart_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml"
|
||||
pattern: "ackProfile: sync-quorum"
|
||||
save_as: sync_quorum_values_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sync_quorum_values_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml"
|
||||
pattern: "launcherReplicationAckFlag: true"
|
||||
save_as: ack_flag_values_count
|
||||
- action: assert_greater
|
||||
actual: "{{ ack_flag_values_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && grep -q -- '--launcher-replication-ack=sync-quorum' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: promote_and_reattach
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 22m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-multi-volume-reattach-recovery.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery"
|
||||
env.SW_BLOCK_MULTI_VOLUME_COUNT: "{{ volume_count }}"
|
||||
env.SW_BLOCK_MULTI_VOLUME_RF: "{{ replication_factor }}"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/multi-volume-reattach-summary.txt"
|
||||
pattern: "^multi_volume_reattach_status=ok$"
|
||||
save_as: recovery_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ recovery_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/summary.txt"
|
||||
pattern: "^failover_status=promoted$"
|
||||
save_as: promoted_count
|
||||
- action: assert_greater
|
||||
actual: "{{ promoted_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: restart_k3s_and_verify_authority
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 9m
|
||||
cmd: |
|
||||
set -e
|
||||
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart
|
||||
date -u > "$out/restart-start.txt"
|
||||
sudo -n systemctl restart k3s
|
||||
for i in $(seq 1 180); do
|
||||
if sudo -n k3s kubectl get nodes > "$out/nodes.wait.txt" 2>&1; then break; fi
|
||||
sleep 2
|
||||
done
|
||||
sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml
|
||||
kubectl wait --for=condition=Ready node/m02 --timeout=300s > "$out/wait-node-ready.txt"
|
||||
kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > "$out/wait-blockmaster.txt"
|
||||
kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > "$out/wait-csi-controller.txt"
|
||||
kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > "$out/wait-csi-node.txt"
|
||||
for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do
|
||||
kubectl -n default rollout status "$d" --timeout=300s
|
||||
done > "$out/wait-blockvolumes.txt"
|
||||
port=$(/usr/bin/python3 - <<'PY'
|
||||
import socket
|
||||
s=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()
|
||||
PY
|
||||
)
|
||||
pf=''
|
||||
cluster_ready=false
|
||||
for attempt in $(seq 1 10); do
|
||||
pod=$(kubectl -n {{ helm_namespace }} get pods -l app.kubernetes.io/component=blockmaster --field-selector=status.phase=Running -o name 2>/dev/null | head -1 || true)
|
||||
if [ -z "$pod" ]; then
|
||||
pod=$(kubectl -n {{ helm_namespace }} get pods -o name 2>/dev/null | grep '/sw-blockmaster-' | head -1 || true)
|
||||
fi
|
||||
if [ -z "$pod" ]; then sleep 2; continue; fi
|
||||
echo "$pod" > "$out/blockmaster-port-forward-pod.txt"
|
||||
kubectl -n {{ helm_namespace }} wait --for=condition=Ready "$pod" --timeout=30s >> "$out/wait-blockmaster-pod.txt" 2>&1 || { sleep 2; continue; }
|
||||
kubectl -n {{ helm_namespace }} port-forward "$pod" "${port}:9333" > "$out/blockmaster-port-forward.log" 2>&1 &
|
||||
pf=$!
|
||||
sleep 2
|
||||
if /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/bin/sw-block ops cluster --master-api "127.0.0.1:${port}" --timeout 30s -o json > "$out/cluster-after-restart.json.tmp" 2> "$out/cluster-after-restart.stderr.txt"; then
|
||||
mv "$out/cluster-after-restart.json.tmp" "$out/cluster-after-restart.json"
|
||||
cluster_ready=true
|
||||
break
|
||||
fi
|
||||
kill "$pf" >/dev/null 2>&1 || true
|
||||
wait "$pf" >/dev/null 2>&1 || true
|
||||
sleep 2
|
||||
done
|
||||
test "$cluster_ready" = true
|
||||
trap 'kill "$pf" >/dev/null 2>&1 || true; wait "$pf" >/dev/null 2>&1 || true' EXIT
|
||||
python3 - /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/summary.txt /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/failover/volume-1/after.json "$out/cluster-after-restart.json" "$out/restart-promotion-summary.txt" <<'PY'
|
||||
import json, sys
|
||||
summary_path, before_json, after_json, out_path = sys.argv[1:]
|
||||
summary = {}
|
||||
for line in open(summary_path, encoding='utf-8'):
|
||||
if '=' in line:
|
||||
k, v = line.strip().split('=', 1)
|
||||
summary[k] = v
|
||||
volume_id = summary['volume_id']
|
||||
promoted = summary['promoted_replica']
|
||||
target = summary['after_publish_target']
|
||||
before = json.load(open(before_json))
|
||||
after = json.load(open(after_json))
|
||||
def find(doc):
|
||||
for v in doc.get('volumes', []):
|
||||
if v.get('volume_id') == volume_id:
|
||||
return v
|
||||
raise SystemExit('volume_not_found')
|
||||
b = find(before)
|
||||
a = find(after)
|
||||
before_epoch = int(b.get('epoch') or b.get('authority_epoch') or 0)
|
||||
after_epoch = int(a.get('epoch') or a.get('authority_epoch') or 0)
|
||||
primary_count = sum(1 for r in a.get('replicas', []) if r.get('role') == 'primary')
|
||||
status = 'ok'
|
||||
reasons = []
|
||||
if a.get('primary_replica') != promoted:
|
||||
status = 'failed'; reasons.append('primary_rolled_back')
|
||||
if a.get('publish_target') != target:
|
||||
status = 'failed'; reasons.append('publish_target_changed')
|
||||
if after_epoch < before_epoch:
|
||||
status = 'failed'; reasons.append('epoch_rolled_back')
|
||||
if primary_count != 1:
|
||||
status = 'failed'; reasons.append('primary_count_not_one')
|
||||
with open(out_path, 'w', encoding='utf-8') as f:
|
||||
f.write(f'restart_promotion_status={status}\n')
|
||||
f.write(f'volume_id={volume_id}\n')
|
||||
f.write(f'before_restart_primary={promoted}\n')
|
||||
f.write(f'after_restart_primary={a.get("primary_replica", "")}\n')
|
||||
f.write(f'before_restart_publish_target={target}\n')
|
||||
f.write(f'after_restart_publish_target={a.get("publish_target", "")}\n')
|
||||
f.write(f'before_restart_epoch={before_epoch}\n')
|
||||
f.write(f'after_restart_epoch={after_epoch}\n')
|
||||
f.write(f'post_restart_primary_count={primary_count}\n')
|
||||
f.write(f'reason={",".join(reasons) if reasons else "authority_persisted"}\n')
|
||||
if status != 'ok':
|
||||
raise SystemExit(','.join(reasons))
|
||||
PY
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart/restart-promotion-summary.txt"
|
||||
pattern: "^restart_promotion_status=ok$"
|
||||
save_as: restart_promotion_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_promotion_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/restart/restart-promotion-summary.txt"
|
||||
pattern: "^reason=authority_persisted$"
|
||||
save_as: authority_persisted_count
|
||||
- action: assert_greater
|
||||
actual: "{{ authority_persisted_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: reader_after_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "set -e; kubectl -n default delete pod sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/recovery/manifests/sw-block-multi-reattach-reader-1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/apply-reader-after-restart.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-multi-reattach-reader-1 --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/wait-reader-after-restart.log; kubectl -n default logs sw-block-multi-reattach-reader-1 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/reader-after-restart.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_after_restart_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_after_restart_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: post_restart_degraded_status_boundary
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: |
|
||||
set -e
|
||||
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence
|
||||
mkdir -p "$out"
|
||||
python3 - "$out" <<'PY'
|
||||
import json
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
out = Path(sys.argv[1])
|
||||
root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart")
|
||||
sw_block = root / "bin/sw-block"
|
||||
restart_summary = root / "restart/restart-promotion-summary.txt"
|
||||
volume_id = ""
|
||||
for line in restart_summary.read_text(encoding="utf-8").splitlines():
|
||||
if line.startswith("volume_id="):
|
||||
volume_id = line.split("=", 1)[1]
|
||||
break
|
||||
if not volume_id:
|
||||
raise SystemExit("volume_id unavailable")
|
||||
|
||||
def run(*args, **kwargs):
|
||||
return subprocess.run(args, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
|
||||
|
||||
pods = run(
|
||||
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
|
||||
"-l", "app.kubernetes.io/component=blockmaster",
|
||||
"--field-selector=status.phase=Running",
|
||||
"-o", "json",
|
||||
check=True,
|
||||
)
|
||||
pod_items = json.loads(pods.stdout).get("items") or []
|
||||
if not pod_items:
|
||||
pods = run(
|
||||
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
|
||||
"--field-selector=status.phase=Running",
|
||||
"-o", "json",
|
||||
check=True,
|
||||
)
|
||||
pod_items = [
|
||||
item for item in json.loads(pods.stdout).get("items") or []
|
||||
if item.get("metadata", {}).get("name", "").startswith("sw-blockmaster-")
|
||||
]
|
||||
ready_pod = ""
|
||||
for item in pod_items:
|
||||
conditions = {c.get("type"): c.get("status") for c in (item.get("status") or {}).get("conditions") or []}
|
||||
if conditions.get("Ready") == "True":
|
||||
ready_pod = item["metadata"]["name"]
|
||||
break
|
||||
if not ready_pod:
|
||||
raise SystemExit("no Ready blockmaster pod")
|
||||
(out / "blockmaster-pod.txt").write_text(ready_pod + "\n", encoding="utf-8")
|
||||
|
||||
sock = socket.socket()
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
port = sock.getsockname()[1]
|
||||
sock.close()
|
||||
(out / "port.txt").write_text(str(port) + "\n", encoding="utf-8")
|
||||
|
||||
pf_log = open(out / "blockmaster-port-forward.log", "w", encoding="utf-8")
|
||||
pf = subprocess.Popen(
|
||||
["kubectl", "-n", "{{ helm_namespace }}", "port-forward", f"pod/{ready_pod}", f"{port}:9333"],
|
||||
stdout=pf_log,
|
||||
stderr=subprocess.STDOUT,
|
||||
text=True,
|
||||
)
|
||||
|
||||
def port_ready():
|
||||
try:
|
||||
with socket.create_connection(("127.0.0.1", port), timeout=1):
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
try:
|
||||
deadline = time.time() + 30
|
||||
while time.time() < deadline:
|
||||
if pf.poll() is not None:
|
||||
raise SystemExit("port-forward exited early")
|
||||
if port_ready():
|
||||
break
|
||||
time.sleep(0.5)
|
||||
else:
|
||||
raise SystemExit("port-forward did not become ready")
|
||||
|
||||
consecutive = 0
|
||||
max_consecutive = 0
|
||||
observations = []
|
||||
final_reason = ""
|
||||
for attempt in range(1, 31):
|
||||
report_dir = out / f"report-{attempt:02d}"
|
||||
evidence_dir = out / f"evidence-{attempt:02d}"
|
||||
cmd = [
|
||||
str(sw_block), "ops", "report",
|
||||
"--namespace", "default",
|
||||
"--master", f"127.0.0.1:{port}",
|
||||
"--out", str(report_dir),
|
||||
"--evidence-out", str(evidence_dir),
|
||||
"--timeout", "30s",
|
||||
]
|
||||
proc = run(*cmd)
|
||||
(out / f"report-{attempt:02d}.stdout.txt").write_text(proc.stdout, encoding="utf-8")
|
||||
(out / f"report-{attempt:02d}.stderr.txt").write_text(proc.stderr, encoding="utf-8")
|
||||
if proc.returncode != 0:
|
||||
observations.append(f"{attempt}: report_failed rc={proc.returncode}")
|
||||
consecutive = 0
|
||||
time.sleep(3)
|
||||
continue
|
||||
snap_path = report_dir / "operator-snapshot.json"
|
||||
snap = json.loads(snap_path.read_text(encoding="utf-8"))
|
||||
vols = snap.get("volumes") or []
|
||||
target = next((v for v in vols if (v.get("status") or {}).get("volume_id") == volume_id), None)
|
||||
if target is None:
|
||||
observations.append(f"{attempt}: volume_missing")
|
||||
consecutive = 0
|
||||
time.sleep(3)
|
||||
continue
|
||||
status = target.get("status") or {}
|
||||
conditions = status.get("conditions") or []
|
||||
ready_true = any(c.get("type") == "Ready" and c.get("status") == "True" for c in conditions)
|
||||
blocked_true = any(c.get("type") == "Blocked" and c.get("status") == "True" for c in conditions)
|
||||
status_value = status.get("status", "")
|
||||
reason = status.get("reason_code", "")
|
||||
final_reason = reason
|
||||
stable_degraded_unknown = status_value == "unknown" and reason == "status_endpoint_unreachable"
|
||||
stable_ready = status_value == "ready" and ready_true
|
||||
if (stable_ready or stable_degraded_unknown) and not blocked_true:
|
||||
consecutive += 1
|
||||
else:
|
||||
consecutive = 0
|
||||
max_consecutive = max(max_consecutive, consecutive)
|
||||
observations.append(
|
||||
f"{attempt}: status={status_value} reason={reason} ready_true={str(ready_true).lower()} "
|
||||
f"blocked_true={str(blocked_true).lower()} consecutive_stable={consecutive}"
|
||||
)
|
||||
if consecutive >= 3:
|
||||
break
|
||||
time.sleep(3)
|
||||
|
||||
(out / "observations.txt").write_text("\n".join(observations) + "\n", encoding="utf-8")
|
||||
status = "ok" if consecutive >= 3 else "failed"
|
||||
with open(out / "convergence-summary.txt", "w", encoding="utf-8") as f:
|
||||
f.write(f"restart_status_boundary={status}\n")
|
||||
f.write(f"volume_id={volume_id}\n")
|
||||
f.write(f"required_consecutive_stable=3\n")
|
||||
f.write(f"max_consecutive_stable={max_consecutive}\n")
|
||||
f.write(f"final_reason={final_reason or 'unknown'}\n")
|
||||
f.write("evidence=observations.txt\n")
|
||||
if status != "ok":
|
||||
raise SystemExit("post-restart status did not reach a stable safe surface")
|
||||
finally:
|
||||
pf.terminate()
|
||||
try:
|
||||
pf.wait(timeout=5)
|
||||
except subprocess.TimeoutExpired:
|
||||
pf.kill()
|
||||
pf.wait(timeout=5)
|
||||
pf_log.close()
|
||||
PY
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence/convergence-summary.txt"
|
||||
pattern: "^restart_status_boundary=ok$"
|
||||
save_as: restart_status_boundary_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_status_boundary_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/after-restart/convergence/convergence-summary.txt"
|
||||
pattern: "^max_consecutive_stable=3$"
|
||||
save_as: restart_consecutive_stable_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_consecutive_stable_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 9m
|
||||
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/diagnostics; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod -l sw-block-test=multi-volume --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod -l sw-block-test=multi-volume-reattach --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pod sw-block-multi-writer-1 sw-block-multi-reader-1 sw-block-multi-reattach-reader-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-multi-pvc-1 --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-multi sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-rf3-promotion-restart; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-rf3-promotion-restart"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-rf3-promotion-restart"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,221 +0,0 @@
|
||||
# Runner-native Phase 21 D3a Helm single-node first-volume chain.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the README-friendly single-node product path. This can run on a
|
||||
# real single-node Linux k3s lab, or on the 3-node lab by selecting one node
|
||||
# and pinning the writer/reader pods to that same node.
|
||||
#
|
||||
# Product boundary:
|
||||
# This is RF=1 / loopback / first-volume evidence. It is not an HA claim.
|
||||
|
||||
name: helm-single-node-first-volume-chain
|
||||
timeout: 22m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
single_node: "m02"
|
||||
sw_block_image: "ghcr.io/seaweedfs/seaweed-block:sha-28a99ce4f644"
|
||||
sw_block_csi_image: "ghcr.io/seaweedfs/seaweed-block-csi:sha-28a99ce4f644"
|
||||
sw_block_ref: "sha-28a99ce4f644" # tested image tag (the artifact under test)
|
||||
sw_block_commit: "28a99ce4f644" # its commit sha
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: generate_single_node_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "helm version --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/helm-version.txt && cd {{ product_root }} && bash scripts/generate-helm-values-day1.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_HELM_VALUES_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
|
||||
env.SW_BLOCK_HELM_TARGET_NODE: "{{ single_node }}"
|
||||
env.SW_BLOCK_HELM_NODE_LIMIT: "1"
|
||||
env.SW_BLOCK_HELM_REPLICATION_FACTOR: "1"
|
||||
env.SW_BLOCK_ACTIVATION_IMAGE_MODE: "published"
|
||||
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
|
||||
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
|
||||
pattern: "externalISCSI: false"
|
||||
save_as: external_iscsi_false_count
|
||||
- action: assert_greater
|
||||
actual: "{{ external_iscsi_false_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
|
||||
pattern: "internalIP: \"127.0.0.1\""
|
||||
save_as: loopback_count
|
||||
- action: assert_greater
|
||||
actual: "{{ loopback_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
|
||||
pattern: "kubernetesNode: \"{{ single_node }}\""
|
||||
save_as: selected_node_count
|
||||
- action: assert_greater
|
||||
actual: "{{ selected_node_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-lint.txt && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml --wait --timeout 5m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-blockmaster.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-csi-controller.txt && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/wait-csi-node.txt && helm status {{ helm_release }} --namespace {{ helm_namespace }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-status.txt && kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/kube-system-ready.txt && kubectl get sc sw-block-dynamic -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/storageclass.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/install/helm-status.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_user_loop
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "1"
|
||||
env.SW_BLOCK_BASIC_APP_NODE_SELECTOR: "{{ single_node }}"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm-single-node"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/values/values.day1.yaml"
|
||||
env.SW_BLOCK_IMAGE: "{{ sw_block_image }}"
|
||||
env.SW_BLOCK_CSI_IMAGE: "{{ sw_block_csi_image }}"
|
||||
|
||||
- name: first_volume_asserts
|
||||
actions:
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^install_mode=helm-single-node$"
|
||||
save_as: install_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ install_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^app_node_selector={{ single_node }}$"
|
||||
save_as: node_selector_count
|
||||
- action: assert_greater
|
||||
actual: "{{ node_selector_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^writer_verified=true$"
|
||||
save_as: writer_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ writer_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^reader_verified=true$"
|
||||
save_as: reader_verified_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_verified_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/status/report/index.html"
|
||||
pattern: "<html"
|
||||
save_as: report_html_count
|
||||
- action: assert_greater
|
||||
actual: "{{ report_html_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/basic-app/first-volume-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_provenance
|
||||
actions:
|
||||
# Emit the common control-plane envelope so the shared qa-assert.sh accepts
|
||||
# this block bundle (docs/control-plane-product-contract.md §1). Reached only
|
||||
# after the first-volume asserts pass.
|
||||
- action: emit_provenance
|
||||
product: block
|
||||
tested_ref: "{{ sw_block_ref }}"
|
||||
tested_sha: "{{ sw_block_commit }}"
|
||||
__block_first_volume_ok: "{{ first_volume_ok_count }}"
|
||||
__block_writer_verified: "{{ writer_verified_count }}"
|
||||
__block_reader_verified: "{{ reader_verified_count }}"
|
||||
__block_basic_app_cleanup_ok: "{{ cleanup_ok_count }}"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/kube-system-after-uninstall.txt 2>&1 || true"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,415 +0,0 @@
|
||||
# Phase 31 D3: Helm single-node restart persistence gate.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the smallest Kubernetes user path survives a k3s/product restart when
|
||||
# Helm is installed with explicit hostPath restart persistence.
|
||||
#
|
||||
# Product boundary:
|
||||
# RF=1 / single selected Kubernetes node / loopback iSCSI / pod recreate
|
||||
# after restart. This is not an HA, node-loss, or disaster-recovery claim.
|
||||
|
||||
name: helm-single-node-restart-persistence-chain
|
||||
timeout: 30m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
single_node: "m02"
|
||||
sw_block_image: "sw-block:local"
|
||||
sw_block_csi_image: "sw-block-csi:local"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-restart-persistence; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
|
||||
- name: build_sw_block_cli
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block.version.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block.version.txt"
|
||||
pattern: "sw-block"
|
||||
save_as: sw_block_version_count
|
||||
- action: assert_greater
|
||||
actual: "{{ sw_block_version_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: pin_build_alpha_images
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.SW_BLOCK_IMPORT_K3S: "1"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/pin_build"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE_ID="
|
||||
save_as: pin_image_id_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pin_image_id_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: generate_restart_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} --target-node {{ single_node }} --node-limit 1 --restart-persistence hostpath --state-hostpath /var/lib/sw-block/testops-{{ run_id }}-restart-persistence > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
|
||||
pattern: "^restart_persistence_mode=hostpath$"
|
||||
save_as: restart_mode_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_mode_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/generate.stdout.txt"
|
||||
pattern: "^state_hostpath=/var/lib/sw-block/testops-{{ run_id }}-restart-persistence$"
|
||||
save_as: state_hostpath_stdout_count
|
||||
- action: assert_greater
|
||||
actual: "{{ state_hostpath_stdout_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml"
|
||||
pattern: "stateHostPath: /var/lib/sw-block/testops-{{ run_id }}-restart-persistence"
|
||||
save_as: state_hostpath_values_count
|
||||
- action: assert_greater
|
||||
actual: "{{ state_hostpath_values_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm lint charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-lint.txt && helm template {{ helm_release }} charts/seaweed-block -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-template.yaml && grep -q -- '--launcher-state-hostpath=/var/lib/sw-block/testops-{{ run_id }}-restart-persistence' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-template.yaml && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-install.txt && kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=180s && kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=180s && kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=180s && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_before_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
|
||||
env.SW_BLOCK_BASIC_APP_NODE_SELECTOR: "{{ single_node }}"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm-single-node-restart-persistence"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/values/values.restart.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/reader.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_before_restart_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_before_restart_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: restart_k3s_and_verify
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "set -e; date -u > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/restart-start.txt; sudo -n systemctl restart k3s; for i in $(seq 1 180); do if sudo -n k3s kubectl get nodes >/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/nodes.wait.txt 2>&1; then break; fi; sleep 2; done; sudo -n chmod 644 /etc/rancher/k3s/k3s.yaml; kubectl wait --for=condition=Ready node/{{ single_node }} --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-node-ready.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-blockmaster --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockmaster.txt; kubectl -n {{ helm_namespace }} rollout status deploy/sw-block-csi-controller --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-csi-controller.txt; kubectl -n {{ helm_namespace }} rollout status ds/sw-block-csi-node --timeout=300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-csi-node.txt; for d in $(kubectl -n default get deploy -l app=sw-blockvolume -o name); do kubectl -n default rollout status \"$d\" --timeout=300s; done > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockvolumes.txt; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/kube-system.after-restart.txt; kubectl -n default get pods,pvc,pv,deploy -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/default.after-restart.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/restart/wait-blockmaster.txt"
|
||||
pattern: "successfully rolled out"
|
||||
save_as: blockmaster_restart_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blockmaster_restart_ready_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: reader_after_restart
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "set -e; kubectl -n default delete pod sw-block-example-reader --ignore-not-found=true --wait=true --timeout=120s; kubectl apply -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/basic-app/reader-pod.rendered.yaml > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/apply-reader-after-restart.log; kubectl -n default wait --for=jsonpath='{.status.phase}'=Succeeded pod/sw-block-example-reader --timeout=240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/wait-reader-after-restart.log; kubectl -n default logs sw-block-example-reader > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log; grep -q '/data/demo.bin: OK' /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log; port=$(/usr/bin/python3 - <<'PY'\nimport socket\ns=socket.socket(); s.bind(('127.0.0.1',0)); print(s.getsockname()[1]); s.close()\nPY\n); kubectl -n {{ helm_namespace }} port-forward deploy/sw-blockmaster ${port}:9333 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/blockmaster-port-forward.log 2>&1 & pf=$!; trap 'kill $pf >/dev/null 2>&1 || true; wait $pf >/dev/null 2>&1 || true' EXIT; for i in $(seq 1 60); do if (echo >/dev/tcp/127.0.0.1/$port) >/dev/null 2>&1; then break; fi; sleep 1; done; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops cluster --master-api 127.0.0.1:${port} --timeout 30s -o json > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/cluster-after-restart.json; /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/bin/sw-block ops report --master-api 127.0.0.1:${port} --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/reader-after-restart.log"
|
||||
pattern: "/data/demo.bin: OK"
|
||||
save_as: reader_after_restart_count
|
||||
- action: assert_greater
|
||||
actual: "{{ reader_after_restart_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/report/summary.txt"
|
||||
pattern: "managed_volume=.*status=ready"
|
||||
save_as: managed_volume_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ managed_volume_ready_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: post_restart_status_convergence
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 4m
|
||||
cmd: |
|
||||
set -e
|
||||
out=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence
|
||||
mkdir -p "$out"
|
||||
python3 - "$out" <<'PY'
|
||||
import json
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
out = Path(sys.argv[1])
|
||||
root = Path("/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart")
|
||||
sw_block = root / "bin/sw-block"
|
||||
summary = root / "basic-app/first-volume-summary.txt"
|
||||
volume_id = ""
|
||||
for line in summary.read_text(encoding="utf-8").splitlines():
|
||||
if line.startswith("volume_id="):
|
||||
volume_id = line.split("=", 1)[1]
|
||||
break
|
||||
if not volume_id:
|
||||
raise SystemExit("volume_id unavailable")
|
||||
|
||||
def run(*args, **kwargs):
|
||||
return subprocess.run(args, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
|
||||
|
||||
pods = run(
|
||||
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
|
||||
"-l", "app.kubernetes.io/component=blockmaster",
|
||||
"--field-selector=status.phase=Running",
|
||||
"-o", "json",
|
||||
check=True,
|
||||
)
|
||||
pod_items = json.loads(pods.stdout).get("items") or []
|
||||
if not pod_items:
|
||||
pods = run(
|
||||
"kubectl", "-n", "{{ helm_namespace }}", "get", "pods",
|
||||
"--field-selector=status.phase=Running",
|
||||
"-o", "json",
|
||||
check=True,
|
||||
)
|
||||
pod_items = [
|
||||
item for item in json.loads(pods.stdout).get("items") or []
|
||||
if item.get("metadata", {}).get("name", "").startswith("sw-blockmaster-")
|
||||
]
|
||||
ready_pod = ""
|
||||
for item in pod_items:
|
||||
conditions = {c.get("type"): c.get("status") for c in (item.get("status") or {}).get("conditions") or []}
|
||||
if conditions.get("Ready") == "True":
|
||||
ready_pod = item["metadata"]["name"]
|
||||
break
|
||||
if not ready_pod:
|
||||
raise SystemExit("no Ready blockmaster pod")
|
||||
(out / "blockmaster-pod.txt").write_text(ready_pod + "\n", encoding="utf-8")
|
||||
|
||||
sock = socket.socket()
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
port = sock.getsockname()[1]
|
||||
sock.close()
|
||||
(out / "port.txt").write_text(str(port) + "\n", encoding="utf-8")
|
||||
|
||||
pf_log = open(out / "blockmaster-port-forward.log", "w", encoding="utf-8")
|
||||
pf = subprocess.Popen(
|
||||
["kubectl", "-n", "{{ helm_namespace }}", "port-forward", f"pod/{ready_pod}", f"{port}:9333"],
|
||||
stdout=pf_log,
|
||||
stderr=subprocess.STDOUT,
|
||||
text=True,
|
||||
)
|
||||
|
||||
def port_ready():
|
||||
try:
|
||||
with socket.create_connection(("127.0.0.1", port), timeout=1):
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
||||
try:
|
||||
deadline = time.time() + 30
|
||||
while time.time() < deadline:
|
||||
if pf.poll() is not None:
|
||||
raise SystemExit("port-forward exited early")
|
||||
if port_ready():
|
||||
break
|
||||
time.sleep(0.5)
|
||||
else:
|
||||
raise SystemExit("port-forward did not become ready")
|
||||
|
||||
consecutive = 0
|
||||
max_consecutive = 0
|
||||
observations = []
|
||||
final_reason = ""
|
||||
for attempt in range(1, 31):
|
||||
report_dir = out / f"report-{attempt:02d}"
|
||||
evidence_dir = out / f"evidence-{attempt:02d}"
|
||||
proc = run(
|
||||
str(sw_block), "ops", "report",
|
||||
"--namespace", "default",
|
||||
"--master", f"127.0.0.1:{port}",
|
||||
"--out", str(report_dir),
|
||||
"--evidence-out", str(evidence_dir),
|
||||
"--timeout", "30s",
|
||||
)
|
||||
(out / f"report-{attempt:02d}.stdout.txt").write_text(proc.stdout, encoding="utf-8")
|
||||
(out / f"report-{attempt:02d}.stderr.txt").write_text(proc.stderr, encoding="utf-8")
|
||||
if proc.returncode != 0:
|
||||
observations.append(f"{attempt}: report_failed rc={proc.returncode}")
|
||||
consecutive = 0
|
||||
time.sleep(3)
|
||||
continue
|
||||
snap = json.loads((report_dir / "operator-snapshot.json").read_text(encoding="utf-8"))
|
||||
vols = snap.get("volumes") or []
|
||||
target = next((v for v in vols if (v.get("status") or {}).get("volume_id") == volume_id), None)
|
||||
if target is None:
|
||||
observations.append(f"{attempt}: volume_missing")
|
||||
consecutive = 0
|
||||
time.sleep(3)
|
||||
continue
|
||||
status = target.get("status") or {}
|
||||
conditions = status.get("conditions") or []
|
||||
ready_true = any(c.get("type") == "Ready" and c.get("status") == "True" for c in conditions)
|
||||
blocked_true = any(c.get("type") == "Blocked" and c.get("status") == "True" for c in conditions)
|
||||
status_value = status.get("status", "")
|
||||
reason = status.get("reason_code", "")
|
||||
final_reason = reason
|
||||
if status_value == "ready" and ready_true and not blocked_true:
|
||||
consecutive += 1
|
||||
else:
|
||||
consecutive = 0
|
||||
max_consecutive = max(max_consecutive, consecutive)
|
||||
observations.append(
|
||||
f"{attempt}: status={status_value} reason={reason} ready_true={str(ready_true).lower()} "
|
||||
f"blocked_true={str(blocked_true).lower()} consecutive_ready={consecutive}"
|
||||
)
|
||||
if consecutive >= 3:
|
||||
break
|
||||
time.sleep(3)
|
||||
|
||||
(out / "observations.txt").write_text("\n".join(observations) + "\n", encoding="utf-8")
|
||||
status = "ok" if consecutive >= 3 else "failed"
|
||||
with open(out / "convergence-summary.txt", "w", encoding="utf-8") as f:
|
||||
f.write(f"restart_status_convergence={status}\n")
|
||||
f.write(f"volume_id={volume_id}\n")
|
||||
f.write(f"required_consecutive_ready=3\n")
|
||||
f.write(f"max_consecutive_ready={max_consecutive}\n")
|
||||
f.write(f"final_reason={final_reason or 'unknown'}\n")
|
||||
f.write("evidence=observations.txt\n")
|
||||
if status != "ok":
|
||||
raise SystemExit("post-restart status did not converge to stable Ready")
|
||||
finally:
|
||||
pf.terminate()
|
||||
try:
|
||||
pf.wait(timeout=5)
|
||||
except subprocess.TimeoutExpired:
|
||||
pf.kill()
|
||||
pf.wait(timeout=5)
|
||||
pf_log.close()
|
||||
PY
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence/convergence-summary.txt"
|
||||
pattern: "^restart_status_convergence=ok$"
|
||||
save_as: restart_convergence_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_convergence_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/after-restart/convergence/convergence-summary.txt"
|
||||
pattern: "^max_consecutive_ready=3$"
|
||||
save_as: restart_consecutive_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ restart_consecutive_ready_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics; kubectl -n {{ helm_namespace }} get pods,deploy,ds,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/kube-system.before-cleanup.txt 2>&1 || true; kubectl -n {{ helm_namespace }} logs deploy/sw-blockmaster --all-containers=true --tail=200 > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/blockmaster.before-cleanup.log 2>&1 || true; kubectl -n {{ helm_namespace }} get events --sort-by=.lastTimestamp > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/diagnostics/events.before-cleanup.txt 2>&1 || true; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 300s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/helm-uninstall.txt || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example --ignore-not-found=true --wait=true --timeout=120s; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; sudo -n rm -rf /var/lib/sw-block/testops-{{ run_id }}-restart-persistence; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLEANUP_HOSTPATH_PREFIX: "testops-{{ run_id }}-restart-persistence"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "test ! -e /var/lib/sw-block/testops-{{ run_id }}-restart-persistence"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-single-node-restart"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,272 +0,0 @@
|
||||
# Runner-native Phase 26 D4 gate: Helm support bundle diagnostics.
|
||||
#
|
||||
# Goal:
|
||||
# Prove a Helm-installed first-volume run produces a cold, read-only support
|
||||
# bundle that can be consumed later by sw-block ops report/explain/timeline.
|
||||
# Also prove a blocked ImagePullBackOff bundle explains itself without a live
|
||||
# cluster.
|
||||
|
||||
name: helm-support-bundle-diagnostics-chain
|
||||
timeout: 30m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
helm_release: "sw-block"
|
||||
helm_namespace: "kube-system"
|
||||
sw_block_image: "sw-block:phase26-d4"
|
||||
sw_block_csi_image: "sw-block-csi:phase26-d4"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,blockcsi,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 180s || true; kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; kubectl delete clusterrole/sw-block-csi clusterrolebinding/sw-block-csi --ignore-not-found=true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/demo /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
|
||||
- name: build_and_generate_values
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && SW_BLOCK_IMAGE={{ sw_block_image }} SW_BLOCK_CSI_IMAGE={{ sw_block_csi_image }} SW_BLOCK_IMPORT_K3S=1 SW_BLOCK_IMPORT_K3S_NODES='192.168.1.181,192.168.1.188' SW_BLOCK_IMPORT_K3S_SSH_USER=testdev SW_BLOCK_IMPORT_K3S_SSH_KEY=/opt/work/testdev_key SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/build bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE={{ sw_block_image }}"
|
||||
save_as: local_image_built_count
|
||||
- action: assert_greater
|
||||
actual: "{{ local_image_built_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 6m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ./cmd/sw-block && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ops generate-helm-values --kubeconfig /etc/rancher/k3s/k3s.yaml --out /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml --image {{ sw_block_image }} --csi-image {{ sw_block_csi_image }} > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/generate.stdout.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/generate.stdout.txt"
|
||||
pattern: "helm_values_status=ok"
|
||||
save_as: generator_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ generator_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_install_stack
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && helm install {{ helm_release }} charts/seaweed-block --namespace {{ helm_namespace }} --create-namespace -f /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml --wait --timeout 10m > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/helm-install.txt && kubectl -n {{ helm_namespace }} get deploy,ds,pods,svc -o wide > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/kube-system.after-install.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/install/helm-install.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_deployed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_deployed_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: first_volume_kept_for_bundle
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-basic-app-example.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app"
|
||||
env.SW_BLOCK_BASIC_APP_CLEANUP: "0"
|
||||
env.SW_BLOCK_INSTALL_MODE: "helm"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_HELM_VALUES_FILE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/values/values.day1.yaml"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/first-volume-summary.txt"
|
||||
pattern: "^first_volume_status=ok$"
|
||||
save_as: first_volume_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ first_volume_ok_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: collect_support_bundle
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 5m
|
||||
cmd: "cd {{ product_root }} && bash scripts/collect-helm-support-bundle.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_SUPPORT_BUNDLE_SOURCE: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app"
|
||||
env.SW_BLOCK_SUPPORT_BUNDLE_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
env.SW_BLOCK_CLI: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/support-bundle-summary.txt"
|
||||
pattern: "^support_bundle_status=ok$"
|
||||
save_as: support_bundle_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ support_bundle_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/support-bundle-summary.txt"
|
||||
pattern: "^read_only=true$"
|
||||
save_as: support_bundle_readonly_count
|
||||
- action: assert_greater
|
||||
actual: "{{ support_bundle_readonly_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/replayed-report/summary.txt"
|
||||
pattern: "^status=ok$"
|
||||
save_as: replayed_report_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ replayed_report_ok_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/explain.txt"
|
||||
pattern: "managed_volume "
|
||||
save_as: explain_managed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ explain_managed_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/helm/status.txt"
|
||||
pattern: "STATUS: deployed"
|
||||
save_as: helm_status_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_status_bundle_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/basic-app/support-bundle/k8s/pods.txt"
|
||||
pattern: "sw-block"
|
||||
save_as: k8s_pods_bundle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ k8s_pods_bundle_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: blocked_bundle_asserts
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 2m
|
||||
cmd: "cat > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/demo/kube-system-pods-deploys.txt <<'EOF'\nNAME READY STATUS RESTARTS AGE IP NODE\npod/sw-block-csi-node-n948t 0/2 ImagePullBackOff 0 2m3s 192.168.1.184 m02\ndeployment.apps/sw-block-csi-controller 1/1 1 1 2m3s block-csi sw-block-csi:local\nEOF\n/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/bin/sw-block ops explain volume --from-bundle /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle pvc-blocked > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
|
||||
pattern: "reason=csi_node_image_pull_failed"
|
||||
save_as: blocked_reason_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_reason_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/blocked-bundle/explain.txt"
|
||||
pattern: "ImagePullBackOff"
|
||||
save_as: blocked_image_pull_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blocked_image_pull_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: failure_snapshot
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash scripts/collect-k8s-failure-snapshot.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_FAILURE_SNAPSHOT_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/failure-snapshot-summary.txt"
|
||||
pattern: "^read_only=true$"
|
||||
save_as: failure_snapshot_readonly_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_readonly_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/k8s/events-all.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_events_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_events_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/logs/csi-node.current.log"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_csi_log_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_csi_log_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/iscsi-nodes.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_iscsi_nodes_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_iscsi_nodes_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/processes.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_process_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_process_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "kubectl -n default delete pod sw-block-example-reader sw-block-example-writer --ignore-not-found=true --wait=true --timeout=120s; kubectl -n default delete pvc sw-block-example-pvc --ignore-not-found=true --wait=true --timeout=120s; kubectl delete storageclass sw-block-example sw-block-dynamic --ignore-not-found=true --wait=true --timeout=120s; helm status {{ helm_release }} --namespace {{ helm_namespace }} >/dev/null 2>&1 && helm uninstall {{ helm_release }} --namespace {{ helm_namespace }} --wait --timeout 240s > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/helm-uninstall.txt || true; sudo -n iscsiadm -m node 2>/dev/null | awk '/io.seaweedfs/ {print $1, $2}' | while read portal target; do sudo -n iscsiadm -m node -T \"$target\" -p \"$portal\" -o delete || true; done; cd {{ product_root }} && bash scripts/verify-helm-cleanup.sh"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/verify"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|[/]blockcsi |[/]iscsi-target |^blockmaster |^blockvolume |^blockcsi |^iscsi-target "
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/cleanup/verify/cleanup-summary.txt"
|
||||
pattern: "^cleanup_status=ok$"
|
||||
save_as: helm_cleanup_ok_count
|
||||
- action: assert_greater
|
||||
actual: "{{ helm_cleanup_ok_count }}"
|
||||
threshold: "0"
|
||||
@@ -1,137 +0,0 @@
|
||||
# Runner-native iSCSI OS-initiator compatibility gate.
|
||||
#
|
||||
# Goal:
|
||||
# Prove the Linux open-iscsi path against a real kernel initiator:
|
||||
# iscsiadm discovery/login -> mkfs.ext4 -> mount -> write/read checksum
|
||||
# -> optional fio stress -> logout -> no residue.
|
||||
#
|
||||
# This is an iSCSI correctness gate. It is not a performance, HA, multipath,
|
||||
# Windows, or Kubernetes claim.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/iscsi-os-initiator-compat-chain.yaml
|
||||
|
||||
name: iscsi-os-initiator-compat-chain
|
||||
timeout: 20m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
os_iterations: "1"
|
||||
os_stress: "fio"
|
||||
os_fio_runtime: "60"
|
||||
os_fio_size: "128m"
|
||||
durable_blocks: "65536"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.sha && git status --porcelain > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.status && test ! -s /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/git.status && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockvolume ./cmd/blockvolume"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/pin_build/blockvolume.version.txt"
|
||||
|
||||
- name: os_initiator_smoke
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "sudo dmesg > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/dmesg.before.txt 2>&1 || true"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-os-smoke.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke"
|
||||
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/bin"
|
||||
env.SW_BLOCK_ISCSI_ITERATIONS: "{{ os_iterations }}"
|
||||
env.SW_BLOCK_ISCSI_STRESS: "{{ os_stress }}"
|
||||
env.SW_BLOCK_ISCSI_FIO_RUNTIME: "{{ os_fio_runtime }}"
|
||||
env.SW_BLOCK_ISCSI_FIO_SIZE: "{{ os_fio_size }}"
|
||||
env.SW_BLOCK_DURABLE_BLOCKS: "{{ durable_blocks }}"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "sudo dmesg > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/dmesg.after.txt 2>&1 || true"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "python3 - <<'PY'\nimport re, sys\nbase = '/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke'\nts_re = re.compile(r'^\\[\\s*([0-9]+(?:\\.[0-9]+)?)\\]')\ndef read_lines(name):\n with open(base + '/' + name, encoding='utf-8', errors='replace') as f:\n return f.read().splitlines()\ndef ts(line):\n m = ts_re.match(line)\n return float(m.group(1)) if m else None\nbefore = read_lines('dmesg.before.txt')\nafter = read_lines('dmesg.after.txt')\nbefore_ts = [v for v in (ts(line) for line in before) if v is not None]\nif before_ts:\n cutoff = max(before_ts)\n new = [line for line in after if (ts(line) is not None and ts(line) > cutoff)]\nelse:\n i = 0\n while i < len(before) and i < len(after) and before[i] == after[i]:\n i += 1\n new = after[i:]\nwith open(base + '/dmesg.new.txt', 'w', encoding='utf-8') as f:\n f.write('\\n'.join(new))\n if new:\n f.write('\\n')\nbad = re.compile(r'DID_BAD_TARGET|I/O error|Buffer I/O|rejecting I/O|blk_update_request|connection.*failed', re.I)\nhits = [line for line in new if bad.search(line)]\nif hits:\n print('\\n'.join(hits), file=sys.stderr)\n sys.exit(1)\nPY"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/run.log"
|
||||
pattern: "\\[iscsi-os\\] PASS:"
|
||||
save_as: os_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ os_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/mkfs.iter1.log"
|
||||
pattern: "Writing superblocks and filesystem accounting information"
|
||||
save_as: mkfs_success_count
|
||||
- action: assert_greater
|
||||
actual: "{{ mkfs_success_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/sha256-check.iter1.log"
|
||||
pattern: "payload.iter1.bin: OK"
|
||||
save_as: checksum_success_count
|
||||
- action: assert_greater
|
||||
actual: "{{ checksum_success_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat/os_smoke/fio.iter1.log"
|
||||
pattern: "err= 0"
|
||||
save_as: fio_success_count
|
||||
- action: assert_greater
|
||||
actual: "{{ fio_success_count }}"
|
||||
threshold: "0"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-os-compat"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -7,8 +7,11 @@
|
||||
#
|
||||
# Expected invocation from sw-test-runner-standalone:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# -env product_root=/path/to/seaweed_block/on/node-a \
|
||||
# -env ssh_key=/path/to/ssh/key/on/controller \
|
||||
# -env node_host=192.0.2.10 \
|
||||
# -env node_user=tester \
|
||||
# -env artifact_root=/path/to/shared/artifacts \
|
||||
# testops/scenarios/iscsi-p6-alua-failover-chain.yaml
|
||||
|
||||
name: iscsi-p6-alua-failover-chain
|
||||
@@ -16,46 +19,50 @@ timeout: 25m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
|
||||
node_host: "" # address of the test node; set with -env node_host=<address>
|
||||
node_user: "" # ssh user on the test node; set with -env node_user=<user>
|
||||
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
node-a:
|
||||
host: "{{ node_host }}"
|
||||
user: "{{ node_user }}"
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
|
||||
node: node-a
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume ./cmd/blockvolume"
|
||||
cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster ./cmd/blockmaster && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume ./cmd/blockvolume"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.sha && git status --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.status && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
|
||||
node: node-a
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.sha && git status --short > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/git.status && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockmaster --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockmaster.version.txt && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin/blockvolume --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/pin_build/blockvolume.version.txt"
|
||||
pattern: "blockvolume revision="
|
||||
save_as: blockvolume_version_count
|
||||
- action: assert_greater
|
||||
@@ -65,16 +72,16 @@ phases:
|
||||
- name: alua_multipath
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-multipath-smoke.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath"
|
||||
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath"
|
||||
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
|
||||
|
||||
# Bash-level gate: smoke's own PASS line ran.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
pattern: "\\[iscsi-mpath\\] PASS:"
|
||||
save_as: alua_pass_count
|
||||
- action: assert_greater
|
||||
@@ -83,8 +90,8 @@ phases:
|
||||
|
||||
# Field-level gate: one path reports Active/Optimized.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
pattern: "rtpg_state_r1=0x00"
|
||||
save_as: r1_active_optimized_count
|
||||
- action: assert_greater
|
||||
@@ -93,8 +100,8 @@ phases:
|
||||
|
||||
# Field-level gate: standby path reports ALUA standby, not unavailable.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/run.log"
|
||||
pattern: "rtpg_state_r2=0x02"
|
||||
save_as: r2_standby_count
|
||||
- action: assert_greater
|
||||
@@ -103,16 +110,16 @@ phases:
|
||||
|
||||
# Field-level gate: VPD 0x83 contains path-distinguishing identity.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r1.vpd83.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r1.vpd83.txt"
|
||||
pattern: "Target port group"
|
||||
save_as: r1_vpd83_identity_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_vpd83_identity_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r2.vpd83.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/sg_inq.r2.vpd83.txt"
|
||||
pattern: "Target port group"
|
||||
save_as: r2_vpd83_identity_count
|
||||
- action: assert_greater
|
||||
@@ -121,8 +128,8 @@ phases:
|
||||
|
||||
# Field-level gate: standby raw writes are rejected and surfaced as I/O errors.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/standby-write.stderr"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/standby-write.stderr"
|
||||
pattern: "Input/output error"
|
||||
save_as: standby_write_reject_count
|
||||
- action: assert_greater
|
||||
@@ -131,16 +138,16 @@ phases:
|
||||
|
||||
# Field-level gate: multipath groups both paths as one ALUA-handled map.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath-map-name.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath-map-name.txt"
|
||||
pattern: "mpath"
|
||||
save_as: multipath_map_name_count
|
||||
- action: assert_greater
|
||||
actual: "{{ multipath_map_name_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath.ll.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/alua_multipath/multipath.ll.txt"
|
||||
pattern: "hwhandler='1 alua'"
|
||||
save_as: alua_handler_count
|
||||
- action: assert_greater
|
||||
@@ -148,25 +155,25 @@ phases:
|
||||
threshold: "0"
|
||||
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: mounted_failover
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-mounted-failover-smoke.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
|
||||
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover"
|
||||
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/bin"
|
||||
|
||||
# Bash-level gate: smoke's own PASS line ran.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/run.log"
|
||||
pattern: "\\[iscsi-failover\\] PASS:"
|
||||
save_as: failover_pass_count
|
||||
- action: assert_greater
|
||||
@@ -175,16 +182,16 @@ phases:
|
||||
|
||||
# Mounted workload survived the primary kill.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/pre-check-after-failover.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/pre-check-after-failover.log"
|
||||
pattern: "/pre.bin: OK"
|
||||
save_as: pre_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pre_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/post-check.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/post-check.log"
|
||||
pattern: "/post.bin: OK"
|
||||
save_as: post_checksum_count
|
||||
- action: assert_greater
|
||||
@@ -193,24 +200,24 @@ phases:
|
||||
|
||||
# Field-level gate: r2 promoted at epoch 2 and is frontend-ready.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
pattern: "\"Epoch\":2"
|
||||
save_as: r2_epoch2_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_epoch2_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
pattern: "\"AuthorityRole\":\"primary\""
|
||||
save_as: r2_role_primary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_role_primary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/status-r2-healthy.json"
|
||||
pattern: "\"FrontendPrimaryReady\":true"
|
||||
save_as: r2_frontend_ready_count
|
||||
- action: assert_greater
|
||||
@@ -219,8 +226,8 @@ phases:
|
||||
|
||||
# Field-level gate: r2's ALUA state becomes Active/Optimized after failover.
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/sg_rtpg.r2.after.txt"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/mounted_failover/sg_rtpg.r2.after.txt"
|
||||
pattern: "asymmetric access state"
|
||||
save_as: r2_after_active_optimized_count
|
||||
- action: assert_greater
|
||||
@@ -228,35 +235,35 @@ phases:
|
||||
threshold: "0"
|
||||
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "sudo iscsiadm -m session > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/iscsi-sessions.final.txt 2>&1 || true; sudo multipath -ll > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain/multipath.final.txt 2>&1 || true"
|
||||
node: node-a
|
||||
cmd: "sudo iscsiadm -m session > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/iscsi-sessions.final.txt 2>&1 || true; sudo multipath -ll > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain/multipath.final.txt 2>&1 || true"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-iscsi-failover/mnt,/tmp/sw-block-iscsi-mpath/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p6-chain"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p6-chain"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -6,8 +6,11 @@
|
||||
#
|
||||
# Expected invocation from sw-test-runner-standalone:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# -env product_root=/path/to/seaweed_block/on/node-a \
|
||||
# -env ssh_key=/path/to/ssh/key/on/controller \
|
||||
# -env node_host=192.0.2.10 \
|
||||
# -env node_user=tester \
|
||||
# -env artifact_root=/path/to/shared/artifacts \
|
||||
# testops/scenarios/iscsi-p8-compat-soak-chain.yaml
|
||||
|
||||
name: iscsi-p8-compat-soak-chain
|
||||
@@ -15,7 +18,10 @@ timeout: 35m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
ssh_key: "" # private key for node_user; set with -env ssh_key=<path>
|
||||
node_host: "" # address of the test node; set with -env node_host=<address>
|
||||
node_user: "" # ssh user on the test node; set with -env node_user=<user>
|
||||
artifact_root: "" # shared artifact directory; set with -env artifact_root=<path>
|
||||
os_iterations: "2"
|
||||
os_fio_runtime: "120"
|
||||
os_fio_size: "128m"
|
||||
@@ -23,47 +29,48 @@ env:
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
node-a:
|
||||
host: "{{ node_host }}"
|
||||
user: "{{ node_user }}"
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
|
||||
node: node-a
|
||||
cmd: "case \"$SW_BLOCK_ARTIFACT_ROOT\" in /?*) ;; *) echo 'artifact_root must be an absolute path other than /' >&2; exit 2;; esac; case \"$SW_BLOCK_ARTIFACT_ROOT\" in *[!A-Za-z0-9._/-]*) echo 'artifact_root may use only A-Za-z0-9._/-' >&2; exit 2;; esac; rm -rf $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain && mkdir -p $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio $SW_BLOCK_ARTIFACT_ROOT/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
|
||||
env.SW_BLOCK_ARTIFACT_ROOT: "{{ artifact_root }}"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume ./cmd/blockvolume"
|
||||
cmd: "cd {{ product_root }} && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster ./cmd/blockmaster && go build -o {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume ./cmd/blockvolume"
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/build-alpha-images.sh {{ product_root }}"
|
||||
env.SW_BLOCK_IMPORT_K3S: "1"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockvolume.version.txt"
|
||||
node: node-a
|
||||
cmd: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockmaster --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockmaster.version.txt && {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin/blockvolume --version > {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/blockvolume.version.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
|
||||
pattern: "SW_BLOCK_IMAGE_ID="
|
||||
save_as: pin_image_id_count
|
||||
- action: assert_greater
|
||||
@@ -73,86 +80,86 @@ phases:
|
||||
- name: os_fio_repeat
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-os-smoke.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat"
|
||||
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat"
|
||||
env.SW_BLOCK_BIN_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/bin"
|
||||
env.SW_BLOCK_ISCSI_ITERATIONS: "{{ os_iterations }}"
|
||||
env.SW_BLOCK_ISCSI_STRESS: "fio"
|
||||
env.SW_BLOCK_ISCSI_FIO_RUNTIME: "{{ os_fio_runtime }}"
|
||||
env.SW_BLOCK_ISCSI_FIO_SIZE: "{{ os_fio_size }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/os_fio_repeat/run.log"
|
||||
pattern: "\\[iscsi-os\\] PASS:"
|
||||
save_as: os_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ os_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: k8s_fio
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-k8s-alpha-fio.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ALPHA_IMAGES_ENV: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio"
|
||||
env.SW_BLOCK_ALPHA_IMAGES_ENV: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio/run.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_fio/run.log"
|
||||
pattern: "\\[alpha-fio\\] PASS:"
|
||||
save_as: k8s_fio_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ k8s_fio_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: k8s_attach_detach
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
node: node-a
|
||||
timeout: 12m
|
||||
cmd: "cd {{ product_root }} && set -a && . /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env && set +a && bash scripts/run-k8s-attach-detach-loop.sh {{ product_root }}"
|
||||
cmd: "cd {{ product_root }} && set -a && . {{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/pin_build/alpha-images.env && set +a && bash scripts/run-k8s-attach-detach-loop.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ATTACH_DETACH_ITERATIONS: "{{ attach_iterations }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach/summary.log"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain/k8s_attach_detach/summary.log"
|
||||
pattern: "\\[attach-loop\\] PASS:"
|
||||
save_as: attach_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ attach_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
node: node-a
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
node: node-a
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
node: node-a
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-p8-chain"
|
||||
node: node-a
|
||||
path: "{{ artifact_root }}/g15d-k8s/{{ run_id }}-iscsi-p8-chain"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,408 +0,0 @@
|
||||
# Runner-native iSCSI returned-replica reintegration chain.
|
||||
#
|
||||
# Goal:
|
||||
# Exercise a real RF=2 iSCSI ALUA mounted failover, then restart the old
|
||||
# primary and assert it returns as a non-frontend replica while r2 remains
|
||||
# primary. This is the integration companion to returned-replica-component-gate.
|
||||
#
|
||||
# Expected invocation:
|
||||
# swblock run \
|
||||
# -env product_root=/path/to/seaweed_block/on/m02 \
|
||||
# -env ssh_key=/path/to/testdev_key/on/controller \
|
||||
# testops/scenarios/iscsi-returned-replica-chain.yaml
|
||||
|
||||
name: iscsi-returned-replica-chain
|
||||
timeout: 18m
|
||||
|
||||
env:
|
||||
product_root: "/tmp/seaweed_block"
|
||||
ssh_key: "C:\\work\\dev_server\\testdev_key"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
m02:
|
||||
host: 192.168.1.184
|
||||
user: testdev
|
||||
key: "{{ ssh_key }}"
|
||||
|
||||
phases:
|
||||
- name: pre_clean
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-iscsi-returned/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: pin_build
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 8m
|
||||
cmd: "cd {{ product_root }} && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockmaster ./cmd/blockmaster && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockvolume ./cmd/blockvolume && go build -o /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ./cmd/sw-block"
|
||||
- action: exec
|
||||
node: m02
|
||||
cmd: "cd {{ product_root }} && git rev-parse HEAD > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/git.sha && git status --short > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/git.status && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockmaster --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockmaster.version.txt && /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/blockvolume --version > /mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockvolume.version.txt"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/pin_build/blockvolume.version.txt"
|
||||
pattern: "blockvolume revision="
|
||||
save_as: blockvolume_version_count
|
||||
- action: assert_greater
|
||||
actual: "{{ blockvolume_version_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: returned_failover
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 10m
|
||||
cmd: "cd {{ product_root }} && bash scripts/run-iscsi-alua-mounted-failover-smoke.sh {{ product_root }}"
|
||||
env.SW_BLOCK_ARTIFACT_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover"
|
||||
env.SW_BLOCK_BIN_DIR: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin"
|
||||
env.SW_BLOCK_ISCSI_FAILOVER_WORK_DIR: "/tmp/sw-block-iscsi-returned"
|
||||
env.SW_BLOCK_RETURN_R1_AFTER_FAILOVER: "1"
|
||||
env.SW_BLOCK_DEGRADED_PROBE_INTERVAL: "1s"
|
||||
env.SW_BLOCK_DEGRADED_PROBE_COOLDOWN_BASE: "1s"
|
||||
env.SW_BLOCK_DEGRADED_PROBE_COOLDOWN_CAP: "3s"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/run.log"
|
||||
pattern: "\\[iscsi-failover\\] PASS:"
|
||||
save_as: failover_pass_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failover_pass_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/run.log"
|
||||
pattern: "restart returned r1 after r2 promotion"
|
||||
save_as: r1_return_phase_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_return_phase_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/pre-check-after-failover.log"
|
||||
pattern: "/pre.bin: OK"
|
||||
save_as: pre_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ pre_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/post-check.log"
|
||||
pattern: "/post.bin: OK"
|
||||
save_as: post_checksum_count
|
||||
- action: assert_greater
|
||||
actual: "{{ post_checksum_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-healthy.json"
|
||||
pattern: "\"AuthorityRole\":\"primary\""
|
||||
save_as: r2_primary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_primary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
|
||||
pattern: "^authority_non_primary=true$"
|
||||
save_as: r1_nonprimary_summary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_nonprimary_summary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
|
||||
pattern: "^frontend_primary_ready=false$"
|
||||
save_as: r1_frontend_not_ready_summary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_frontend_not_ready_summary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r1-returned.summary"
|
||||
pattern: "^healthy=false$"
|
||||
save_as: r1_not_healthy_summary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_not_healthy_summary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
|
||||
pattern: "\"AuthorityRole\":\"primary\""
|
||||
save_as: r2_still_primary_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_still_primary_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
|
||||
pattern: "\"FrontendPrimaryReady\":true"
|
||||
save_as: r2_still_frontend_ready_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_still_frontend_ready_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-after-r1-return.json"
|
||||
pattern: "\"Healthy\":true"
|
||||
save_as: r2_still_healthy_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_still_healthy_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
|
||||
pattern: "\"ReplicaID\":\"r1\""
|
||||
save_as: r1_peer_present_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_peer_present_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
|
||||
pattern: "\"State\":\"healthy\""
|
||||
save_as: r1_peer_healthy_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_peer_healthy_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
|
||||
pattern: "\"Epoch\":2"
|
||||
save_as: r1_peer_epoch_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_peer_epoch_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
|
||||
pattern: "\"ProbeInFlight\":false"
|
||||
save_as: r1_peer_probe_idle_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_peer_probe_idle_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-r2-peers-after-r1-return.json"
|
||||
pattern: "\"Closed\":false"
|
||||
save_as: r1_peer_open_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_peer_open_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/blockvolume-r1-returned.log"
|
||||
pattern: "durable recovered: recovered LSN="
|
||||
save_as: r1_returned_local_recovery_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_returned_local_recovery_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/blockvolume-r1-returned.log"
|
||||
pattern: "admitted as SUPPORTING replica r1"
|
||||
save_as: r1_returned_supersede_observed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r1_returned_supersede_observed_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
|
||||
pattern: "^replica=r2$"
|
||||
save_as: r2_durable_replica_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_durable_replica_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
|
||||
pattern: "^epoch_gte_2=true$"
|
||||
save_as: r2_durable_epoch_gte_2_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_durable_epoch_gte_2_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/status-durable-r2-primary-after-r1-return.summary"
|
||||
pattern: "^operational=true$"
|
||||
save_as: r2_durable_operational_count
|
||||
- action: assert_greater
|
||||
actual: "{{ r2_durable_operational_count }}"
|
||||
threshold: "0"
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 2m
|
||||
cmd: |
|
||||
ROOT=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover
|
||||
mkdir -p "$ROOT/product-observation" "$ROOT/report"
|
||||
python3 - "$ROOT" <<'PY'
|
||||
import datetime, json, pathlib, sys
|
||||
root = pathlib.Path(sys.argv[1])
|
||||
r1 = json.loads((root / 'status-r1-returned.json').read_text())
|
||||
r2 = json.loads((root / 'status-r2-after-r1-return.json').read_text())
|
||||
dr1 = json.loads((root / 'status-durable-r1-returned.json').read_text())['Volumes'][0]
|
||||
dr2 = json.loads((root / 'status-durable-r2-primary-after-r1-return.json').read_text())['Volumes'][0]
|
||||
required = int(dr2.get('DurableLSN') or 0)
|
||||
r1_durable = int(dr1.get('DurableLSN') or 0)
|
||||
cluster = {
|
||||
'schema_version': '1.0',
|
||||
'captured_at': datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z'),
|
||||
'product_revision': 'returned-replica-live-gate',
|
||||
'status': 'recovering',
|
||||
'volumes': [{
|
||||
'volume_id': 'v1',
|
||||
'namespace': 'testops',
|
||||
'pvc_name': 'iscsi-returned-replica-chain',
|
||||
'replication_factor': 2,
|
||||
'ack_profile': 'sync-quorum',
|
||||
'status': 'recovering',
|
||||
'reason': 'returned_replica_frontend_fenced',
|
||||
'primary_replica': 'r2',
|
||||
'primary_node': 'm02',
|
||||
'publish_target': '127.0.0.1:3281',
|
||||
'epoch': int(r2.get('Epoch') or 0),
|
||||
'endpoint_version': int(r2.get('EndpointVersion') or 0),
|
||||
'required_frontier_known': required > 0,
|
||||
'required_frontier_lsn': required,
|
||||
'replicas': [{
|
||||
'replica_id': 'r1',
|
||||
'server_id': 's1',
|
||||
'kubernetes_node': 'm02',
|
||||
'observed': True,
|
||||
'role': 'returned',
|
||||
'replication_role': str(r1.get('ReplicationRole') or 'replica_ready'),
|
||||
'durable_latched': bool(dr1.get('Latched')),
|
||||
'durable_frontier_known': bool(dr1.get('FrontierKnown')),
|
||||
'durable_frontier_lsn': r1_durable,
|
||||
'healthy': bool(r1.get('Healthy')),
|
||||
'frontend_primary_ready': bool(r1.get('FrontendPrimaryReady')),
|
||||
'frontend_protocol': 'iscsi',
|
||||
'frontend_addr': '127.0.0.1:3280',
|
||||
'status_addr': '127.0.0.1:19603',
|
||||
'stale_primary_fenced': True,
|
||||
'support_bundle_path': 'status-r1-returned.json'
|
||||
}, {
|
||||
'replica_id': 'r2',
|
||||
'server_id': 's2',
|
||||
'kubernetes_node': 'm02',
|
||||
'observed': True,
|
||||
'role': 'primary',
|
||||
'replication_role': str(r2.get('ReplicationRole') or 'none'),
|
||||
'durable_latched': bool(dr2.get('Latched')),
|
||||
'durable_frontier_known': bool(dr2.get('FrontierKnown')),
|
||||
'durable_frontier_lsn': required,
|
||||
'healthy': bool(r2.get('Healthy')),
|
||||
'frontend_primary_ready': bool(r2.get('FrontendPrimaryReady')),
|
||||
'frontend_protocol': 'iscsi',
|
||||
'frontend_addr': '127.0.0.1:3281',
|
||||
'status_addr': '127.0.0.1:19613'
|
||||
}]
|
||||
}],
|
||||
'non_claims': ['no automatic returned-replica failback or rebuild mutation executed']
|
||||
}
|
||||
(root / 'product-observation' / 'cluster-evidence.json').write_text(json.dumps(cluster, indent=2) + '\n')
|
||||
(root / 'returned-replica-live-evidence-summary.txt').write_text('\n'.join([
|
||||
'returned_replica_live_evidence_status=ok',
|
||||
f'required_frontier_lsn={required}',
|
||||
f'r1_durable_lsn={r1_durable}',
|
||||
f'r2_durable_lsn={required}',
|
||||
f'frontier_covered={str(r1_durable >= required).lower()}',
|
||||
]) + '\n')
|
||||
PY
|
||||
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops report --from-bundle "$ROOT" --out "$ROOT/report" > "$ROOT/report.stdout.txt" 2> "$ROOT/report.stderr.txt"
|
||||
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops explain volume --from-bundle "$ROOT" v1 > "$ROOT/explain.txt" 2> "$ROOT/explain.stderr.txt"
|
||||
port=19487
|
||||
/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/bin/sw-block ops dashboard --from-bundle "$ROOT" --listen "127.0.0.1:${port}" --serve-duration 8s > "$ROOT/dashboard.stdout.txt" 2> "$ROOT/dashboard.stderr.txt" &
|
||||
dashboard_pid=$!
|
||||
for _ in $(seq 1 80); do
|
||||
if curl -fsS "http://127.0.0.1:${port}/operator-snapshot.json" > "$ROOT/dashboard-operator-snapshot.json" 2> "$ROOT/dashboard-curl.stderr.txt"; then
|
||||
break
|
||||
fi
|
||||
sleep 0.1
|
||||
done
|
||||
test -s "$ROOT/dashboard-operator-snapshot.json"
|
||||
wait "$dashboard_pid" || true
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/returned-replica-live-evidence-summary.txt"
|
||||
pattern: "^frontier_covered=true$"
|
||||
save_as: returned_live_frontier_covered_count
|
||||
- action: assert_greater
|
||||
actual: "{{ returned_live_frontier_covered_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/report/summary.txt"
|
||||
pattern: "managed_volume_returned_replica=v1 replica=r1 state=fenced reason=returned_replica_frontend_fenced"
|
||||
save_as: returned_live_projection_count
|
||||
- action: assert_greater
|
||||
actual: "{{ returned_live_projection_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/report/summary.txt"
|
||||
pattern: "managed_volume_action=authority.reintegrate_returned_replica mode=dry_run side_effect=authority_mutating executor=authority_recovery_executor decision=allowed"
|
||||
save_as: returned_live_action_allowed_count
|
||||
- action: assert_greater
|
||||
actual: "{{ returned_live_action_allowed_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/explain.txt"
|
||||
pattern: "managed_volume_action authority.reintegrate_returned_replica mode=dry_run"
|
||||
save_as: returned_live_explain_action_count
|
||||
- action: assert_greater
|
||||
actual: "{{ returned_live_explain_action_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain/returned_failover/dashboard-operator-snapshot.json"
|
||||
pattern: "\"type\": \"authority.reintegrate_returned_replica\""
|
||||
save_as: returned_live_dashboard_action_count
|
||||
- action: assert_greater
|
||||
actual: "{{ returned_live_dashboard_action_count }}"
|
||||
threshold: "0"
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: final_asserts
|
||||
actions:
|
||||
- action: assert_no_active_iscsi_sessions
|
||||
node: m02
|
||||
iqn_substr: "io.seaweedfs"
|
||||
- action: assert_no_processes
|
||||
node: m02
|
||||
pattern: "[/]blockmaster --|[/]blockvolume --|^blockmaster |^blockvolume "
|
||||
|
||||
- name: collect_and_cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: pre_run_cleanup
|
||||
node: m02
|
||||
kill_patterns: "blockmaster,blockvolume,iscsi-target"
|
||||
unmount: "/tmp/sw-block-iscsi-returned/mnt"
|
||||
nvme_disconnect: "true"
|
||||
iscsi_logout_prefix: "iqn.2026-05.io.seaweedfs"
|
||||
- action: collect_path
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-iscsi-returned-chain"
|
||||
name: "remote-phases"
|
||||
ignore_error: true
|
||||
@@ -1,304 +0,0 @@
|
||||
# Runner-native real-cluster gate for the content-named layout.
|
||||
#
|
||||
# One scenario for the layout's real-process tests. Each entry is one tagged Go
|
||||
# test that owns its stock filer, block processes and NVMe frontend; the
|
||||
# scenario builds an exact product commit, runs the selected entries, and
|
||||
# passes an entry only on that test's own top-level "--- PASS" line together
|
||||
# with exit code 0. A test that is skipped, renamed, or not compiled in by its
|
||||
# tags prints no such line, so it fails the entry.
|
||||
#
|
||||
# Parameters never enter shell source: every value reaches the commands as an
|
||||
# environment variable (the runner single-quotes env.* params), and each is
|
||||
# validated before use. The verified product commit and weed digest are
|
||||
# recorded in result.json (emit_provenance) whether or not the entries pass.
|
||||
#
|
||||
# Entries (all six by default; select a subset with -env tests="..."):
|
||||
# move TestIntegrationWorkspaceLayoutMove (clean and forced move)
|
||||
# lease TestBinaryWorkspaceLeaseOptInOwnsCLEANShutdown
|
||||
# systemd TestSystemdExpiredStartupExits75ThenRegrantServes
|
||||
# (system systemd; run as a user allowed to systemd-run)
|
||||
# catalog TestIntegration_CatalogRestoreAndDelete
|
||||
# cutover-e2e TestCutoverWriteSnapshotKillRestartRestore (write, snapshot,
|
||||
# kill, restart, restore)
|
||||
# cutover-create TestCutoverCreateFromSnapshot (the master creates the
|
||||
# target identity and its restored image in one request)
|
||||
# fence-heal TestFencingRoundHealContinuesThePrimary (a failed fencing
|
||||
# round heals by continuing the primary). Not in the default
|
||||
# set until the promotion fence is on the base.
|
||||
# fence-rejoin TestFencingRoundSurvivorRejoins (the fence-heal scenario
|
||||
# carried on: the survivor that could not fence rejoins the
|
||||
# healed primary). Not in the default set until the promotion
|
||||
# fence is on the base.
|
||||
# double-failover TestDoubleFailoverReadsBackEveryAckedWrite (RF3
|
||||
# sync_quorum: two failovers, the first primary rejoining in
|
||||
# between; every acknowledged write reads back on the last
|
||||
# primary). Not in the default set until the promotion fence
|
||||
# is on the base.
|
||||
#
|
||||
# Expected invocation (on the Linux host):
|
||||
# swblock run \
|
||||
# -env product_repo=/path/to/seaweed-block -env head=<40-hex commit> \
|
||||
# -env weed_binary=/path/to/weed -env weed_sha256=<sha256> \
|
||||
# -env go_bin=/path/to/go/bin \
|
||||
# -env tests="move lease systemd catalog cutover-e2e cutover-create" \
|
||||
# testops/scenarios/layout-realcluster-integration-gate.yaml
|
||||
|
||||
name: layout-realcluster-integration-gate
|
||||
timeout: 120m
|
||||
always_timeout: 5m
|
||||
|
||||
env:
|
||||
product_repo: "/path/to/seaweed-block"
|
||||
head: ""
|
||||
weed_binary: "/path/to/weed"
|
||||
weed_sha256: ""
|
||||
go_bin: "/usr/local/go/bin"
|
||||
tests: "move lease systemd catalog cutover-e2e cutover-create"
|
||||
scratch_root: "/tmp/sw-layout-gate"
|
||||
|
||||
topology:
|
||||
nodes:
|
||||
host:
|
||||
is_local: true
|
||||
|
||||
phases:
|
||||
- name: prepare
|
||||
actions:
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 2m
|
||||
env.GATE_RUN: "{{ run_id }}"
|
||||
env.GATE_ROOT: "{{ scratch_root }}"
|
||||
env.GATE_HEAD: "{{ head }}"
|
||||
env.GATE_TESTS: "{{ tests }}"
|
||||
env.GATE_REPO: "{{ product_repo }}"
|
||||
env.GATE_WEED: "{{ weed_binary }}"
|
||||
env.GATE_WEED_SHA: "{{ weed_sha256 }}"
|
||||
env.GATE_GO: "{{ go_bin }}"
|
||||
save_as: gate_token
|
||||
cmd: |
|
||||
set -euf
|
||||
fail() { echo "$1" >&2; exit 2; }
|
||||
case "$GATE_HEAD" in *[!0-9a-f]*|'') fail 'head must be a full lowercase hexadecimal commit' ;; esac
|
||||
[ ${#GATE_HEAD} -eq 40 ] || fail 'head must be 40 characters'
|
||||
case "$GATE_WEED_SHA" in *[!0-9a-f]*|'') fail 'weed_sha256 must be lowercase hexadecimal' ;; esac
|
||||
[ ${#GATE_WEED_SHA} -eq 64 ] || fail 'weed_sha256 must be 64 characters'
|
||||
case "$GATE_RUN" in *[!0-9A-Za-z_-]*|'') fail 'run_id has unexpected characters' ;; esac
|
||||
case "$GATE_ROOT" in /*) ;; *) fail 'scratch_root must be absolute' ;; esac
|
||||
case "$GATE_ROOT" in *[!0-9A-Za-z_./-]*|*..*) fail 'scratch_root has unexpected characters' ;; esac
|
||||
case "$GATE_TESTS" in *[!0-9a-z\ -]*|'') fail 'tests must be entry names separated by spaces' ;; esac
|
||||
n=0
|
||||
for t in $GATE_TESTS; do
|
||||
case "$t" in move|lease|systemd|catalog|cutover-e2e|cutover-create|fence-heal|fence-rejoin|double-failover) ;; *) fail "unknown entry: $t" ;; esac
|
||||
n=$((n + 1))
|
||||
done
|
||||
[ "$n" -gt 0 ] || fail 'tests names no entry'
|
||||
[ -x "$GATE_GO/go" ] || fail 'go_bin/go is not executable'
|
||||
[ -f "$GATE_WEED" ] || fail 'weed_binary is not a file'
|
||||
[ "$(sha256sum < "$GATE_WEED" | cut -d' ' -f1)" = "$GATE_WEED_SHA" ] || fail 'weed_binary does not match weed_sha256'
|
||||
[ "$(git -C "$GATE_REPO" rev-parse --verify "$GATE_HEAD^{commit}")" = "$GATE_HEAD" ] || fail 'head is not that commit in product_repo'
|
||||
d="$GATE_ROOT/$GATE_RUN"
|
||||
mkdir -p "$GATE_ROOT"
|
||||
# Created here, atomically, or refused: cleanup removes only a
|
||||
# directory whose marker holds this run's token.
|
||||
mkdir "$d" 2>/dev/null || fail 'run directory already exists'
|
||||
token=$(od -An -tx1 -N16 /dev/urandom | tr -d ' \n')
|
||||
printf '%s\n' "$token" > "$d/.layout-gate-owned"
|
||||
printf '%s\n' "$token"
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 2m
|
||||
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
|
||||
env.GATE_HEAD: "{{ head }}"
|
||||
env.GATE_TESTS: "{{ tests }}"
|
||||
env.GATE_REPO: "{{ product_repo }}"
|
||||
env.GATE_WEED_SHA: "{{ weed_sha256 }}"
|
||||
env.GATE_GO: "{{ go_bin }}"
|
||||
cmd: |
|
||||
set -euf
|
||||
d="$GATE_DIR"
|
||||
mkdir "$d/source" "$d/bin" "$d/tmp" "$d/evidence"
|
||||
git -C "$GATE_REPO" archive "$GATE_HEAD" | tar -xf - -C "$d/source"
|
||||
printf '%s\n' "$GATE_HEAD" > "$d/evidence/product.sha"
|
||||
printf '%s weed\n' "$GATE_WEED_SHA" > "$d/evidence/weed.sha256"
|
||||
"$GATE_GO/go" version > "$d/evidence/go.version"
|
||||
printf '%s\n' $GATE_TESTS > "$d/evidence/selected.txt"
|
||||
# Pins, recorded before any entry runs; gate_pass stays 0 unless run_tests passes.
|
||||
- action: emit_provenance
|
||||
product: seaweed-block
|
||||
tested_sha: "{{ head }}"
|
||||
gate_pass: "0"
|
||||
gate_status: "pinned"
|
||||
__weed_sha256: "{{ weed_sha256 }}"
|
||||
__entries: "{{ tests }}"
|
||||
|
||||
- name: build
|
||||
actions:
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 20m
|
||||
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
|
||||
env.GATE_GO: "{{ go_bin }}"
|
||||
env.GATE_TESTS: "{{ tests }}"
|
||||
cmd: |
|
||||
set -eu
|
||||
d="$GATE_DIR"
|
||||
export PATH="$GATE_GO:$PATH"
|
||||
cd "$d/source"
|
||||
for b in blockmaster blockvolume sw-block; do go build -o "$d/bin/$b" "./cmd/$b"; done
|
||||
# Only the test binaries the selected entries run: a package that
|
||||
# no selected entry uses cannot fail the build of the others.
|
||||
bv=0 sd=0 cs=0
|
||||
for t in $GATE_TESTS; do
|
||||
case "$t" in
|
||||
systemd) sd=1 ;;
|
||||
catalog) cs=1 ;;
|
||||
*) bv=1 ;;
|
||||
esac
|
||||
done
|
||||
[ "$bv" = 0 ] || go test -c -tags 'subprocess chunkstore_integration' -o "$d/bin/blockvolume.test" ./cmd/blockvolume
|
||||
[ "$sd" = 0 ] || go test -c -tags 'subprocess chunkstore_integration systemd_integration' -o "$d/bin/blockvolume-systemd.test" ./cmd/blockvolume
|
||||
[ "$cs" = 0 ] || go test -c -tags 'chunkstore_integration' -o "$d/bin/chunkstore.test" ./core/frontend/chunkstore
|
||||
sha256sum "$d/bin/"* > "$d/evidence/binaries.sha256"
|
||||
|
||||
- name: run_tests
|
||||
actions:
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 95m
|
||||
env.GATE_DIR: "{{ scratch_root }}/{{ run_id }}"
|
||||
env.GATE_GO: "{{ go_bin }}"
|
||||
env.GATE_WEED: "{{ weed_binary }}"
|
||||
env.GATE_TESTS: "{{ tests }}"
|
||||
receipt_path: "{{ bundle_dir }}/run_tests.receipt.json"
|
||||
cmd: |
|
||||
set -f
|
||||
d="$GATE_DIR"
|
||||
export PATH="$GATE_GO:$PATH" TMPDIR="$d/tmp" CHUNKSTORE_WEED="$GATE_WEED" SWBLOCK_TEST_BINS="$d/bin"
|
||||
: > "$d/evidence/verdicts.txt"
|
||||
failed=0
|
||||
n=0
|
||||
for t in $GATE_TESTS; do
|
||||
n=$((n + 1))
|
||||
extra=
|
||||
case "$t" in
|
||||
move) pkg=cmd/blockvolume bin=blockvolume.test name=TestIntegrationWorkspaceLayoutMove to=14m ;;
|
||||
lease) pkg=cmd/blockvolume bin=blockvolume.test name=TestBinaryWorkspaceLeaseOptInOwnsCLEANShutdown to=9m ;;
|
||||
systemd) pkg=cmd/blockvolume bin=blockvolume-systemd.test name=TestSystemdExpiredStartupExits75ThenRegrantServes to=14m extra=GAP1_SYSTEMD_AUTHORIZED=1 ;;
|
||||
catalog) pkg=core/frontend/chunkstore bin=chunkstore.test name=TestIntegration_CatalogRestoreAndDelete to=9m ;;
|
||||
cutover-e2e) pkg=cmd/blockvolume bin=blockvolume.test name=TestCutoverWriteSnapshotKillRestartRestore to=40m ;;
|
||||
cutover-create) pkg=cmd/blockvolume bin=blockvolume.test name=TestCutoverCreateFromSnapshot to=20m ;;
|
||||
fence-heal) pkg=cmd/blockvolume bin=blockvolume.test name=TestFencingRoundHealContinuesThePrimary to=10m ;;
|
||||
fence-rejoin) pkg=cmd/blockvolume bin=blockvolume.test name=TestFencingRoundSurvivorRejoins to=10m ;;
|
||||
double-failover) pkg=cmd/blockvolume bin=blockvolume.test name=TestDoubleFailoverReadsBackEveryAckedWrite to=15m ;;
|
||||
*) echo "unknown entry: $t" >&2; exit 2 ;;
|
||||
esac
|
||||
log="$d/evidence/$t.log"
|
||||
# A failed test keeps its daemons' whole logs here (collected).
|
||||
(cd "$d/source/$pkg" && env $extra SWBLOCK_TEST_LOG_DIR="$d/evidence/$t-daemons" "$d/bin/$bin" -test.run "^$name\$" -test.v -test.count 1 -test.timeout "$to") > "$log" 2>&1
|
||||
rc=$?
|
||||
if [ "$rc" -eq 0 ] && grep -qE "^--- PASS: $name \(" "$log"; then
|
||||
echo "PASS $t $name" >> "$d/evidence/verdicts.txt"
|
||||
else
|
||||
echo "FAIL $t $name rc=$rc" >> "$d/evidence/verdicts.txt"
|
||||
tail -40 "$log" >&2
|
||||
failed=1
|
||||
fi
|
||||
done
|
||||
passes=$(grep -c '^PASS ' "$d/evidence/verdicts.txt" 2>/dev/null) || passes=0
|
||||
if [ "$n" -eq 0 ] || [ "$passes" -ne "$n" ]; then
|
||||
echo "verdicts: $passes PASS of $n selected entries" >&2
|
||||
failed=1
|
||||
fi
|
||||
cat "$d/evidence/verdicts.txt" >&2
|
||||
exit "$failed"
|
||||
|
||||
- name: collect
|
||||
always: true
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: host
|
||||
path: "{{ scratch_root }}/{{ run_id }}/evidence"
|
||||
name: "layout-gate"
|
||||
|
||||
# Runs only when every earlier ordinary phase passed (the runner runs the
|
||||
# always phases after them). The pass is read back from a collected copy of
|
||||
# the evidence: a failed collection fails the gate, and the archive must
|
||||
# hold one PASS verdict per selected entry and no other line.
|
||||
- name: mark_pass
|
||||
actions:
|
||||
- action: collect_path
|
||||
node: host
|
||||
path: "{{ scratch_root }}/{{ run_id }}/evidence"
|
||||
name: "layout-gate-pass"
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 1m
|
||||
env.GATE_ARCHIVE: "{{ artifacts_dir }}/layout-gate-pass.tgz"
|
||||
env.GATE_TESTS: "{{ tests }}"
|
||||
cmd: |
|
||||
set -euf
|
||||
v=$(tar -xzOf "$GATE_ARCHIVE" evidence/verdicts.txt)
|
||||
n=0
|
||||
for t in $GATE_TESTS; do
|
||||
n=$((n + 1))
|
||||
printf '%s\n' "$v" | grep -qE "^PASS $t Test[A-Za-z0-9_]+\$" || { echo "collected verdicts lack PASS for $t" >&2; exit 1; }
|
||||
done
|
||||
lines=$(printf '%s\n' "$v" | grep -c .)
|
||||
[ "$n" -gt 0 ] && [ "$lines" -eq "$n" ] || { echo "collected verdicts: $lines lines for $n entries" >&2; exit 1; }
|
||||
- action: emit_provenance
|
||||
product: seaweed-block
|
||||
tested_sha: "{{ head }}"
|
||||
gate_pass: "1"
|
||||
gate_status: "ok"
|
||||
__weed_sha256: "{{ weed_sha256 }}"
|
||||
__entries: "{{ tests }}"
|
||||
|
||||
# Always runs and ends with the zero-residue assertion: no process whose cwd,
|
||||
# executable or command line is inside this run's directory (the tests build
|
||||
# and start every binary there, systemd units included), and no gap1-* unit.
|
||||
# The run directory is removed only after that holds.
|
||||
- name: cleanup
|
||||
always: true
|
||||
actions:
|
||||
- action: exec
|
||||
node: host
|
||||
timeout: 3m
|
||||
env.GATE_RUN: "{{ run_id }}"
|
||||
env.GATE_ROOT: "{{ scratch_root }}"
|
||||
env.GATE_TOKEN: "{{ gate_token }}"
|
||||
receipt_path: "{{ bundle_dir }}/cleanup.receipt.json"
|
||||
cmd: |
|
||||
set -u
|
||||
case "$GATE_RUN" in *[!0-9A-Za-z_-]*|'') echo 'run_id has unexpected characters' >&2; exit 2 ;; esac
|
||||
case "$GATE_ROOT" in /*) ;; *) echo 'scratch_root must be absolute' >&2; exit 2 ;; esac
|
||||
d="$GATE_ROOT/$GATE_RUN"
|
||||
[ -e "$d" ] || exit 0
|
||||
# No token: prepare created nothing; whatever is there is not ours.
|
||||
case "$GATE_TOKEN" in *[!0-9a-f]*|'') echo "this run created no directory; left untouched: $d" >&2; exit 0 ;; esac
|
||||
[ ${#GATE_TOKEN} -eq 32 ] || { echo "this run created no directory; left untouched: $d" >&2; exit 0; }
|
||||
[ "$(cat "$d/.layout-gate-owned" 2>/dev/null)" = "$GATE_TOKEN" ] || { echo "not created by this run; left untouched: $d" >&2; exit 2; }
|
||||
residue() {
|
||||
n=0
|
||||
for p in /proc/[0-9]*; do
|
||||
[ "${p##*/}" = "$$" ] && continue
|
||||
cwd=$(readlink "$p/cwd" 2>/dev/null || true)
|
||||
exe=$(readlink "$p/exe" 2>/dev/null || true)
|
||||
cmd=$(tr '\0' ' ' < "$p/cmdline" 2>/dev/null || true)
|
||||
case "$cwd|$exe|$cmd" in *"$d"/*) echo "residue process ${p##*/}: $exe" >&2; n=$((n + 1)) ;; esac
|
||||
done
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
units=$(systemctl list-units --all --plain --no-legend 'gap1-*' 2>/dev/null | awk '{print $1}')
|
||||
[ -z "$units" ] || { echo "residue units: $units" >&2; n=$((n + 1)); }
|
||||
fi
|
||||
[ "$n" -eq 0 ]
|
||||
}
|
||||
i=0
|
||||
until residue; do
|
||||
i=$((i + 1))
|
||||
[ "$i" -lt 30 ] || { echo "residue remains after 60s; run directory kept: $d" >&2; exit 1; }
|
||||
sleep 2
|
||||
done
|
||||
rm -rf -- "$d"
|
||||
[ ! -e "$d" ] || { echo "run directory not removed: $d" >&2; exit 1; }
|
||||
echo "zero residue: $d"
|
||||
@@ -1,97 +0,0 @@
|
||||
# Runner-native Phase 42 D1 gate: live lifecycle-owner API/admission boundary.
|
||||
|
||||
name: lifecycle-owner-admission-gate-chain
|
||||
description: >
|
||||
Runs the live Kubernetes ValidatingAdmissionPolicy gate that proves the
|
||||
lifecycle-owner identity can only issue finalizer-shaped SwBlockVolume main
|
||||
object patches. This is the real API/admission successor to the Phase 41
|
||||
schema-aware boundary gate.
|
||||
|
||||
vars:
|
||||
product_root: "{{ env.PRODUCT_ROOT | default('/mnt/c/work/seaweed_block') }}"
|
||||
|
||||
phases:
|
||||
- name: admission_gate
|
||||
actions:
|
||||
- type: exec
|
||||
name: run_phase42_admission_gate
|
||||
cmd: "rm -rf /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate && mkdir -p /mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate && cd {{ product_root }} && SW_BLOCK_ARTIFACT_DIR=/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate bash scripts/run-phase42-lifecycle-owner-admission-gate.sh {{ product_root }}"
|
||||
|
||||
- name: asserts
|
||||
actions:
|
||||
- type: grep_log
|
||||
name: admission_gate_ok
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^phase42_lifecycle_owner_admission_status=ok$"
|
||||
- type: grep_log
|
||||
name: operator_status_no_main_patch
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^operator_status_main_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: admission_policy_propagated
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^admission_policy_propagated=true$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_finalizer_add_allowed
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_finalizer_add_allowed=true$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_finalizer_add_idempotent
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_finalizer_add_idempotent=true$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_finalizer_remove_allowed
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_finalizer_remove_allowed=true$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_finalizer_remove_idempotent
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_finalizer_remove_idempotent=true$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_spec_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_spec_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_label_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_label_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_annotation_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_annotation_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_ownerreferences_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_ownerreferences_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_deletiontimestamp_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_deletiontimestamp_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_foreign_finalizer_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_foreign_finalizer_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_mixed_patch_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_mixed_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_mixed_metadata_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_mixed_metadata_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_main_status_not_mutated
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_main_status_mutated=false$"
|
||||
- type: grep_log
|
||||
name: lifecycle_owner_status_subresource_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^lifecycle_owner_status_subresource_patch_allowed=false$"
|
||||
- type: grep_log
|
||||
name: finalizers_endpoint_forbidden
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^finalizers_endpoint_allowed=false$"
|
||||
- type: grep_log
|
||||
name: object_integrity_preserved
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-phase42-lifecycle-owner-admission-gate/phase42-lifecycle-owner-admission-gate-summary.txt"
|
||||
pattern: "^object_integrity_preserved=true$"
|
||||
Loaded 100 of 237 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user