From 698c62702af8f9ccca574a7ad714d3ae1298a5a8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 9 Mar 2018 11:01:16 +0000 Subject: Ignore 'use_tpool' option The sheer act of registering the 'use_tpool' option seems to be enough to cause the following warning: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported Add it to the list of ignored opts, thus silencing this warning. Change-Id: I4a5f8958c3e0fc68fa3a4ae979f284c4fbd9b82b --- oslo_db/sqlalchemy/enginefacade.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oslo_db/sqlalchemy/enginefacade.py b/oslo_db/sqlalchemy/enginefacade.py index 80c320b..cca694b 100644 --- a/oslo_db/sqlalchemy/enginefacade.py +++ b/oslo_db/sqlalchemy/enginefacade.py @@ -164,15 +164,15 @@ class _TransactionFactory(object): 'on_engine_create': [], } - # other options that are defined in oslo.db.options.database_opts - # but do not apply to the standard enginefacade arguments - # (most seem to apply to api.DBAPI). + # other options that are defined in oslo_db.options.database_opts + # or oslo_db.concurrency.tpool_opts but do not apply to the standard + # enginefacade arguments (most seem to apply to api.DBAPI). self._ignored_cfg = dict( (k, _Default(None)) for k in [ 'db_max_retries', 'db_inc_retry_interval', 'use_db_reconnect', 'db_retry_interval', 'min_pool_size', - 'db_max_retry_interval', 'backend']) + 'db_max_retry_interval', 'backend', 'use_tpool']) self._started = False self._legacy_facade = None -- cgit v1.2.1