Open shubham-cmyk opened 10 months ago
i suspect whether we have to restore the nodes.conf
also or not ?
because we are not doing that right now in scripts.
Here is the scripts that were used : https://github.com/OT-CONTAINER-KIT/redis-operator/tree/master/scripts While backup the data.
Example manifest to be used are here https://github.com/OT-CONTAINER-KIT/redis-operator/tree/master/example/v1beta2/backup_restore
What version of redis operator are you using?
Redis-operator logs :
{"level":"error","ts":1694770207.2931252,"logger":"controller_redis","msg":"Could not execute command","Request.RedisManager.Namespace":"default","Request.RedisManager.Name":"redis-cluster","Command":["redis-cli","--cluster","create","redis-cluster-leader-0.redis-cluster-leader-headless.default.svc:6379","redis-cluster-leader-1.redis-cluster-leader-headless.default.svc:6379","redis-cluster-leader-2.redis-cluster-leader-headless.default.svc:6379","--cluster-yes"],"Output":"[ERR] Node redis-cluster-leader-0.redis-cluster-leader-headless.default.svc:6379 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.\n","Error":"","error":"command terminated with exit code 1","stacktrace":"github.com/OT-CONTAINER-KIT/redis-operator/k8sutils.ExecuteRedisClusterCommand\n\t/workspace/k8sutils/redis.go:115\ngithub.com/OT-CONTAINER-KIT/redis-operator/controllers.(RedisClusterReconciler).Reconcile\n\t/workspace/controllers/rediscluster_controller.go:183\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.0/pkg/internal/controller/controller.go:227"}
redis-operator version: v0.15.1
Does this issue reproduce with the latest release? Yes.
What operating system and processor architecture are you using (
kubectl version
)?kubectl version
OutputWhat did you do?
Tried to restore redis-cluster From script provided here : https://github.com/OT-CONTAINER-KIT/redis-operator/tree/master/example/v1beta2/backup_restore
What did you expect to see?
Restore should have been done properly
What did you see instead?