Commit Graph
66 Commits
Author SHA1 Message Date
pingqiu e314bef5e3 test: address frontend gate review comments 2026-05-06 17:12:49 -07:00
pingqiu 6426be6fe7 test: isolate iscsi os smoke control ports 2026-05-06 15:26:24 -07:00
pingqiu e8e78b96c2 test: add iscsi compatibility soak gate 2026-05-06 15:05:57 -07:00
pingqiu fdaceeea04 test: add iscsi backend fio matrix 2026-05-06 15:01:59 -07:00
pingqiu 51b7a80054 iscsi: address alua review findings 2026-05-06 10:22:59 -07:00
pingqiu 377ce0a781 test: add iscsi mounted failover smoke 2026-05-06 02:44:05 -07:00
pingqiu a7655954be iscsi: report idle replica path as alua standby 2026-05-06 02:36:22 -07:00
pingqiu 6eff9a0cb2 test: add iscsi alua multipath smoke 2026-05-06 01:12:57 -07:00
pingqiu 7f49b7df8d iscsi: fix rtpg target port group layout 2026-05-05 23:27:31 -07:00
pingqiu a83331f57b test: add iscsi alua os smoke 2026-05-05 21:04:55 -07:00
pingqiu 66bbbb0c1f test(k8s): add csi node restart lifecycle scenario 2026-05-05 13:41:20 -07:00
pingqiu 92c6cc126c iscsi: address frontend review feedback 2026-05-05 10:53:21 -07:00
pingqiu e1c06fd911 k8s: wire iSCSI CHAP secret into alpha path 2026-05-05 00:55:14 -07:00
pingqiu e5b83968e8 frontend(iscsi): allow discovery before CHAP login 2026-05-05 00:11:16 -07:00
pingqiu 9a42ad2957 test(iscsi): add CHAP OS smoke path 2026-05-05 00:07:44 -07:00
pingqiu 01a86204da test(k8s): add iscsi fio smoke scenario 2026-05-04 22:30:54 -07:00
pingqiu adc394b1bb test(k8s): add attach detach loop wrapper 2026-05-04 22:25:30 -07:00
pingqiu 1b3d2913bd scripts: default alpha cleanup to pvc owner references 2026-05-04 20:21:48 -07:00
pingqiu 07912d6380 review: tighten pvc ownerref wiring 2026-05-04 19:58:14 -07:00
pingqiu 6bff96a748 csi: resolve pvc uid for owner references 2026-05-04 18:40:01 -07:00
pingqiu d69d6adc81 scripts: support pvc-owned launcher workloads 2026-05-04 17:56:26 -07:00
Ping Qiu aec335bc3c Merge pull request #36 from seaweedfs/iscsi/portal-addr
iscsi: expose target portal and Data-Out knobs
2026-05-04 13:02:32 -07:00
pingqiu aed752fa0d iscsi: expose operational target knobs 2026-05-04 11:22:33 -07:00
pingqiu b4dde2840c docs(k8s): add alpha install workflow 2026-05-04 10:24:47 -07:00
pingqiu 0566dcbd09 ci(k8s): publish alpha images to GHCR 2026-05-04 10:21:31 -07:00
Ping Qiu 13584950da docs(k8s): make app demo registry-friendly
Add a stable Kubernetes app-demo entry point, registry image overrides, a quickstart guide, and copyable basic app PVC examples.

