Bug 1348303

Summary: HAProxy redis config is missing AUTH option
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: rhosp-directorAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED DUPLICATE QA Contact: Omri Hochman <ohochman>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: bperkins, dbecker, jslagle, mburns, morazi, rhel-osp-director-maint
Target Milestone: ga   
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-13 21:17:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2016-06-20 18:35:55 UTC
Description of problem:
HAProxy redis config is missing AUTH option.

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-5.0.0-0.20160609160634.8027ae2.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy overcloud
2. Check HAProxy config

Actual results:
[root@overcloud-controller-2 heat-admin]# grep -A13 redis /etc/haproxy/haproxy.cfg 
listen redis
  bind 10.0.0.10: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 10.0.0.12:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-1 10.0.0.14:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-2 10.0.0.13:6379 check fall 5 inter 2000 rise 2

Expected results:
the config also contains a tcp-check connect directive and an AUTH option, e.g:
listen redis
  bind 10.0.0.10:6379 
  balance first
  option tcp-check
  tcp-check connect
  tcp-check send AUTH\ examplepassword\r\n
  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 10.0.0.12:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-1 10.0.0.14:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-2 10.0.0.13:6379 check fall 5 inter 2000 rise 2

Additional info:

Comment 2 Pradeep Kilambi 2016-09-13 21:17:20 UTC

*** This bug has been marked as a duplicate of bug 1371657 ***