nova/nova/db/sqlalchemy
Mike Bayer 910008e2ef Generalize DB conf group copying
The direct access of conf.* names in _get_db_conf() method
is an inappropriate usage of oslo.config [1].   Hardcoding
these names prevents oslo.db from being able to easily
rename or deprecate options, as well as to be able to
add new database options, such as those which apply
to new performance tuning or monitoring techniques.
Retrieve values from the config object generically so
that these names remain local to oslo.db. This usage has
been supported in oslo.db enginefacade from its inception [2]
as multiple projects were already doing it for LegacyEngineFacade.

For the keys __autocommit, sqlite_fk, and expire_on_commit,
enginefacade already defaults these to the same values
as were hardcoded here and these are unnecessary to be
hardcoded.  __autocommit in particular is not public.

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-July/119846.html
[2] https://github.com/openstack/oslo.db/blob/master/oslo_db/tests/sqlalchemy/test_enginefacade.py#L2140

Change-Id: I22f8a19009408fb1f1587bf399e6aee3467c8bc6
2018-01-20 12:43:11 -05:00
..
api_migrations Make request_spec.spec MediumText 2017-12-14 21:28:18 -05:00
migrate_repo Add index(updated_at) on migrations table. 2018-01-10 14:04:23 -05:00
__init__.py Remove SQLite BigInteger/Integer translation logic 2015-12-07 12:49:22 -05:00
api.py Generalize DB conf group copying 2018-01-20 12:43:11 -05:00
api_models.py Make request_spec.spec MediumText 2017-12-14 21:28:18 -05:00
migration.py Revert "Optional separate database for placement API" 2016-08-25 13:51:16 -07:00
models.py Add index(updated_at) on migrations table. 2018-01-10 14:04:23 -05:00
resource_class_cache.py [placement] Object changes to support last-modified headers 2017-12-07 18:47:17 +00:00
types.py Use is_valid_cidr and is_valid_ipv6_cidr from oslo_utils 2017-01-31 11:45:00 +00:00
utils.py Remove translation of log messages 2017-07-18 09:03:39 +00:00