Bug 1958588 - memcached_servers was dropped and thus leaves no way to configure keystone memcache during deploy.
Summary: memcached_servers was dropped and thus leaves no way to configure keystone me...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-tripleo
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Emilien Macchi
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-09 00:25 UTC by Vincent S. Cojot
Modified: 2021-12-09 20:19 UTC (History)
6 users (show)

Fixed In Version: puppet-tripleo-11.5.0-1.20210512083304.f716ef5.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 20:19:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 790423 0 None NEW Automatically set memcache_servers for keystone cache 2021-05-10 11:45:35 UTC
Red Hat Issue Tracker OSP-3707 0 None None None 2021-11-18 11:31:56 UTC
Red Hat Product Errata RHBA-2021:3762 0 None None None 2021-12-09 20:19:28 UTC

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


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