From 56a87920e1090ac5a1aa71453527238ca8ea13d0 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 27 Nov 2026 21:05:03 +0100 Subject: [PATCH] docs(linstor): apply the converted manifests server-side The hook no longer drops fields it does not set, but a hand-run server-side apply of ControllerConfig/default still would if the migration left its fields to kubectl-client-side-apply. Applying the manifests server-side under their own manager leaves nothing for such an upgrade to take over. Also say how to check the key ID while the controller is held at zero, where blockstor's own command prints nothing useful. Assisted-by: LLM Signed-off-by: Andrei Kvapil --- packages/system/linstor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/linstor/README.md b/packages/system/linstor/README.md index f2b452457..cd16fb45b 100644 --- a/packages/system/linstor/README.md +++ b/packages/system/linstor/README.md @@ -40,7 +40,7 @@ Run each step below as its own change, never together with a Cozystack upgrade. 1. Do the runbook's pre-flight checks and write down the replica count of `deploy/linstor-csi-controller`. Freeze: scale `deploy/linstor-csi-controller` and then `deploy/linstor-controller` to 0. Take the dump and convert it now, with nothing left to write to the LINSTOR database, and apply the converted keyring Secret into `cozy-linstor`. 2. Set `storage: {backend: blockstor, acknowledgeBackendChange: blockstor, blockstorMigration: hold}` and wait for the `linstor` HelmRelease to become Ready. blockstor-apiserver and the satellites run, the controller is 0/0, and `ControllerConfig/default` names the passphrase Secret. Nothing of piraeus's own objects changes, and linstor-scheduler still points at linstor-controller. -3. Confirm the keyring's key ID matches the manifests, then apply the converted manifests. +3. Confirm that the `keyID` in the keyring Secret's `keyring.json` matches `luksKey.keyID` in the manifests; `blockstor encryption list-passphrases` cannot tell here, it prints `encryption: unset` while the controller is at zero. Then apply the converted manifests server-side, `kubectl apply --server-side --field-manager=linstor-migrate -f `. `ControllerConfig/default` among them carries LINSTOR's cluster-wide DRBD options, and a client-side apply leaves them owned by `kubectl-client-side-apply`, which any later `kubectl apply --server-side` of that object, by whoever runs it, takes over and removes along with every field it does not name; the satellites then adjust every resource to the defaults on live connections. The release's own hook only merge-patches `passphraseSecretRef` and cannot do that, but a hand-run apply still could. 4. Set `blockstorMigration: adopt`. The controller starts; wait for adoption to converge as the runbook describes. 5. Remove `blockstorMigration`. `LinstorCluster` goes to external mode; the operator deletes linstor-controller, repoints linstor-csi at blockstor-apiserver and rolls its satellite pods. linstor-scheduler and linstor-gui are repointed at blockstor-apiserver in the same change. 6. Scale `linstor-csi-controller` back by hand to the count from step 1: the operator repoints it in step 5 but keeps the 0 it found, and nothing in the release sets it. Then run the runbook's verification.