deprecate archive policy of Gnocchi dispatcher
Since we have Archive Policy Rule in Gnocchi, it doesn't make any sense to configure archive policy here. Change-Id: Ide510f355361737230efcd89ff78ff974bc96134
This commit is contained in:
parent
2950c7a0e1
commit
5016d7e26a
@ -77,6 +77,10 @@ class ResourcesDefinition(object):
|
||||
self._event_attributes[name] = declarative.Definition(
|
||||
name, attr_cfg, plugin_manager)
|
||||
|
||||
if self.cfg.get('archive_policy'):
|
||||
LOG.warning("archive_policy in gnocchi resource definition is "
|
||||
"deprecated. Archive Policy Rule must be setup on "
|
||||
"Gnocchi side instead")
|
||||
self.metrics = {}
|
||||
for t in self.cfg['metrics']:
|
||||
archive_policy = self.cfg.get('archive_policy',
|
||||
|
@ -23,6 +23,9 @@ dispatcher_opts = [
|
||||
help='Gnocchi project used to filter out samples '
|
||||
'generated by Gnocchi service activity'),
|
||||
cfg.StrOpt('archive_policy',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason='Archive Policy Rule must be '
|
||||
'setup on Gnocchi side instead',
|
||||
help='The archive policy to use when the dispatcher '
|
||||
'create a new metric.'),
|
||||
cfg.StrOpt('resources_definition_file',
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
Any Archive Policy configuration in Ceilometer is deprecated. Archive
|
||||
Policy Rules system of Gnocchi must be used instead.
|
Loading…
x
Reference in New Issue
Block a user