Merge "dispatcher: deprecate event database dispatcher for Panko"
This commit is contained in:
commit
acb9f7627f
@ -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.'),
|
||||
]
|
||||
|
@ -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'
|
||||
|
@ -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))
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user