Bug 1958588

Summary: memcached_servers was dropped and thus leaves no way to configure keystone memcache during deploy.
Product: Red Hat OpenStack Reporter: Vincent S. Cojot <vcojot>
Component: puppet-tripleoAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: jjoyce, jschluet, ramishra, slinaber, tkajinam, tvignaud
Target Milestone: z7Keywords: Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-11.5.0-1.20210512083304.f716ef5.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 20:19:09 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 Vincent S. Cojot 2021-05-09 00:25:40 UTC
Description of problem:

In OSp13 and below, it used to be possible to ExtraConfig this in your templates:
   keystone::memcache_servers: "%{hiera('memcached_servers')}"

e.g:
parameter_defaults:
  ExtraConfig:
    keystone::cache_enabled: true
    keystone::memcache_servers: "%{hiera('memcached_servers')}"
    keystone::cache_backend: oslo_cache.memcache_pool
    keystone::token_caching: true

memcached_servers returned the proper URI list for either 1) or 3) controllers.

On OSP16.1, memcached_servers is no longer provided in hiera data, meaning the only way to configure memcached_servers for keystone is to explicitly provide the IPs:

parameter_defaults:
  ExtraConfig:
    keystone::cache_enabled: true
    keystone::cache_memcache_servers: 192.168.1.1:11211,192.168.1.2:11211,192.168.1.3:11211
    keystone::cache_backend: oslo_cache.memcache_pool
    keystone::token_caching: true

So, unless you're using fixed IPs, there is no way to know the Memcached IPs -before- deployment, thus requiring a 2nd deploy/stack update to set the value of keystone::cache_memcache_servers.

The closest hiera record would be memcached_node_ips but it doesn't include the :11211 part and would need processing before it could be used.

Please bring back hiera('memcached_servers' so we can use it in our templates with a single deploy!

Comment 1 Vincent S. Cojot 2021-05-09 00:46:16 UTC
[root@osp16d /etc/puppet]# rpm -q puppet-tripleo
puppet-tripleo-11.5.0-1.20201114030109.el8ost.noarch

Comment 3 Vincent S. Cojot 2021-05-29 23:32:42 UTC
In what z-stream for 16.1 will your patch be found? Is it going to make 16.1.6?

Comment 22 errata-xmlrpc 2021-12-09 20:19:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3762