Comment 1 for bug 1618510

Revision history for this message
Pradeep Kilambi (pkilambi) wrote : Re: unable to reach redis service

This is what Alex(akrzos) was seeing in build 08-29.1

listen redis
  bind 172.16.0.12:6379 transparent
  balance first
  option tcp-check
  tcp-check send PING\r\n
  tcp-check expect string +PONG
  tcp-check send info\ replication\r\n
  tcp-check expect string role:master
  tcp-check send QUIT\r\n
  tcp-check expect string +OK
  server overcloud-controller-0 172.16.0.24:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-1 172.16.0.17:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-2 172.16.0.31:6379 check fall 5 inter 2000 rise 2

[root@overcloud-controller-0 ~]# grep "redis" /etc/gnocchi/gnocchi.conf
coordination_url = redis://:XXXX@172.16.0.12:6379/
[root@overcloud-controller-0 ~]# redis-cli -h 172.16.0.12 -p 6379
172.16.0.12:6379> ping
Error: Server closed the connection
172.16.0.12:6379> auth XXXX
Error: Server closed the connection
172.16.0.12:6379> exit
[root@overcloud-controller-0 ~]# redis-cli -h 172.16.0.17-p 6379
172.16.0.17:6379> auth XXXX
OK
172.16.0.17:6379> ping
PONG
172.16.0.17:6379>

[root@overcloud-controller-1 ~]# netstat -tulpn | grep 6379
tcp 0 0 172.16.0.17:6379 0.0.0.0:* LISTEN 19512/redis-server
tcp 0 0 172.16.0.12:6379 0.0.0.0:* LISTEN 15449/haproxy