Merge "dispatcher: deprecate event database dispatcher for Panko"

This commit is contained in:
Jenkins 2016-09-07 09:22:18 +00:00 committed by Gerrit Code Review
commit acb9f7627f
4 changed files with 10 additions and 1 deletions

View File

@ -31,7 +31,7 @@ OPTS = [
default=['database'],
help='Dispatchers to process metering data.'),
cfg.MultiStrOpt('event_dispatchers',
default=['database'],
default=[],
deprecated_name='dispatcher',
help='Dispatchers to process event data.'),
]

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from debtcollector import removals
from oslo_log import log
from oslo_utils import timeutils
@ -79,6 +80,9 @@ class MeterDatabaseDispatcher(dispatcher.MeterDispatcherBase,
raise
@removals.removed_class("EventDatabaseDispatcher",
message="Use panko instead",
removal_version="8.0.0")
class EventDatabaseDispatcher(dispatcher.EventDispatcherBase,
DatabaseDispatcher):
CONNECTION_TYPE = 'event'

View File

@ -36,6 +36,7 @@ class TestEventDispatcherVerifier(base.BaseTestCase):
self.conf.import_opt('telemetry_secret',
'ceilometer.publisher.utils',
'publisher')
self.conf.set_override("event_dispatchers", ['database'])
self.useFixture(mockpatch.Patch(
'ceilometer.dispatcher.database.EventDatabaseDispatcher',
new=FakeDispatcher))

View File

@ -0,0 +1,4 @@
---
deprecations:
- The event database dispatcher is now deprecated. It has been moved to a new
project, alongside the Ceilometer API for /v2/events, called Panko.