Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling down fails if RpcAddress is removed before decommission is done #261

Closed
burmanm opened this issue Jan 17, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@burmanm
Copy link
Contributor

burmanm commented Jan 17, 2022

What happened?
The decommission failed in the scale down, because the pod was removed before the decommission had finished. This is because the status of decommission compares the RPC_ADDRESS from EndpointState and that information might be removed before the node has finished.

This then causes the pod to be terminated because it was removed from the StatefulSet. I only saw this happen with 4.0.1, but I guess it could happen with other versions also.

Did you expect to see something different?
Detect correct decommission status before proceeding.

Data from decommissioned and alive node (TOKENS removed for proper visualization):

    {
      "DC": "dc2",
      "ENDPOINT_IP": "10.244.1.18",
      "HOST_ID": "403ef37a-4179-44e6-ab3e-1fe20e1f6ec3",
      "INTERNAL_ADDRESS_AND_PORT": "10.244.1.18:7000",
      "IS_ALIVE": "true",
      "LOAD": "70371.0",
      "NATIVE_ADDRESS_AND_PORT": "10.244.1.18:9042",
      "NET_VERSION": "12",
      "RACK": "r1",
      "RELEASE_VERSION": "4.0.1",
      "RPC_READY": "true",
      "SCHEMA": "2207c2a9-f598-3971-986b-2926e09e239d",
      "SSTABLE_VERSIONS": "big-nb",
      "STATUS_WITH_PORT": "LEFT,-8028340446623319586,1642697214009",
    },
    {
      "DC": "dc1",
      "ENDPOINT_IP": "10.244.2.17",
      "HOST_ID": "6e84945d-6203-416e-9d2f-b85b5a279d4a",
      "INTERNAL_ADDRESS_AND_PORT": "10.244.2.17:7000",
      "INTERNAL_IP": "10.244.2.17",
      "IS_ALIVE": "true",
      "LOAD": "80522.0",
      "NATIVE_ADDRESS_AND_PORT": "10.244.2.17:9042",
      "NET_VERSION": "12",
      "RACK": "r1",
      "RELEASE_VERSION": "4.0.1",
      "RPC_ADDRESS": "10.244.2.17",
      "RPC_READY": "true",
      "SCHEMA": "2207c2a9-f598-3971-986b-2926e09e239d",
      "SSTABLE_VERSIONS": "big-nb",
      "STATUS": "NORMAL,4638307320372049348",
      "STATUS_WITH_PORT": "NORMAL,4638307320372049348",
    }
@burmanm burmanm added the bug Something isn't working label Jan 17, 2022
@burmanm burmanm self-assigned this Jan 17, 2022
burmanm added a commit to burmanm/cass-operator that referenced this issue Jan 17, 2022
…P if RPC address is removed and with HostID if nothing else helps. Fixes k8ssandra#261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant