Orange-OpenSource / casskop

This Kubernetes operator automates the Cassandra operations such as deploying a new rack aware cluster, adding/removing nodes, configuring the C* and JVM parameters, upgrading JVM and C* versions, and many more...
https://orange-opensource.github.io/casskop/
Apache License 2.0
183 stars 54 forks source link

no matches for kind "CassandraBackup" in version "db.orange.com/v1alpha1" #272

Closed ThaSami closed 4 years ago

ThaSami commented 4 years ago

Question

What did you do? applying https://orange-opensource.github.io/casskop/docs/5_operations/3_5_backup_restore

What did you expect to see? The resource to work

What did you see instead? Under which circumstances? no matches for kind "CassandraBackup" in version "db.orange.com/v1alpha1"

Environment

Additional context how to get backup works? + the documentation there is not helpful at all. if u can provide an example to backup in local storage/gcp that would be great

fdehay commented 4 years ago

hello @ThaSami , the backup functionnalities are not yet merged, it should be anytime today. It comes with Version 1.0.0. You are testing 0.5.6 Sorry there is a little time delay betwwen the documentation and the code. Regarding the documentation, the backup will not work with local storage, only gcp or s3. I will tell you when you can get v1.0.0

fdehay commented 4 years ago

You can see the PR/ https://github.com/Orange-OpenSource/casskop/pull/269

ThaSami commented 4 years ago

@fdehay Thanks for answering. would deleting the old operator cause any issues to Cassandra Cluster when upgrading to v1.0.0?

fdehay commented 4 years ago

Hi @ThaSami, we have released V1 so you can change the image, no problem on the operator side.

ThaSami commented 4 years ago

Thanks @fdehay
any plans to support local storage soon? as it is a very expensive process to take backups to the cloud both on bandwidth/cost

cscetbon commented 4 years ago

@ThaSami you can already use an s3 provider on your local cluster similar to Minio.

ThaSami commented 4 years ago

Cool, thank you.

drkhosla commented 4 years ago

I am using CentOS 8.2 and Kubernetes 1.19.3. While installing Casskop 1.0.0, I give following commands.

kubectl apply -f https://raw.githubusercontent.com/OrangeOpenSource/casskop/master/deploy/crds/db.orange.com_cassandraclusters_crd.yaml
helm install casskop --namespace=cassandra orange-incubator/cassandra-operator

Casskop pod give error CrashLoopBackOff and log show alternating two errors

time="2020-10-19T05:46:12Z" level=error msg="no matches for kind \"CassandraRestore\" in version \"db.orange.com/v1alpha1\"manager exited non-zero"

time="2020-10-19T05:46:34Z" level=error msg="no matches for kind \"CassandraBackup\" in version \"db.orange.com/v1alpha1\"manager exited non-zero"

I don't know how to resolve it

cscetbon commented 4 years ago

Sorry @drkhosla there are 2 news CRDs to install along that one and we need to add them to the documentation. You need to install all CRDS in https://github.com/Orange-OpenSource/casskop/tree/v1.0.0-release/deploy/crds/ (not the subdirectory)

drkhosla commented 4 years ago

Sorry @drkhosla there are 2 news CRDs to install along that one and we need to add them to the documentation. You need to install all CRDS in https://github.com/Orange-OpenSource/casskop/tree/v1.0.0-release/deploy/crds/ (not the subdirectory)

Thanks now it is working after adding two other crds of backup and restore..

chingandy commented 3 years ago

@cscetbon Is it possible to provide an example for how to configure the backup definition with a minio local installation? I have been trying to figure this out for more than two days and still couldn't make it works. Thanks

der on your local cluster