Specify memcache_pool.Token as keystone token driver
Keystone team has a strong warning in their documentation: http://docs.openstack.org/developer/keystone/configuration.html to use keystone.token.persistence.backends.memcache_pool.Token instead of keystone.token.persistence.backends.memcache.Token specifically when deploying Keystone under eventlet. Change-Id: I674ee3440bb26af942db2859ed6f8512cbc22fee Partial-Bug: #1405549
This commit is contained in:
parent
e06e2f08f8
commit
ae7e0e1d37
@ -37,7 +37,7 @@
|
||||
# [cache_dir] Directory created when token_provider is pki. Optional.
|
||||
# Defaults to /var/cache/keystone.
|
||||
# [memcache_servers] List of memcache servers/ports. Optional. Used with
|
||||
# token_driver keystone.token.backends.memcache.Token. Defaults to false.
|
||||
# token_driver keystone.token.persistence.backends.memcache_pool.Token. Defaults to false.
|
||||
# [enabled] If the keystone services should be enabled. Optional. Default to true.
|
||||
# [sql_connection] Url used to connect to database.
|
||||
# [idle_timeout] Timeout when db connections should be reaped.
|
||||
|
@ -288,7 +288,7 @@ describe 'keystone' do
|
||||
{
|
||||
'admin_token' => 'service_token',
|
||||
'memcache_servers' => [ 'SERVER1:11211', 'SERVER2:11211' ],
|
||||
'token_driver' => 'keystone.token.backends.memcache.Token'
|
||||
'token_driver' => 'keystone.token.persistence.backends.memcache_pool.Token'
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -202,7 +202,7 @@ class openstack::keystone (
|
||||
|
||||
if $memcache_servers {
|
||||
$memcache_servers_real = suffix($memcache_servers, inline_template(":<%= @memcache_server_port %>"))
|
||||
$token_driver = 'keystone.token.backends.memcache.Token'
|
||||
$token_driver = 'keystone.token.persistence.backends.memcache_pool.Token'
|
||||
} else {
|
||||
$memcache_servers_real = false
|
||||
$token_driver = 'keystone.token.backends.sql.Token'
|
||||
|
Loading…
Reference in New Issue
Block a user