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.
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.
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).
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.
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.
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).
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.