diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-07-06 14:58:34 +0800 |
---|---|---|
committer | Roman Podoliaka <rpodolyaka@mirantis.com> | 2016-07-06 16:34:35 +0300 |
commit | 0a1bae9859079fb21a03716be947c5f1da6db0a2 (patch) | |
tree | d0d17b784659ec07ce0f01f93d4914a0cbb9280e | |
parent | 1d7e7e453bd3520a0e2772a094a6ce70ad1fd342 (diff) | |
download | oslo-db-0a1bae9859079fb21a03716be947c5f1da6db0a2.tar.gz |
Deprecate config option sqlite_db for removal
We should use config option connection or slave_connection to connect
to the database. We can remove it when all consuming projects don't use
it anymore.
Related-Bug: #1329086
Change-Id: I1960e47b27b5f98f19a07f9899079269bac025cc
-rw-r--r-- | oslo_db/options.py | 3 | ||||
-rw-r--r-- | releasenotes/notes/deprecate_config_sqlite_db-bd41d49343049319.yaml | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/oslo_db/options.py b/oslo_db/options.py index f4bec25..89f4cf7 100644 --- a/oslo_db/options.py +++ b/oslo_db/options.py @@ -15,6 +15,9 @@ from oslo_config import cfg database_opts = [ cfg.StrOpt('sqlite_db', + deprecated_for_removal=True, + deprecated_reason='Should use config option connection or ' + 'slave_connection to connect the database.', deprecated_group='DEFAULT', default='oslo.sqlite', help='The file name to use with SQLite.'), diff --git a/releasenotes/notes/deprecate_config_sqlite_db-bd41d49343049319.yaml b/releasenotes/notes/deprecate_config_sqlite_db-bd41d49343049319.yaml new file mode 100644 index 0000000..d20da8a --- /dev/null +++ b/releasenotes/notes/deprecate_config_sqlite_db-bd41d49343049319.yaml @@ -0,0 +1,7 @@ +--- +deprecations: + - | + The configuration option ``sqlite_db`` is now deprecated and + will be removed in the future. Please use configuration + option ``connection`` or ``slave_connection`` to connect to the database. + |