-
Notifications
You must be signed in to change notification settings - Fork 247
Description
When attempting to deploy a redis database (redb) using Redis Enterprise Operator, db is stuck in pending state.
Steps followed:
-
Installed Redis operator via helm Ver 7.22.0-17
-
Deploy 3 node REC
cat < my-rec.yaml
apiVersion: "app.redislabs.com/v1"
kind: "RedisEnterpriseCluster"
metadata:
name: my-rec
spec:
nodes: 3
redisEnterpriseNodeResources:
limits:
cpu: 2000m
memory: 8Gi
requests:
cpu: 2000m
memory: 8Gi
EOF
kubectl apply -f my-rec.yaml -n redis
- Verified Cluster up and running
kubectl get rec -n redis
NAME NODES SHARDS VERSION STATE SPEC STATUS LICENSE STATE LICENSE EXPIRATION DATE AGE
my-rec 3 0/4 7.22.0-250 Running Valid Valid 2025-09-25T14:44:37Z 2m40s
- Create database
kubectl apply -n redis -f - <<EOF
apiVersion: app.redislabs.com/v1alpha1
kind: RedisEnterpriseDatabase
metadata:
name: mydb
spec:
memorySize: 1GB
EOF
- Database stuck in pending state
kubectl get redb -n redis
NAME VERSION PORT CLUSTER SHARDS STATUS SPEC STATUS AGE
mydb 7.4.2 my-rec pending Valid 31s
Log output from operator Pod: Getting 500 error
{"level":"info","ts":"2025-08-26T14:52:06.594Z","logger":"controller_redisenterprisedatabase","msg":"creating database secret","Namespace":"redis","Name":"mydb"}
{"level":"info","ts":"2025-08-26T14:52:06.602Z","logger":"controller_redisenterprisedatabase","msg":"created database secret","Namespace":"redis","Name":"mydb"}
{"level":"info","ts":"2025-08-26T14:52:06.618Z","logger":"controller_redisenterprisedatabase","msg":"updated database spec with database secret name","Namespace":"redis","Name":"mydb"}
{"level":"info","ts":"2025-08-26T14:52:06.741Z","logger":"controller_redisenterprisedatabase","msg":"creating database","Namespace":"redis","Name":"mydb"}
{"level":"info","ts":"2025-08-26T14:52:06.969Z","logger":"controller_redisenterprisedatabase","msg":"database created","Namespace":"redis","Name":"mydb","DatabaseUID":1}
{"level":"info","ts":"2025-08-26T14:52:06.974Z","logger":"controller_redisenterprisedatabase","msg":"database status updated with database UID","Namespace":"redis","Name":"mydb","DatabaseUID":1}
{"level":"info","ts":"2025-08-26T14:52:06.983Z","logger":"KubeAPIWarningLogger","msg":"metadata.finalizers: "finalizer.redisenterprisedatabases.app.redislabs.com": prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers"}
{"level":"info","ts":"2025-08-26T14:52:06.983Z","logger":"controller_redisenterprisedatabase","msg":"database updated with finalizer","Namespace":"redis","Name":"mydb","DatabaseUID":1}
{"level":"error","ts":"2025-08-26T14:52:07.066Z","logger":"controller_redisenterprisedatabase","msg":"failed to observe database state","Namespace":"redis","Name":"mydb","error":"could not get existing database from RedisEnterpriseCluster: could not get database shards from RS: Get Error https://my-rec:9443/v1/bdbs/1/shards. Status: 500","stacktrace":"github.com/RedisLabs/redis-enterprise-operator/pkg/controller/redb.(*ReconcileRedisEnterpriseDatabase).Reconcile\n\t/go/src/github.com/RedisLabs/redis-enterprise-operator/pkg/controller/redb/redisenterprisedatabase_controller.go:95\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/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/[email protected]/pkg/internal/controller/controller.go:227"}
{"level":"info","ts":"2025-08-26T14:52:08.806Z","logger":"controller_redisenterprisecluster","msg":"updating REC license status","Request.Namespace":"redis","Request.Name":"my-rec","license status":{"licenseState":"Valid","activationDate":"2025-08-26T14:44:37Z","expirationDate":"2025-09-25T14:44:37Z","shardsLimit":4,"shardsUsage":"1/4","features":["trial","bigstore"],"owner":"","flashShards":0,"flashShardsLimit":null,"ramShards":1,"ramShardsLimit":null}}
{"level":"info","ts":"2025-08-26T14:52:08.806Z","logger":"controller_redisenterprisecluster","msg":"updateREClusterResource: updating license status"}