Keystone: Move to SQL backend for Token storage
Using Memcache as storage backend for Tokens in Keystone, we hit this bug: https://bugs.launchpad.net/keystone/+bug/1242620 It generates some bugs when running Tempest framework and also failures in our QA process. After some investigation, it seems the bug will not be fixed in Havana and we should switch to SQL backend. Another work will be done also on the MySQL keystone tables to avoid useless replication for large scale deployments. Bug #379 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -35,10 +35,6 @@
|
||||
# (optional) Password to connect to keystone database
|
||||
# Default value in params
|
||||
#
|
||||
# [*memcache_servers*]
|
||||
# (optional) Memcached servers used by Keystone. Should be an array.
|
||||
# Default value in params
|
||||
#
|
||||
# [*ks_admin_email*]
|
||||
# (optional) Email address of admin user in Keystone
|
||||
# Default value in params
|
||||
@@ -333,7 +329,6 @@ class cloud::identity (
|
||||
$keystone_db_host = $os_params::keystone_db_host,
|
||||
$keystone_db_user = $os_params::keystone_db_user,
|
||||
$keystone_db_password = $os_params::keystone_db_password,
|
||||
$memcache_servers = $os_params::memcache_servers,
|
||||
$ks_admin_email = $os_params::ks_admin_email,
|
||||
$ks_admin_password = $os_params::ks_admin_password,
|
||||
$ks_admin_tenant = $os_params::ks_admin_tenant,
|
||||
@@ -398,7 +393,6 @@ class cloud::identity (
|
||||
$log_facility = $os_params::log_facility,
|
||||
$use_syslog = $os_params::use_syslog,
|
||||
$ks_token_expiration = $os_params::ks_token_expiration,
|
||||
$ks_token_driver = 'keystone.token.backends.memcache.Token'
|
||||
){
|
||||
|
||||
# Disable twice logging if syslog is enabled
|
||||
@@ -422,9 +416,7 @@ class cloud::identity (
|
||||
debug => $debug,
|
||||
idle_timeout => 60,
|
||||
log_facility => $log_facility,
|
||||
memcache_servers => $memcache_servers,
|
||||
sql_connection => "mysql://${encoded_user}:${encoded_password}@${keystone_db_host}/keystone",
|
||||
token_driver => $ks_token_driver,
|
||||
token_provider => 'keystone.token.providers.uuid.Provider',
|
||||
use_syslog => $use_syslog,
|
||||
verbose => $verbose,
|
||||
|
@@ -28,7 +28,6 @@ describe 'cloud::identity' do
|
||||
:keystone_db_host => '10.0.0.1',
|
||||
:keystone_db_user => 'keystone',
|
||||
:keystone_db_password => 'secrete',
|
||||
:memcache_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:ks_admin_email => 'admin@openstack.org',
|
||||
:ks_admin_password => 'secrete',
|
||||
:ks_admin_tenant => 'admin',
|
||||
@@ -90,8 +89,7 @@ describe 'cloud::identity' do
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:use_syslog => true,
|
||||
:ks_token_expiration => '3600',
|
||||
:api_eth => '10.0.0.1',
|
||||
:ks_token_driver => 'keystone.token.backends.memcache.Token' }
|
||||
:api_eth => '10.0.0.1' }
|
||||
end
|
||||
|
||||
it 'configure keystone server' do
|
||||
@@ -103,9 +101,7 @@ describe 'cloud::identity' do
|
||||
:verbose => true,
|
||||
:idle_timeout => '60',
|
||||
:log_facility => 'LOG_LOCAL0',
|
||||
:memcache_servers => ['10.0.0.1','10.0.0.2'],
|
||||
:sql_connection => 'mysql://keystone:secrete@10.0.0.1/keystone',
|
||||
:token_driver => 'keystone.token.backends.memcache.Token',
|
||||
:token_provider => 'keystone.token.providers.uuid.Provider',
|
||||
:use_syslog => true,
|
||||
:bind_host => '10.0.0.1',
|
||||
|
Reference in New Issue
Block a user