You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to upgrade my CassandraDatacenter from version 4.1.2 to 5.0.2 I got this webhook validation error:
admission webhook "vcassandradatacenter.kb.io" denied the request: CassandraDatacenter write rejected, attempted to use unsupported Cassandra version '5.0.2'
The curious thing is I downgraded to cass-operator:v1.22.1 and the operation was allowed
What did you expect to happen?
the cluster to be automaticly updated to Cassandra version 5.0.2
How can we reproduce it (as minimally and precisely as possible)?
from a CassandraDatacenter with serverVersion: 4.1.2, edit it to serverVersion: 5.0.2
You probably have two installations of cass-operator in the same cluster and the validation was failed by an older one. "Downgrading" it probably overwrote the older webhook's priority.
We had a legacy cass-operator installation in another namespace, and it seems its ValidatingWebhookConfiguration was still active and applied to all datacenters regardless of the namespace.
This appears to have caused conflicts between the different cass-operator versions running in different Kubernetes namespaces.
After manually removing the legacy ValidatingWebhookConfiguration, I was able to successfully upgrade my cluster.
Yeah, there are some cases in Kubernetes which makes the per-namespace installation of operators a bit tricky to manage. If the cluster can use a cluster-scoped installation, I'd recommend that.
What happened?
When trying to upgrade my CassandraDatacenter from version 4.1.2 to 5.0.2 I got this webhook validation error:
The curious thing is I downgraded to cass-operator:v1.22.1 and the operation was allowed
What did you expect to happen?
the cluster to be automaticly updated to Cassandra version 5.0.2
How can we reproduce it (as minimally and precisely as possible)?
from a CassandraDatacenter with serverVersion: 4.1.2, edit it to serverVersion: 5.0.2
cass-operator:v1.22.4
cass-operator version
v1.22.4
Kubernetes version
v1.30.6
Method of installation
kubectl edit CassandraDatacenter
Anything else we need to know?
No response
┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: CASS-84
The text was updated successfully, but these errors were encountered: