The migration runbook freezes CSI and stops LINSTOR before blockstor
adopts the volumes, and repoints CSI only after adoption converges.
One backend flip cannot express that order: piraeus-operator goes to
external mode at once, deletes linstor-controller and repoints
linstor-csi before a single volume is adopted.
blockstorMigration splits the switch into steps. Under hold and adopt
every piraeus object renders exactly as under backend linstor, so
piraeus-operator, which keeps running as in blockstor's runbook, finds
LINSTOR's shape and keeps linstor-csi on LINSTOR until adoption has
converged. It does not undo the freeze either: it applies its
Deployments without a replica count, since the LinstorCluster sets
none, so linstor-controller and linstor-csi-controller stay at zero.
Keeping the operator up rather than stopping it also keeps its
validating webhooks served, so the release passes them at every step
without relaxing their failurePolicy.
hold also keeps the blockstor controller at zero replicas until the
converted manifests are in: a scale by hand did not survive the next
upgrade. Clearing the value is the only step that changes piraeus.
Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>