From 2ad77a532c47e440bb9a757202ac509fac2879e0 Mon Sep 17 00:00:00 2001 From: danehans Date: Tue, 2 Jul 2013 18:13:49 +0000 Subject: [PATCH] Add support for SQL idle timeout. Previously, keystone logged frequent database-has-gone-away errors. This patch adds a parameter that can configure the idle_timeout which can be decreased to reduce these errors. More information on this issue can be found here: https://bugs.launchpad.net/nova/+bug/1007027 for more details. Change-Id: I1731d6ef1138e82965148fdfc1fe07301c873d47 --- manifests/keystone.pp | 3 +++ spec/classes/openstack_keystone_spec.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/manifests/keystone.pp b/manifests/keystone.pp index 97396d6..43a852d 100644 --- a/manifests/keystone.pp +++ b/manifests/keystone.pp @@ -6,6 +6,7 @@ # === Parameters # # [db_host] Host where DB resides. Optional. Defaults to 127.0.0.1.. +# [idle_timeout] Timeout to reap SQL connections. Optional. Defaults to '200'. # [keystone_db_password] Password for keystone DB. Required. # [keystone_admin_token]. Auth token for keystone admin. Required. # [admin_email] Email address of system admin. Required. @@ -52,6 +53,7 @@ class openstack::keystone ( $quantum_user_password, $public_address, $db_host = '127.0.0.1', + $idle_timeout = '200', $swift_user_password = false, $db_type = 'mysql', $db_user = 'keystone', @@ -184,6 +186,7 @@ class openstack::keystone ( verbose => $verbose, debug => $verbose, bind_host => $bind_host, + idle_timeout => $idle_timeout, catalog_type => 'sql', admin_token => $admin_token, enabled => $enabled, diff --git a/spec/classes/openstack_keystone_spec.rb b/spec/classes/openstack_keystone_spec.rb index 7038925..4911a13 100644 --- a/spec/classes/openstack_keystone_spec.rb +++ b/spec/classes/openstack_keystone_spec.rb @@ -34,6 +34,7 @@ describe 'openstack::keystone' do :verbose => 'False', :debug => 'False', :bind_host => '0.0.0.0', + :idle_timeout => '200', :catalog_type => 'sql', :admin_token => 'token', :enabled => true,