Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 51edb0571e fix: a rerun of a held delete is not decided again
A delete admitted as never started that stopped before it marked HEAD,
after which the holder claimed HEAD, was refused at the master on every
rerun, before the catalog step that gives the reservation back: the
volume stayed reserved for ever. A rerun whose token already holds the
reservation (or a committed one) now skips the verdict; the catalog
step's HEAD fence refuses the live HEAD and gives back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:58:44 -08:00
pingqiuandClaude Opus 5.5 2efb9131dd test: a rerun of an admitted delete after the holder claimed HEAD (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:58:06 -08:00
pingqiuandClaude Opus 5.5 98b46ecad3 test: phase 0 red: forced move needs an admin; a node acts only for its own id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:47:33 -08:00
pingqiuandClaude Opus 5.5 2b9d446d57 feat(blockvolume): mutual TLS on the master links
Phase 0, S4 (volume side): --master-tls-cert, --master-tls-key and
--master-ca put the volume host's master link and the GC epoch pull on
mutual TLS (the filer links are unchanged). The start is refused when the
node certificate's CN differs from --server-id, when the set is partial,
or together with --allow-external-status-bind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:46:37 -08:00
pingqiuandClaude Opus 5.5 e125c52624 feat(blockmaster): mutual TLS and the role file
Phase 0, S4 (master side): --tls-cert, --tls-key, --tls-client-ca and
--role-file together turn on mutual TLS and per-call authorization; a
partial set, or authentication with --insecure-external-bind, is refused;
the authenticated listener may bind any address. SIGHUP reloads the role
file (a bad file keeps the previous table and says so). The start-up line
gives the master's own certificate's expiry; development mode repeats its
UNAUTHENTICATED warning once a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:44:10 -08:00
pingqiuandClaude Opus 5.5 54855c1e25 feat(link): mutual TLS for the master links only
Phase 0, S4 (transport): TLSFiles (cert, key, CA: all or none, checked at
start), ServerCredentials (client certificate required and verified to the
CA), ClientCredentials, DialMaster (TLS or development-mode plaintext), and
a 24 h connection age. Both sides read their certificate at every
handshake, so a rotated file takes effect without a restart. Dial (the
SeaweedFS filer links) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:41:01 -08:00
pingqiu 44498a3ec8 test(durable): pin virtual post-pause expiry to its readiness allowance 2026-11-24 08:39:07 -08:00
pingqiu 7b67e49c3a test(durable): release timely takeover before its own CAS allowance 2026-11-24 08:36:47 -08:00
pingqiu ebf49b4ee9 test(durable): drive virtual attachment through real takeover provider 2026-11-24 08:36:21 -08:00
pingqiu 4601a076e0 test(durable): require deterministic precopy write readiness outcomes 2026-11-24 08:35:24 -08:00
pingqiu a8a2c0b66d test(durable): diagnose missing readiness registration 2026-11-24 08:34:45 -08:00
pingqiu 1c9364e6e0 test(durable): require both attachment budget outcomes on virtual time 2026-11-24 08:33:40 -08:00
pingqiuandClaude Opus 5.5 b807b3f00d feat(master): the authorization table and the server's interceptors
Phase 0, S3 (master part): masterRules covers all 24 blockmaster methods
(PHASE0-AUTH section 3); the gRPC server takes Config.Auth's interceptors,
or development-mode ones when authentication is not configured, and
Config.ServerOptions. T2: every registered method has a rule and every rule
a method.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:29:40 -08:00
pingqiuandClaude Opus 5.5 2733834554 test: admission-level verdicts; the M2 row names Revoking and the rerun
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:26:09 -08:00
pingqiuandClaude Opus 5.5 34dbc862cd feat(auth): one interceptor, per-method rules, RequireNode / RequireRole
Phase 0, S3 (core part): the unary and stream interceptors authenticate
every call (PeerIdentity), apply the method's rule (people from a minimum
role up; nodes where allowed; a method without a rule is refused), and put
the principal on the context for RequireNode (own server id) and
RequireRole. A stream re-authenticates before every send and at every
role-file reload, so a removed caller loses its open stream at the reload.
Development mode marks calls explicitly; a call no interceptor saw is
refused by the handler checks (fail closed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:25:04 -08:00
pingqiuandClaude Opus 5.5 160fcc0d29 feat(auth): the caller is the CA-verified certificate pinned by the role file
core/auth (phase 0, S2): ParseRoleFile/LoadRoleFile (sha256:<hex> role id),
an Authenticator whose table swaps atomically (a failed reload keeps the
previous table), and PeerIdentity: the leaf certificate the TLS handshake
verified to the client CA, its fingerprint bound to a role and id, CN equal
to that id, not expired on the master's clock; every failure is
UNAUTHENTICATED. authtest issues test CAs and certificates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:23:03 -08:00
pingqiu e7d18a3b6a Merge branch 'test/537-cold-precopy-loaded-context' into test/537-slow-precopy-budget-outcome 2026-11-24 08:17:11 -08:00
pingqiu cd24230842 test(durable): limit precopy quarantine to unresolved cold fixture 2026-11-24 08:16:20 -08:00
pingqiu 5b80c97457 test(durable): cover readiness budget before caller expiry 2026-11-24 08:09:58 -08:00
pingqiuandClaude Opus 5.5 04a70968fe fix: a delete that stopped midway can be run again
The HEAD reader refused a deleting, purging or deleted HEAD as invalid,
so a never-started delete whose commit timed out (or whose mark's outcome
was unknown) was refused on every re-run: the volume stayed unusable and
undeletable. Such a HEAD can no longer be claimed, so it is past the
fence: the reader returns it with ErrWorkspaceHeadDeleting and the
verdict admits it (HolderDeleting).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:09:38 -08:00
pingqiuandClaude Opus 5.5 b07d7cde45 docs: INV-AUTH-PERSIST-BEFORE-PUBLISH-001 names the directory fsync and its test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:07:50 -08:00
pingqiuandClaude Opus 5.5 6537dde732 fix: a failed directory fsync fails every authority store write
The directory fsync after the rename was best-effort for every record but
a workspace lease: its error was ignored, so a write a crash could undo
was reported as written. It now fails closed for every record. Windows,
which cannot fsync a directory, skips it as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:01:37 -08:00
pingqiu 44873969bd test(durable): distinguish slow precopy caller-budget busy outcome 2026-11-24 08:01:14 -08:00
pingqiu ee67149b11 test: snapshot caller error before reading freeze diagnostics 2026-11-24 08:01:13 -08:00
pingqiu 602e677a8b test: report pre-copy guest error operation and stop timing 2026-11-24 08:01:13 -08:00
pingqiuandClaude Opus 5.5 665f1f7563 test: a failed directory fsync must fail every authority store write (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:56:39 -08:00
pingqiu f13f00d1c8 test(durable): quarantine unresolved precopy accounting and admission 2026-11-24 07:48:14 -08:00
Ping Qiu 22766070d6 Merge pull request #543 from seaweedfs/test/537-csi-loaded-publish-wait
test: allow CSI publish observation after loaded recovery
2026-11-24 07:45:02 -08:00
Ping Qiu 5c24447069 Merge pull request #542 from seaweedfs/test/537-cow-capture-loaded-context
test: allow COW capture context to cover loaded WAL churn
2026-11-24 07:44:34 -08:00
pingqiu 9380992a66 test(durable): avoid assuming delayed CAS prevents HEAD settlement 2026-11-24 07:44:05 -08:00
pingqiu ff5a88edc6 test(durable): honor bounded takeover attachment readiness 2026-11-24 07:41:09 -08:00
pingqiu 709dceca75 test(durable): extend only cold precopy writer context under load 2026-11-24 07:37:38 -08:00
pingqiuandClaude Opus 5.5 eb96edc7b6 test: a 16-byte pattern for the clean-move case
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:30:18 -08:00
pingqiuandClaude Opus 5.5 e1626eb714 test: served means HEAD claimed or frontend ready, not an adopted assignment
Adopting the master's assignment comes before the HEAD claim; a start
that adopted and then lost the HEAD race to the delete never served.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:28:06 -08:00
pingqiuandClaude Opus 5.5 0273c9d8aa fix: the delete reads a never-claimed initial HEAD as epoch 0
The master's HEAD reader refused the initial HEAD (epoch 0, no holder) as
invalid, so the delete saw every never-started line as unreadable. It now
returns that HEAD with ErrWorkspaceHeadUnclaimed: every caller that needs
an identity still gets an error; the delete evidence reads it as epoch 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:12:27 -08:00
pingqiu 7d7fa5004f test: allow CSI publish observation after loaded recovery 2026-11-24 07:02:41 -08:00
pingqiuandClaude Opus 5.5 bd10769811 docs: ledger for the never-started delete
TERM-LIVE-HOLDER-001 (the one verdict), INV-WS-DELETE-NO-LIVE-HOLDER-001
replacing INV-WS-DELETE-NEEDS-ACK-001 (ARCHIVED with its reason), and the
M2 'none, Granted or Expired -> Deleting' transition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:02:29 -08:00
pingqiu 23f2688161 test: allow COW capture context to cover loaded WAL churn 2026-11-24 07:01:55 -08:00
pingqiuandClaude Opus 5.5 63711a5744 test: distinct endpoints for the second volume
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:00:34 -08:00
pingqiuandClaude Opus 5.5 5bf22f98e1 fix: a volume whose holder never claimed HEAD is deletable
One pure verdict for 'live holder of V' (TERM-LIVE-HOLDER-001):
WorkspaceHolderState(line, ACK, HEAD) -> no line, drained, sealed,
never started (HEAD below the line's epoch), live, or unknown. The chunk
volume delete's admission (MarkVolumeDeleting) reads HEAD before its
locks, bounded at 5 s, and admits no line, drained and never started; a
sealed HEAD without an ACK, a live one, or an unreadable HEAD is refused
as before. The delete's HEAD compare-and-swap to deleting stays the only
fence against a claim that lands after the read. The lifecycle
DeleteVolume reads no HEAD and keeps refusing a line without an ACK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:54:24 -08:00
pingqiu 6be001de67 Merge remote-tracking branch 'origin/main' into fix/1.0.1-live-holder 2026-11-24 06:51:57 -08:00
pingqiuandClaude Opus 5.5 30e1c9213c test: the 20-volume 2 s bar is asserted only where the store device does not stall
It measures the store write p99 beside the master's store before and
after the restart and asserts the bar only below 20 ms; otherwise it
reports the numbers without failing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:51:40 -08:00
pingqiuandClaude Opus 5.5 6d3b988744 docs: ledger row count after merging main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:33:52 -08:00
Ping Qiu 324d2edb85 Merge pull request #541 from seaweedfs/test/537-upload-overlap-startup-wait
test: allow upload overlap startup on loaded hosts
2026-11-24 06:33:45 -08:00
pingqiu d9a879fc1e Merge remote-tracking branch 'origin/main' into fix/master-wait 2026-11-24 06:33:39 -08:00
Ping Qiu 274ba9c444 Merge pull request #540 from seaweedfs/test/537-csi-private-lock-dir
test: isolate CSI volume subprocess lock directories
2026-11-24 06:33:23 -08:00
Ping Qiu d218e36707 Merge pull request #539 from seaweedfs/test/537-durable-loaded-deadline
test(durable): allow loaded-host setup in plain detach test
2026-11-24 01:18:19 -08:00
pingqiu aba6f601f3 test: allow upload overlap startup on loaded hosts 2026-11-24 00:56:58 -08:00
pingqiu 6411ce74e9 test: give CSI volume subprocesses private lock directories 2026-11-24 00:54:30 -08:00
pingqiuandClaude Opus 5.5 2a80101273 fix: one owner for the startup bound; a failing granted attach is bounded
The host owns the startup wait's one bound: it keeps the wait's start and
opens the window at the first reply at or after it; the run of replies
(and the window) ends on a transport, credentials or identity refusal;
/status shows the same bound. The provider asks the host for the bound
given its own start, and checks it on the attach retry path too: a
granted attach that keeps failing no longer holds the lease for ever
without serving. An identity refusal ends on an accepted identity-checked
call (the run of replies restarts there) or after 30 s of replies with no
new identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:52:11 -08:00