kubeblocks icon indicating copy to clipboard operation
kubeblocks copied to clipboard

[BUG] camellia cluster config redis-sentinel set error proxy upstream not available

Open JashBook opened this issue 11 months ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. create camellia cluster
  2. create redis-sentinel cluster
kubectl get cluster
NAME              CLUSTER-DEFINITION     VERSION                       TERMINATION-POLICY   STATUS    AGE
camellia-ogmhuz   camellia-redis-proxy   camellia-redis-proxy-1.2.26   Halt                 Running   66m
redis-dntsko      redis                  redis-7.0.6                   Delete               Running   3h5m

kubectl get pod
NAME                                            READY   STATUS    RESTARTS   AGE
camellia-ogmhuz-proxy-0                         1/1     Running   0          12m
camellia-ogmhuz-proxy-1                         1/1     Running   0          12m
redis-dntsko-redis-0                            3/3     Running   0          3h5m
redis-dntsko-redis-1                            3/3     Running   0          3h5m
redis-dntsko-redis-sentinel-0                   1/1     Running   0          3h5m
redis-dntsko-redis-sentinel-1                   1/1     Running   0          3h5m
redis-dntsko-redis-sentinel-2                   1/1     Running   0          3h5m

kubectl get svc
NAME                                    TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                          AGE
camellia-ogmhuz-proxy-headless          ClusterIP   None             <none>        6380/TCP,16379/TCP                               66m
camellia-ogmhuz-proxy-proxy             ClusterIP   10.107.167.6     <none>        6380/TCP,16379/TCP                               66m
redis-dntsko-redis                      ClusterIP   10.111.81.6      <none>        6379/TCP                                         3h6m
redis-dntsko-redis-headless             ClusterIP   None             <none>        6379/TCP,9121/TCP,3501/TCP,50001/TCP             3h6m
redis-dntsko-redis-sentinel             ClusterIP   10.99.176.60     <none>        26379/TCP                                        3h6m
  1. edit config proxy-properties-config
multi.tenant.route.config=[{"name":"route3", "password": "passwd3", "route":{"type": "simple","operation": {"read": "redis://mhr6kknj@redis-dntsko-redis:6379","type": "rw_separate","write": "redis-sentinel://mhr6kknj@redis-dntsko-redis:6379,redis-dntsko-redis-sentinel:16379/master"}}}]
  1. See error
kubectl exec -it redis-dntsko-redis-0 bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Defaulted container "redis" out of: redis, metrics, lorry
root@redis-dntsko-redis-0:/# redis-cli -h camellia-ogmhuz-proxy-proxy.default.svc.cluster.local -p 6380 -a passwd3
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
camellia-ogmhuz-proxy-proxy.default.svc.cluster.local:6380> set test3 3

(error) ERR proxy upstream not available
(1.68s)
camellia-ogmhuz-proxy-proxy.default.svc.cluster.local:6380> 

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

JashBook avatar Mar 05 '24 05:03 JashBook

This issue has been marked as stale because it has been open for 30 days with no activity

github-actions[bot] avatar Apr 08 '24 00:04 github-actions[bot]