Bug 1287865 - [RFE][keystone]Using "memcached" as the default token persistence driver in Keystone
Summary: [RFE][keystone]Using "memcached" as the default token persistence driver in K...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Adam Young
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-02 21:16 UTC by Pablo Caruana
Modified: 2019-10-10 10:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Cause: Consequence: Fix: Result:
Clone Of:
Environment:
Last Closed: 2016-03-19 22:44:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pablo Caruana 2015-12-02 21:16:51 UTC
Description of problem:

On an Overcloud deployed with RHOSP7 (using Director), I see that Keystone is configured to store tokens in MySQL (token persistence driver), instead of "memcached".

As Keystone tokens have an expiration time (TTL). MySQL semantics do not support the concept of expiration. That means that expired Keystone tokens have to be manually deleted from MySQL by using a "cron" script. However, "memcached" semantics support the concept of expiration (TTL) natively and is much better suited as a token persistence backend than MySQL.

 The architecture deployed by Director uses MySQL as a token persistence driver for Keystone, instead of "memcached".

Upstream OpenStack Keystone configuration reference explicitly mentions "memcached" as a token persistence driver.

This is for changing the default backend for Keystone tokens from MySQL to memcached? Or at least, offer the option to configure Keystone to work on that way.

Comment 4 Adam Young 2016-01-20 19:49:28 UTC
Memcache will not be the default.  Memcache has been tested upstream and the results are unfavorable.  With UUID tokens, the failure mode is acceptable:  often valid tokens will show up as invalid.  With PKI tokens, revoked tokens can be "unrevoked" if they are dropped from Memcache.

The token format for future use is Fernet.  There is work happening upstream to make Fernet the default, and that will be the recommended format to use.  Fernet does not require persistence for tokens.

Comment 8 Adam Young 2016-03-19 22:44:39 UTC
Note that this review is abandoned.

Abandoned refarch does not use memcached for keystone tokens


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