Skip to content

dataCapacity couldn't be changed #154

@egorpoltorackiy

Description

@egorpoltorackiy

Bug Report

What did you do?
I've installed casskop version 2.2.6 and after it succesfully installed, tried change dataCapacity value by editing cassandra cluster object (expand from 10 to 15, for example)

What did you expect to see?
I supposed it'll change value and trigger pvc to update it's CAPACITY

What did you see instead? Under which circumstances?
I see that dataCapacity succesfully changed in cassandra cluster values, but pvc remains the same
in operator logs:
[reconcile.go:149::github.com/cscetbon/casskop/controllers/cassandracluster.(*CassandraClusterReconciler).CheckNonAllowedChanges()] Aug 5 12:04:01.582 [W] [cluster:demo] [dcName:dc1] The Operator has refused the change on DataCapacity from [10Gi] to NewValue[15Gi]

Environment

  • casskop version: 2.2.6
  • go version: go1.21.0
  • Kubernetes version information: v1.29.3
  • Kubernetes cluster kind:
    kubectl version WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-14T09:47:38Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"darwin/arm64"} Kustomize Version: v5.0.1 Server Version: version.Info{Major:"1", Minor:"29", GitVersion:"v1.29.3+k3s1", GitCommit:"8aecc26b0f167d5e9e4e9fbcfd5a471488bf5957", GitTreeState:"clean", BuildDate:"2024-03-25T23:07:24Z", GoVersion:"go1.21.8", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (1.27) and server (1.29) exceeds the supported minor version skew of +/-1

  • Cassandra version: Cassandra 4.1.4

Possible Solution

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions