deprecate db2 nosql driver

the db2 nosql product is not in development anymore as IBM has moved
on to an alternate solution. the existing driver code is untested
in the community and IBM products are moving off of it. this patch
marks db2 nosql driver for deprecation.

Closes-Bug: #1491819
Change-Id: Ic4e906615931143744f25d70935bdb8138a6b93a
This commit is contained in:
gordon chung 2015-08-31 10:28:04 -04:00
parent 6c3c5a16cd
commit f9255d20c3
4 changed files with 8 additions and 20 deletions

View File

@ -64,11 +64,6 @@ F: publisher/, transformer/, pipeline.py
== storage ==
-- DB2 --
M: Tong Li (litong) <litong01@us.ibm.com>
S: Maintained
F: storage/impl_db2.py
-- HBase --
M:
S: Orphan

View File

@ -136,6 +136,12 @@ def get_connection(url, namespace):
# SqlAlchemy connections specify may specify a 'dialect' or
# 'dialect+driver'. Handle the case where driver is specified.
engine_name = connection_scheme.split('+')[0]
if engine_name == 'db2':
import warnings
warnings.simplefilter("always")
import debtcollector
debtcollector.deprecate("The DB2nosql driver is no longer supported",
version="Liberty", removal_version="N*-cycle")
# NOTE: translation not applied bug #1446983
LOG.debug('looking for %(name)r driver in %(namespace)r',
{'name': engine_name, 'namespace': namespace})

View File

@ -48,5 +48,4 @@ MongoDB Yes Yes Yes
MySQL Yes Yes Yes
PostgreSQL Yes Yes Yes
HBase Yes Yes, except groupby Yes
DB2 Yes Yes Yes
================== ============================= =================== ======

View File

@ -29,9 +29,8 @@ services. You may use one of the listed database backends below to store
Ceilometer data.
.. note::
Please notice, MongoDB (and some other backends like DB2 and HBase)
require pymongo_ to be installed on the system. The required minimum
version of pymongo is 2.4.
Please notice, MongoDB requires pymongo_ to be installed on the system. The
required minimum version of pymongo is 2.4.
..
@ -104,17 +103,6 @@ HBase
[database]
connection = hbase://hbase-thrift-host:9090
DB2
---
DB2 installation should follow fresh IBM DB2 NoSQL installation docs.
To use DB2 as the storage backend, change the 'database' section in
ceilometer.conf as follows::
[database]
connection = db2://username:password@host:27017/ceilometer
.. _HappyBase: http://happybase.readthedocs.org/en/latest/index.html#
.. _MongoDB: http://www.mongodb.org/