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

Upgrading Operator from 1.10.2 to 1.10.3 if you have a cluster running will throw fatal error #1147

Open
jbiskur opened this issue Dec 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jbiskur
Copy link

jbiskur commented Dec 19, 2023

What happened?
When upgrading the operator from 1.10.2 to 1.10.3 it will start a rolling upgrade of your cassandra yaml configuration, but this will break the cluster as it sets the cluster name (which was broken in 1.10.2) and you will get this error: "Saved cluster name Test Cluster != configured name "

Did you expect to see something different?
It should either try to resolve it from the operator side or not update on existing clusters

How to reproduce it (as minimally and precisely as possible):
Get a cluster upp and running with 1.10.2, then upgrade the operator to 1.10.3

Environment
Kubernetes 1.27.7 on AKS

  • K8ssandra Operator version:
    1.10.3
  • Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.1", GitCommit:"4c9411232e10168d7b050c49a1b59f6df9d7ea4b", GitTreeState:"clean", BuildDate:"2023-04-14T13:14:41Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"darwin/arm64"}

Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.7", GitCommit:"07a61d861519c45ef5c89bc22dda289328f29343", GitTreeState:"clean", BuildDate:"2023-10-19T00:14:21Z", GoVersion:"go1.20.10", Compiler:"gc", Platform:"linux/amd64"}

  • Kubernetes cluster kind:
insert how you created your cluster: kops, bootkube, etc.
  • Manifests:
insert manifests relevant to the issue
  • K8ssandra Operator Logs:
insert K8ssandra Operator logs relevant to the issue here

Anything else we need to know?:

┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: K8OP-54

@jbiskur jbiskur added the bug Something isn't working label Dec 19, 2023
@jbiskur jbiskur changed the title Upgrading Operator from 1.0.2 to 1.0.3 if you have a cluster running will throw fatal error Upgrading Operator from 1.10.2 to 1.10.3 if you have a cluster running will throw fatal error Dec 19, 2023
@adejanovski
Copy link
Contributor

Hi, is the cluster using Cassandra 4.1.x ?
If so, there was indeed a bug in previous versions, and you need to put the "Test Cluster" cluster name explicitly in .spec.cassandra.clusterName so that it doesn't try to update the name to what it should be, but play nice with the former bug.

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
No open projects
Status: No status
Development

No branches or pull requests

2 participants