Validated on M02 k3s with writer pod -> same PVC -> reader pod checksum verification.
2026-05-04 10:19:51 -07:00
Ping Qiu fbb104ba84 test(iscsi): address smoke harness review comments (#27)
* test: address iSCSI smoke review comments

* test: apply iSCSI smoke review fixes
2026-05-04 01:57:51 -07:00
Ping Qiu 5e8880772b test(k8s): add larger alpha PVC smoke (#28)
* test(k8s): add larger alpha PVC smoke

* test(k8s): honor namespace for large alpha smoke

* test(k8s): exercise 32Mi alpha payload
2026-05-04 01:57:21 -07:00
pingqiu ff62460805 scripts: add iSCSI OS stress mode 2026-05-04 00:13:43 -07:00
pingqiu 226f9a3d83 scripts: loop iSCSI OS smoke iterations 2026-05-04 00:01:24 -07:00
pingqiu 2e23507fa2 scripts: allow prebuilt iSCSI smoke binaries 2026-05-03 23:36:30 -07:00
pingqiu 4523835a92 scripts: add iSCSI OS smoke harness 2026-05-03 23:35:39 -07:00
pingqiu 36eee3302c demo: add Kubernetes app PVC walkthrough 2026-05-03 20:27:58 -07:00
pingqiu 0d00847335 scripts: add stable alpha entrypoints 2026-05-03 15:37:27 -07:00
pingqiu 1a9e3e3939 docs: smooth alpha quick start 2026-05-03 15:32:38 -07:00
pingqiu c5b02f1924 docs: add contributor architecture and directory overviews 2026-05-03 15:13:29 -07:00
pingqiu 9f11605929 docs: add Kubernetes alpha MVP onboarding 2026-05-03 14:50:33 -07:00
pingqiu 0ca00ebdd2 G15e: preserve create-path artifacts during cleanup 2026-05-03 14:24:24 -07:00
pingqiu 2bf6fa6fc5 G15e: extend dynamic PVC harness to verify cleanup 2026-05-03 14:21:07 -07:00
pingqiu 7aa0db8a57 G15d: fix dynamic launcher iSCSI bind 2026-05-03 11:49:39 -07:00
pingqiu 7d09750d58 G15d: add dynamic PVC K8s harness 2026-05-03 11:22:46 -07:00
pingqiu a55f0dff67 G15b: fix hostNetwork DNS and preserve failure logs 2026-05-03 09:24:49 -07:00
pingqiu 648254fa21 G15b: add Kubernetes image build inputs 2026-05-03 09:03:19 -07:00
pingqiu 3abcad8392 G15b: add Kubernetes static PV lab harness 2026-05-03 08:57:57 -07:00
pingqiu 1868918b96 G5-5C: harden replica kill in verify_restart_catchup (TERM+KILL+port-release wait)
First m01 hardware run (b77rzzhc2) failed at #4 verify_restart_catchup
because the replica restart hit 'bind: address already in use' on
status port 9291 — TERM alone left the prior process holding the
port at restart time. Probe loop on primary correctly tried 5x and
got connection-refused, replica process never came up.

This is a script orchestration issue, NOT a G5-5C software issue.
Primary log (artifacts-20260427T <run2>) shows the probe loop
fired on schedule with the right cooldown progression — there was
just nothing to probe.

Fix: kill replica with TERM (1s) → KILL fallback → poll ss for
port 9291 release (up to 10s) before returning. Replica restart
then has a clean port to bind to.

Run this fix on m01 and re-verify #4 GREEN before §close.
2026-04-27 17:35:39 -07:00
pingqiu 8b83d49b54 G5-5C: enable --degraded-probe-interval=5s on primary in iterate script
Per mini-plan v0.5 §1.A architect binding: production primary runs
probe loop at 5s interval. The script's primary launch now passes
--degraded-probe-interval=5s so verify_restart_catchup can converge
within the 30s deadline (5s loop + ~10s catch-up + safety).

Replica side stays unchanged (probe loop is primary-only).
2026-04-27 17:30:32 -07:00
pingqiu 6729babae5 G5-5 round 14: pre-flight stale-iptables cleanup in start_cluster
Investigation found root cause of round-13 silent failures:
M02 had a leftover INPUT DROP rule from an earlier run's
verify_network_catchup that used the OLD pattern
(`iptables -I INPUT` on M02). When that earlier run aborted via
set -e before reaching its cleanup `iptables -D`, the rule
persisted across runs. Round 13's rewrite changed to OUTPUT-on-m01
but didn't clean up the legacy INPUT-on-M02 leftover. The stale
rule blocked m01→M02:9221 ship/barrier traffic for ALL subsequent
runs; primary's peer entered degraded state on first ship attempt;
all rounds after the original poisoning incident saw the symptom
"replica daemon dies silently" because the SCRIPT's pkill found
nothing (replica had been killed by the script's own pkill but
no ship traffic ever flowed during the run).

Diagnosis sequence:
  1. ssh m01→M02:9221 TCP test: timeout (FAIL=124)
  2. m01 iptables: empty (rules out m01-side block)
  3. M02 iptables INPUT: `DROP tcp dpt:9221` (~50 dropped pkts)
  4. `iptables -D INPUT -p tcp --dport 9221 -j DROP` on M02
  5. Re-test: ssh→TCP echo OK
  6. Re-run: chain flows through to all 3 verify steps

Fix: start_cluster() now drops both possible patterns pre-flight:
  - sudo iptables -D OUTPUT -d  -p tcp --dport  -j DROP   (round-13 pattern)
  - sudo iptables -D INPUT -p tcp --dport  -j DROP                 (round-12 leftover)
Both with || true so missing rules don't fail set -e.

Round-14 result on m01:
  ✓ verify_cluster_ready
  ✓ verify_byte_equal       (LBA[0]=0xab)
  ✓ verify_network_catchup  (LBA[1]=0xcd byte-equal in 8s after iptables disconnect+heal)
  ✗ verify_restart_catchup  (LBA[2]=0xef MISMATCH — real recovery-path finding)

The verify_restart_catchup failure is exactly the case architect
ruling 2 named: 'run #4 naively first; if it doesn't converge,
that is a real recovery-path finding to surface, not a test flaw.'

Primary's log evidence:
  After replica killed → ship attempt → barrier timeout → peer
  invalidated (degraded). Primary writes LBA[2]=0xef while replica
  down → 'ship gate-degraded peer=r2 lba=2 lsn=3 (peer degraded)'
  — ship is gated out before any TCP attempt. Replica restarts;
  no mechanism triggers primary to re-establish the peer
  connection or re-ship the missed entries.

Architecturally the engine-driven catch-up path needs a trigger
(probe success, assignment re-emit, etc.) to bring a degraded
peer back online + replay missed LSNs. G5-5 surfaces that this
trigger isn't wired into the binary's runtime — surface for
architect / QA decision: (a) defer #4 to a follow-up batch with
a dedicated peer-recovery fix; (b) implement now within G5-5
scope.

Refs: round 14 m01 self-iteration; investigation traced 4
indirection layers to find the leftover iptables rule.
2026-04-27 02:15:22 -07:00
pingqiu b3f90387e3 G5-5 round 13: rewrite #3/#4 to byte-equal pattern + helpers
Per architect ratification round 13 + QA planning input:
  - Add wait_until_byte_equal(lba, pattern, deadline_s) helper —
    cycles kill→m01verify→restart per poll until match or timeout.
    Caller-side honest about OpenReadOnly's no-concurrent-writer
    assumption.
  - Add iscsi_write_pattern(lba, count, pattern) helper using
    python3 binary write (byte-exact pattern; tr does not grok
    \xHH escapes per round-12 finding).
  - Rewrite verify_network_catchup with iptables OUTPUT drop on
    m01 toward M02_IP:M02_REPLICA_DATA_PORT. trap RETURN ensures
    iptables -D runs on any exit path. Pass condition is direct
    byte-equal at LBA[1]=0xcd, not engine-state H/R polling.
  - Rewrite verify_restart_catchup with replica killall+restart
    pattern. Run NAIVELY first per architect ruling — if catch-up
    doesn't converge with BestEffort durability, that is a real
    recovery-path finding to surface, not a test flaw.
  - Diagnostic snapshots from /status/recovery kept as supporting
    evidence only, not pass/fail oracle.

KNOWN ISSUE — round 13 self-test on m01: even verify_byte_equal
(which worked on round 12 part C) now fails before reaching
m01verify. Replica daemon on M02 dies silently after recording
supersede; subsequent SSH_M02 pkill matches nothing → set -e
exit. Replica's primary log ends at 'recording supersede, not
applying to adapter'; no exit/panic/SIGSEGV trace in journalctl
or dmesg. Needs further investigation:
  - Is replica daemon exiting cleanly via some path I'm not aware of?
  - Is there an unbuffered panic going to /dev/null because of
    setsid+nohup+</dev/null?
  - Was round-12-part-C's success actually flaky?

Pausing self-iteration here. Round 13 rewrite is complete in
script; #2 byte-equal already proven on hardware in round 12
part C (committed at 82e9018). #3/#4 need additional debug
either (a) on the daemon's lifecycle, or (b) on the script's
sequencing of the replica daemon during multi-step scenarios.

Refs: architect ruling round 13; QA planning input.
2026-04-27 02:01:03 -07:00
pingqiu 82e9018bae G5-5 round 12 part C: fix dd 0xab fill (tr lacks \xHH escape support)
QA round 12 self-test on m01: m01verify reported MISMATCH on
LBA 0 — but inspecting the bytes via xxd showed the primary's
on-disk file matched the replica's, both 0x78 (ASCII 'x') × 4096.
Replication chain is correct; the script wrote the wrong bytes.

Root cause: the script used 'tr "\0" "\xab"' which DOES
NOT produce 0xab. tr's escape grammar recognizes only octal
(\NNN) and a small set of letter escapes (\n, \t, ...);
\xHH is not understood — tr substitutes with the literal first
char of the replacement string, which is '\' parsed loosely
giving 'x' (0x78). Verified empirically on m01:

  $ dd if=/dev/zero bs=4096 count=1 2>/dev/null | tr "\0" "\xab" | xxd | head -1
  00000000: 7878 7878 7878 7878 7878 7878 7878 7878  xxxxxxxxxxxxxxxx

Fix: use python3 binary write — guaranteed byte-exact 0xab fill:
  python3 -c "...sys.stdout.buffer.write(b'\xab' * 4096)..."

Round 12 part C result on m01:
  ✓ verify_cluster_ready
  ✓ verify_byte_equal — m01verify reports 'OK 1 LBA(s) byte-equal'

This is the FIRST end-to-end PASS of acceptance criterion #2 on
real hardware. The replication chain (lineage latch + ship +
barrier + apply) is verified working. verify_network_catchup
still hits H-advance false-positive (engine state semantic is
probe-driven, not local-write-driven; same as fix in #2 but
applied per-step); will address next.

Refs: round 12 m01 self-test full progression
(rounds 1-11 surfaced 14 distinct bugs each isolated and fixed).
2026-04-27 01:43:07 -07:00
pingqiu 8d6c4a807b G5-5 round 12 part B: fix walstore filename v1.walstore → v1.bin
m01verify in verify_byte_equal expected v1.walstore but
durable provider's volumePath uses VolumeID+".bin" (provider.go:133).
Same fix in verify_network_catchup and verify_restart_catchup
helpers if they reference the file path.
2026-04-27 01:39:03 -07:00