Merge "Don't override default values for oslo.db options"
This commit is contained in:
commit
843c1a6a1b
@ -22,7 +22,6 @@ import sys
|
|||||||
from keystoneauth1 import loading as ks_loading
|
from keystoneauth1 import loading as ks_loading
|
||||||
from neutron_lib.api import validators
|
from neutron_lib.api import validators
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_db import options as db_options
|
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
from oslo_middleware import cors
|
from oslo_middleware import cors
|
||||||
@ -52,17 +51,6 @@ common_config.register_core_common_config_opts()
|
|||||||
oslo_messaging.set_transport_defaults(control_exchange='neutron')
|
oslo_messaging.set_transport_defaults(control_exchange='neutron')
|
||||||
|
|
||||||
|
|
||||||
def set_db_defaults():
|
|
||||||
# Update the default QueuePool parameters. These can be tweaked by the
|
|
||||||
# conf variables - max_pool_size, max_overflow and pool_timeout
|
|
||||||
db_options.set_defaults(
|
|
||||||
cfg.CONF,
|
|
||||||
connection='sqlite://',
|
|
||||||
max_pool_size=10,
|
|
||||||
max_overflow=20, pool_timeout=10)
|
|
||||||
|
|
||||||
set_db_defaults()
|
|
||||||
|
|
||||||
NOVA_CONF_SECTION = 'nova'
|
NOVA_CONF_SECTION = 'nova'
|
||||||
|
|
||||||
ks_loading.register_auth_conf_options(cfg.CONF, NOVA_CONF_SECTION)
|
ks_loading.register_auth_conf_options(cfg.CONF, NOVA_CONF_SECTION)
|
||||||
|
@ -29,6 +29,7 @@ import mock
|
|||||||
from neutron_lib import fixture
|
from neutron_lib import fixture
|
||||||
from oslo_concurrency.fixture import lockutils
|
from oslo_concurrency.fixture import lockutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
|
from oslo_db import options as db_options
|
||||||
from oslo_messaging import conffixture as messaging_conffixture
|
from oslo_messaging import conffixture as messaging_conffixture
|
||||||
from oslo_utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo_utils import fileutils
|
from oslo_utils import fileutils
|
||||||
@ -145,9 +146,9 @@ class DietTestCase(base.BaseTestCase):
|
|||||||
super(DietTestCase, self).setUp()
|
super(DietTestCase, self).setUp()
|
||||||
|
|
||||||
# FIXME(amuller): this must be called in the Neutron unit tests base
|
# FIXME(amuller): this must be called in the Neutron unit tests base
|
||||||
# class to initialize the DB connection string. Moving this may cause
|
# class. Moving this may cause non-deterministic failures. Bug #1489098
|
||||||
# non-deterministic failures. Bug #1489098 for more info.
|
# for more info.
|
||||||
config.set_db_defaults()
|
db_options.set_defaults(cfg.CONF, connection='sqlite://')
|
||||||
|
|
||||||
# Configure this first to ensure pm debugging support for setUp()
|
# Configure this first to ensure pm debugging support for setUp()
|
||||||
debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER')
|
debugger = os.environ.get('OS_POST_MORTEM_DEBUGGER')
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Previously, ``neutron-server`` was using configuration values
|
||||||
|
for ``oslo.db`` that were different from library defaults. Specifically, it
|
||||||
|
used the following values when they were not overridden in configuration
|
||||||
|
files: ``max_pool_size`` = 10, ``max_overflow`` = 20, ``pool_timeout`` =
|
||||||
|
10. In this release, ``neutron-server`` instead relies on default values
|
||||||
|
defined by the library itself. If you rely on old default values, you may
|
||||||
|
need to adjust your configuration files to explicitly set the new values.
|
Loading…
Reference in New Issue
Block a user