Bug 1322857 - [Docs][Director] Add Redis configuration to the external load balancer documentation
Summary: [Docs][Director] Add Redis configuration to the external load balancer docume...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Dan Macpherson
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks: 1325817
TreeView+ depends on / blocked
 
Reported: 2016-03-31 13:05 UTC by Marius Cornea
Modified: 2017-02-24 01:39 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-24 01:39:36 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Marius Cornea 2016-03-31 13:05:00 UTC
Description of problem:
In OSP8 we introduced authentication for the Redis service so we need to add the following to the docs:

1. Passing Redis password as a parameter during the deployment. Build an environment file or add the following parameter to an existing environment:

parameter_defaults:
  RedisPassword: 'examplepassword'

By default the password is generated by the tripleoclient so you cannot know it to build the loadbalancer configuration before the deployment.

2. An example HAProxy configuration for Redis:
listen redis
  bind 172.16.20.249: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 172.16.20.150:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-1 172.16.20.151:6379 check fall 5 inter 2000 rise 2
  server overcloud-controller-2 172.16.20.152:6379 check fall 5 inter 2000 rise 2


Note the ' tcp-check send AUTH\ examplepassword\r\n' line where the password needs to match the RedisPassword parameter.

Comment 3 Marius Cornea 2017-02-23 09:34:21 UTC
Looks good. Thank you, Dan!

Comment 4 Dan Macpherson 2017-02-24 01:39:36 UTC
Thanks, Marius!


Note You need to log in before you can comment on or make changes to this bug.