From c87ae92be56fa7f0f75749df5b8cbd527f539dcf Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 3 Mar 2016 14:57:14 -0500 Subject: [PATCH] Deprecate db_driver config option Previously this let you replace our SQLAlchemy database layer with your own. This approach is deprecated. Deployments that felt the need to use the facility are encourage to work with upstream Nova to address db driver concerns in the main SQLAlchemy code paths. Change-Id: If195a6bc399c8b1e2bfb0ea5579f2be21d0bc126 --- nova/db/base.py | 13 ++++++++++--- .../notes/deprecate_db_driver-91c76ca8011d663c.yaml | 8 ++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/deprecate_db_driver-91c76ca8011d663c.yaml diff --git a/nova/db/base.py b/nova/db/base.py index 28fdda0ca0a6..e67add814e69 100644 --- a/nova/db/base.py +++ b/nova/db/base.py @@ -19,9 +19,16 @@ from oslo_config import cfg from oslo_utils import importutils -db_driver_opt = cfg.StrOpt('db_driver', - default='nova.db', - help='The driver to use for database access') +# NOTE(sdague): we know of at least 1 instance of out of tree usage +# for this config in RAX. They used this because of performance issues +# with some queries. We think the right path forward is fixing the +# SQLA queries to be more performant for everyone. +db_driver_opt = cfg.StrOpt( + 'db_driver', + default='nova.db', + help='DEPRECATED: The driver to use for database access', + deprecated_for_removal=True) + CONF = cfg.CONF CONF.register_opt(db_driver_opt) diff --git a/releasenotes/notes/deprecate_db_driver-91c76ca8011d663c.yaml b/releasenotes/notes/deprecate_db_driver-91c76ca8011d663c.yaml new file mode 100644 index 000000000000..528854c35b7f --- /dev/null +++ b/releasenotes/notes/deprecate_db_driver-91c76ca8011d663c.yaml @@ -0,0 +1,8 @@ +--- +deprecations: + + - Deprecate the ``db_driver`` config option. Previously this let you + replace our SQLAlchemy database layer with your own. This approach + is deprecated. Deployments that felt the need to use the facility + are encourage to work with upstream Nova to address db driver + concerns in the main SQLAlchemy code paths.