From deea764e4bba2b7419b7af8d5c9b9f24e9ebe04b Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 5 Dec 2026 17:18:53 -0800 Subject: [PATCH] seaweed-block: docs: the unit check covers every blockvolume unit; the notes drop the unconditional renewal claim Review: the restart-binary check enumerates every blockvolume unit file and template instance (sw-blockvolume*, loaded or not), since a systemctl glob skips an enabled but stopped unit; and the v1.1.2 notes now require the latest received report, say a v1.1.2 process renews only after its own first answered heartbeat, and state the delayed-report residual instead of claiming an old replacement can never extend a lease. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operations-manual.md | 9 +++++++-- seaweed-block/docs/releases/v1.1.2.md | 8 +++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 6778dd6a8e..842c171035 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -630,8 +630,13 @@ writing the v1.0 format until you finalize. Until then you can go back. # 1. Every RUNNING volume process: /proc//exe runs the image that process is running, # even if an upgrade has since replaced the file on disk. for pid in $(pgrep -x blockvolume); do printf '%s ' "$pid"; sudo /proc/"$pid"/exe --version; done - # 2. The binary each unit would start on a restart. - for b in $(systemctl cat 'sw-blockvolume@*' | sed -n 's/^ExecStart=\([^ ]*\).*/\1/p' | sort -u); do printf '%s ' "$b"; "$b" --version; done + # 2. The binary each unit would start on a restart: every blockvolume unit, loaded or not (an enabled but + # stopped unit is not loaded, so a systemctl glob alone would skip it). + units=$(systemctl list-unit-files 'sw-blockvolume*' --no-legend | cut -d' ' -f1 + systemctl list-units --all 'sw-blockvolume@*' --no-legend --plain | cut -d' ' -f1) + for b in $(for u in $units; do systemctl cat "$u"; done | sed -n 's/^ExecStart=\([^ ]*\).*/\1/p' | sort -u); do + printf '%s ' "$b"; "$b" --version + done ``` Every line of steps 1 and 2 must print exactly the reference line, with `modified=false`. A line with another diff --git a/seaweed-block/docs/releases/v1.1.2.md b/seaweed-block/docs/releases/v1.1.2.md index 4c62b81121..e51fe09fbd 100644 --- a/seaweed-block/docs/releases/v1.1.2.md +++ b/seaweed-block/docs/releases/v1.1.2.md @@ -16,9 +16,11 @@ that the holder stopped. Upgrade and report from that holder before retrying. A from the serving check, but a retained placement with a fresh level-0 report still blocks the host-side check; move that placement away or upgrade the placed process and report level 1 before retrying. The serving check excludes clean ACKed releases and leases proven ended; an unserved placement needs no report. -First serving deadlines, re-grants and live renewals require the current process's level-1 report during -finalize and after level 1 commits. A replacement old or unreported process cannot extend a live lease. -Current capable processes renew without waiting for the store write. This changes no persisted format or rollback-before-finalize rule. +First serving deadlines, re-grants and live renewals require the latest level-1 report blockmaster received for +the volume during finalize and after level 1 commits. A v1.1.2 volume process renews only after blockmaster has +answered its own first heartbeat, and an old process's own report refuses its renewals once it lands. A delayed +report can still stand in for a newer process, so the host-verified operator rule below is what keeps the finalize +safe in that case (stated, not closed in v1.1.2). Capable processes renew without waiting for the store write. This changes no persisted format or rollback-before-finalize rule. Moves and authority publication remain placement: an unknown target may be placed; only a known-old report refuses it. An issued move record alone permits no serving. The target must report and get an accepted renewal reply first.