From 5491972b8e4a63bddee3fc9a288bfe5d479b83db Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Wed, 13 Jun 2018 19:11:36 +0100 Subject: [PATCH] Add missing Keystone options to registration of config This patchset adds missing Keystone options to registration of config, including timeout. This fix is similar to a recent Shipyard patchset [0] which aimed to solve the same issue but expands on it by following Nova patterns here: [1]. This also updates the sample config file which now includes the timeout option. [0] https://review.openstack.org/#/c/572563/ [1] http://git.openstack.org/cgit/openstack/nova/tree/nova/conf/cinder.py Change-Id: I4e52170e48dba7064c69f42f4cbbb7e54eae11a9 --- deckhand/conf/config.py | 17 +++++- etc/deckhand/deckhand.conf.sample | 99 ++++++++++++++++++++++++++++++- 2 files changed, 112 insertions(+), 4 deletions(-) diff --git a/deckhand/conf/config.py b/deckhand/conf/config.py index dd8ffbf7..5b89da74 100644 --- a/deckhand/conf/config.py +++ b/deckhand/conf/config.py @@ -49,16 +49,27 @@ def register_opts(conf): conf.register_group(barbican_group) conf.register_opts(barbican_opts, group=barbican_group) conf.register_opts(default_opts) + ks_loading.register_auth_conf_options(conf, group='keystone_authtoken') ks_loading.register_auth_conf_options(conf, group=barbican_group.name) ks_loading.register_session_conf_options(conf, group=barbican_group.name) def list_opts(): - opts = {None: default_opts, - barbican_group: barbican_opts + + opts = { + None: default_opts, + 'keystone_authtoken': ( ks_loading.get_session_conf_options() + ks_loading.get_auth_common_conf_options() + - ks_loading.get_auth_plugin_conf_options('v3password')} + ks_loading.get_auth_plugin_conf_options('password') + + ks_loading.get_auth_plugin_conf_options('v3password') + ), + barbican_group: ( + barbican_opts + + ks_loading.get_session_conf_options() + + ks_loading.get_auth_common_conf_options() + + ks_loading.get_auth_plugin_conf_options('v3password') + ) + } return opts diff --git a/etc/deckhand/deckhand.conf.sample b/etc/deckhand/deckhand.conf.sample index 453c97fb..fe8a4a96 100644 --- a/etc/deckhand/deckhand.conf.sample +++ b/etc/deckhand/deckhand.conf.sample @@ -151,6 +151,12 @@ # Timeout value for http requests (integer value) #timeout = +# Collect per-API call timing information. (boolean value) +#collect_timing = false + +# Log requests to multiple loggers. (boolean value) +#split_loggers = false + # Authentication type to load (string value) # Deprecated group/name - [barbican]/auth_plugin #auth_type = @@ -275,9 +281,14 @@ # Deprecated group/name - [sql]/idle_timeout #connection_recycle_time = 3600 -# Minimum number of SQL connections to keep open in a pool. (integer value) +# DEPRECATED: Minimum number of SQL connections to keep open in a pool. (integer +# value) # Deprecated group/name - [DEFAULT]/sql_min_pool_size # Deprecated group/name - [DATABASE]/sql_min_pool_size +# This option is deprecated for removal. +# Its value may be silently ignored in the future. +# Reason: The option to set the minimum pool size is not supported by +# sqlalchemy. #min_pool_size = 1 # Maximum number of SQL connections to keep open in a pool. Setting a value of 0 @@ -371,6 +382,92 @@ [keystone_authtoken] +# +# From deckhand.conf +# + +# PEM encoded Certificate Authority to use when verifying HTTPs connections. +# (string value) +#cafile = + +# PEM encoded client certificate cert file (string value) +#certfile = + +# PEM encoded client certificate key file (string value) +#keyfile = + +# Verify HTTPS connections. (boolean value) +#insecure = false + +# Timeout value for http requests (integer value) +#timeout = + +# Collect per-API call timing information. (boolean value) +#collect_timing = false + +# Log requests to multiple loggers. (boolean value) +#split_loggers = false + +# Authentication type to load (string value) +# Deprecated group/name - [keystone_authtoken]/auth_plugin +#auth_type = + +# Config Section from which to load plugin specific options (string value) +#auth_section = + +# Authentication URL (string value) +#auth_url = + +# Scope for system operations (string value) +#system_scope = + +# Domain ID to scope to (string value) +#domain_id = + +# Domain name to scope to (string value) +#domain_name = + +# Project ID to scope to (string value) +#project_id = + +# Project name to scope to (string value) +#project_name = + +# Domain ID containing project (string value) +#project_domain_id = + +# Domain name containing project (string value) +#project_domain_name = + +# Trust ID (string value) +#trust_id = + +# Optional domain ID to use with v3 and v2 parameters. It will be used for both +# the user and project domain in v3 and ignored in v2 authentication. (string +# value) +#default_domain_id = + +# Optional domain name to use with v3 API and v2 parameters. It will be used for +# both the user and project domain in v3 and ignored in v2 authentication. +# (string value) +#default_domain_name = + +# User ID (string value) +#user_id = + +# Username (string value) +# Deprecated group/name - [keystone_authtoken]/user_name +#username = + +# User's domain id (string value) +#user_domain_id = + +# User's domain name (string value) +#user_domain_name = + +# User's password (string value) +#password = + # # From keystonemiddleware.auth_token #