Skip to content

Blockstor migration guide scales piraeus-operator in a fixed namespace and never scales it back #813

Open

Description

@kvaps

content/en/docs/next/storage/blockstor-migration.md (branch docs/blockstor-storage-backend, #667) scales the operator down with kubectl -n cozy-system scale deploy/piraeus-operator-controller-manager --replicas=0 (line 40).

On some installations the operator runs in cozy-linstor, not cozy-system, so the command fails and the operator keeps running and rebuilding what the next steps scale down.

The guide then says the operator stays on in external mode to keep driving the CSI (line 128), but no step scales it back to 1. The order matters: brought back before adoption, it starts linstor-csi-controller again and undoes the CSI freeze the guide asks for at step 6.

The guide also does not cover a cluster where the piraeus-operator HelmRelease was suspended by hand. A suspended release receives none of the chart changes the switch relies on.

Proposal: find the operator's namespace instead of assuming it, add a step that scales it back after adoption and says why not earlier, and check for a suspended HelmRelease before starting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions