From 1bc905e7b877dfc70db23aee75e8fced610a087b Mon Sep 17 00:00:00 2001 From: pingqiu-cpu Date: Thu, 3 Dec 2026 16:36:49 -0800 Subject: [PATCH] docs: read installed TLS unit independently of root cwd (#1024) Merge note (batch b9; pull_request_target spec-trace workflow has a startup_failure, so its checks run locally): - One Test run (47234365908) succeeded (go test (linux), process-level tests (real binaries)) on the integration tree b9d12608 = main d2f0fa54 + #1019 #1020 #1024 in this order; these squash merges reproduce that tree, verified after the last one. - spec-trace-check.sh and public-text-check.sh, run with main's scripts against this head and body: both exit 0. - Docs review ACCEPT on 967b55ef: the TLS override reads the installed unit template by absolute path, so it works from any directory and its guard still fails closed; the 30 s grant and 50 s barrier figures match the code defaults. --- seaweed-block/docs/operations-manual.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/seaweed-block/docs/operations-manual.md b/seaweed-block/docs/operations-manual.md index 05564ec98c..f3599ad789 100644 --- a/seaweed-block/docs/operations-manual.md +++ b/seaweed-block/docs/operations-manual.md @@ -923,15 +923,16 @@ Then start blockmaster as in section 2. Check `cluster format-level` and `ops wo ### Start the holder and guest on A `volume start` writes the instance settings but has no flags for the holder's mTLS credentials. Before its first -start, on **both** hosts add those flags to a per-instance systemd override. Run this from the release repository -installed in section 1; it copies the shipped `ExecStart` unchanged except for appending the three TLS flags. -The settings file's `--layout-id` and other extra arguments remain in use: +start, on **both** hosts add those flags to a per-instance systemd override. The root shell from `sudo -i` +starts in root's home, so this block reads the installed template by its absolute path. It copies the shipped +`ExecStart` unchanged except for appending the three TLS flags. The settings file's `--layout-id` and other extra +arguments remain in use: ```sh mkdir -p /etc/systemd/system/sw-blockvolume@v1.service.d -test "$(grep -c '^ \$SWB_VOLUME_EXTRA_ARGS$' deploy/systemd/sw-blockvolume@.service)" = 1 && +test "$(grep -c '^ \$SWB_VOLUME_EXTRA_ARGS$' /etc/systemd/system/sw-blockvolume@.service)" = 1 && { printf '[Service]\nExecStart=\n'; - sed -n '/^ExecStart=/,/^ \$SWB_VOLUME_EXTRA_ARGS$/p' deploy/systemd/sw-blockvolume@.service | + sed -n '/^ExecStart=/,/^ \$SWB_VOLUME_EXTRA_ARGS$/p' /etc/systemd/system/sw-blockvolume@.service | sed 's|^ \$SWB_VOLUME_EXTRA_ARGS$| $SWB_VOLUME_EXTRA_ARGS --master-tls-cert /etc/sw-block/tls/node.crt --master-tls-key /etc/sw-block/tls/node.key --master-ca /etc/sw-block/tls/ca.crt|'; } > /etc/systemd/system/sw-blockvolume@v1.service.d/master-tls.conf systemctl daemon-reload