Skip to content

Prevent or handle replacing unbootstrapped nodes #2447

Open
@mflendrich

Description

@mflendrich

Issue originally authored by tnozicka as #855

If a user or the AutomaticOrphanedNodeCleanup feature replaces a node that isn't bootstrapped yet, we get stuck with:

ERROR 2021-11-25 13:42:27,194 [shard 0] init - Bad configuration: replace-address and replace-address-first-boot are not allowed for seed nodes

The issue is that the operator doesn't know if scyllacluster is bootstrapped or not. We need to propagate the information into an API object so the operator can distinguish the case and generate a valid config.

There are also other places where we act based on readiness while we need to assess only if it's bootstrapped. Given that we don't correctly handle cases where the node is not ready, yet it's bootstrapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/from-migrationIndicates that this issue is a copy of a corresponding issue mentioned in the description.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions