You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script expects the Sentinel service name to be rfs-redis so it only works if RedisFailover is named redis. The script won't initiate the failover when the RedisFailover is named anything else.
Steps to reproduce the behaviour
Create a RedisFailover with any name other than redis, for example:
kubectl exec into a Redis pod and call the shutdown script in the same way that the preStop lifecycle hook calls it:
$> kubectl exec -it rfr-redisfailover-0 -- /bin/sh /redis-shutdown/shutdown.sh
Could not connect to Redis at -p:6379: Name does not resolve
OK
sh: 10.66.10.71: unknown operand
The redis-cli save works since it's using localhost, but the calls to Sentinel fail. The errors are because the Sentinel service ENV vars the script is using are nil, for example:
/data $ echo $RFS_REDIS_SERVICE_HOST
# no output
Environment
Redis Operator version: v1.0.0
Kubernetes version: v1.15.9
The text was updated successfully, but these errors were encountered:
Thank you for providing this operator! I ran into an issue that I hope can be resolved.
Expected behaviour
The default
shutdown.sh
script varies the Sentinel service name based on the name of theRedisFailover
.Actual behaviour
The script expects the Sentinel service name to be
rfs-redis
so it only works ifRedisFailover
is namedredis
. The script won't initiate the failover when theRedisFailover
is named anything else.Steps to reproduce the behaviour
RedisFailover
with any name other thanredis
, for example:kubectl exec
into a Redis pod and call the shutdown script in the same way that thepreStop
lifecycle hook calls it:The
redis-cli save
works since it's usinglocalhost
, but the calls to Sentinel fail. The errors are because the Sentinel service ENV vars the script is using are nil, for example:Environment
v1.0.0
v1.15.9
The text was updated successfully, but these errors were encountered: