From cda91c24eaf61ae67e2fe26e40c4fee14b338950 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 4 Dec 2026 21:37:48 -0800 Subject: [PATCH] seaweed-block: document the waiting_for_master status reason NotReadyReason's field text, and the status schema generated from it, did not name the new reason, which /status reports first. The operations manual's typed-status table gets a row for it. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/host/volume/status_server.go | 13 +++++++------ seaweed-block/docs/operations-manual.md | 1 + seaweed-block/docs/status-schema.md | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/seaweed-block/core/host/volume/status_server.go b/seaweed-block/core/host/volume/status_server.go index 7bafc42305..cce13408e7 100644 --- a/seaweed-block/core/host/volume/status_server.go +++ b/seaweed-block/core/host/volume/status_server.go @@ -204,12 +204,13 @@ type StatusProjection struct { // primary, its local durable backend admits I/O, and it may serve guest // I/O (INV-FE-PRIMARY-READY-OPERATIONAL-001). FrontendPrimaryReady bool - // NotReadyReason says why FrontendPrimaryReady is false, first match: a - // workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the - // local durable backend admits no I/O (its evidence: attach pending, - // fenced, detached) or has no status for the volume; the frontend target - // is not listening yet; this replica is not the healthy primary. Empty - // when ready. + // NotReadyReason says why FrontendPrimaryReady is false, first match: the + // start waits for blockmaster to answer before it opens the volume's + // store (NotReadyWaitingForMaster); a workspace primary holds no granted + // lease now (NotReadyLeaseNotHeld); the local durable backend admits no + // I/O (its evidence: attach pending, fenced, detached) or has no status + // for the volume; the frontend target is not listening yet; this replica + // is not the healthy primary. Empty when ready. NotReadyReason string `json:",omitempty"` // AuthorityRole is primary, superseded or unknown. AuthorityRole string diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 6156637a3a..6f5cd7f401 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -742,6 +742,7 @@ Volume status (`/status?volume=`, heartbeats, cluster status): | What you see | Meaning | What to do | |---|---|---| | `NotReadyReason: lease_not_held`, `MasterWait.Reason: unreachable` | The holder cannot reach blockmaster, so it has no lease and serves nothing. Until its lease expires (about 15-20 s after its last renewal) the old process still reports `Healthy: true`. Then it exits 75 and systemd restarts it 5 s later: the status page is gone for those seconds, the restarted process shows these fields, and the guest reconnects by itself. | Start or reach blockmaster. The volume serves again by itself. | +| `NotReadyReason: waiting_for_master` | A plain walstore holder started while blockmaster gives no reply. It waits in the process before it opens or creates its store, writes nothing, and logs the wait every 30 s; the unit stays active and does not restart. | Start or reach blockmaster. The holder opens its store and serves by itself. | | `RecoveryWait: awaiting_authority` (recovery-progress `AwaitingAuthority: true`) | Recovery finished, and the volume waits for blockmaster's assignment. The startup window is paused. | As above. | | `recovery_stalled` | No recovery step completed for a whole startup window. | Look for disk starvation (section 8). The volume serves no I/O and continues once the disk serves it. | | `binary_too_old` | The holder's binary reads an older format than the cluster's, so it gets no assignment. | Upgrade that host to v1.1 (section 7). | diff --git a/seaweed-block/docs/status-schema.md b/seaweed-block/docs/status-schema.md index c39a41b0fb..c02a2f926c 100644 --- a/seaweed-block/docs/status-schema.md +++ b/seaweed-block/docs/status-schema.md @@ -33,7 +33,7 @@ The volume's authority and health projection. Go type `volume.StatusProjection`. | `Memory.RSSBytes` | uint64 | resident set size from /proc/self/status (VmRSS); 0 off Linux | | `Memory.AnonymousRSSBytes` | uint64 | anonymous resident memory (RssAnon); 0 off Linux | | `FrontendPrimaryReady` | bool | FrontendPrimaryReady: this replica is the healthy, non-superseded primary, its local durable backend admits I/O, and it may serve guest I/O (INV-FE-PRIMARY-READY-OPERATIONAL-001). | -| `NotReadyReason` | string | NotReadyReason says why FrontendPrimaryReady is false, first match: a workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the local durable backend admits no I/O (its evidence: attach pending, fenced, detached) or has no status for the volume; the frontend target is not listening yet; this replica is not the healthy primary. Empty when ready. (omitted when empty) | +| `NotReadyReason` | string | NotReadyReason says why FrontendPrimaryReady is false, first match: the start waits for blockmaster to answer before it opens the volume's store (NotReadyWaitingForMaster); a workspace primary holds no granted lease now (NotReadyLeaseNotHeld); the local durable backend admits no I/O (its evidence: attach pending, fenced, detached) or has no status for the volume; the frontend target is not listening yet; this replica is not the healthy primary. Empty when ready. (omitted when empty) | | `AuthorityRole` | string | AuthorityRole is primary, superseded or unknown. | | `ReplicationRole` | string | ReplicationRole is none (a primary), recovering, not_ready, replica_ready or unknown. | | `RoleAdmissionFailure` | string | RoleAdmissionFailure (G1) explains a not-Healthy projection caused by a failed role call on the replica listener; empty otherwise. (omitted when empty) |