Closed mpihlak closed 1 year ago
@mpihlak why do we do a grep, isn't exit status 1
not returned when ping fails?
@mpihlak why do we do a grep, isn't exit status
1
not returned when ping fails?
redis-cli
is not returning proper exit status in this case:
/data $ redis-cli -h localhost -p 6379 ping --user pinger --pass pingpass --no-auth-warning
(error) NOAUTH Authentication required.
/data $ echo $?
0
There's also this issue open on the Redis side and some other issues mentioning error statuses not properly returned.
Thanks @mpihlak Could you merge with master to fix CI?
Rebased to master and fixed a couple of tests. Should be good now.
Fixes always succeeding liveness probe described in #575
Changes proposed on the PR:
PING
command toredis-cli
after credentials to avoid auth failuresPONG
response, so that error status is properly returned