Deprecate Extensible Resource Tracker

We agreed at the Summit to remove the ERT. Before doing that, we need to
advertise the entrypoint consumers that they need to consider an alternative.

Release Notes should announce that too.

Co-Authored-By: Paul Murray <pmurray@hpe.com>

UpgradeImpact

Change-Id: Ie4b6670a828d99aebfd348bd700f9f58b3e39fdb
This commit is contained in:
Sylvain Bauza 2015-11-05 16:15:14 +01:00 committed by Paul Murray
parent d3bece175b
commit 649decbaad
2 changed files with 18 additions and 1 deletions

View File

@ -51,7 +51,15 @@ resource_tracker_opts = [
help='Class that will manage stats for the local compute host'),
cfg.ListOpt('compute_resources',
default=[],
help='The names of the extra resources to track.'),
help='DEPRECATED: The names of the extra resources to track. '
'The Extensible Resource Tracker is deprecated and will '
'be removed in the 14.0.0 release. If you '
'use this functionality and have custom resources that '
'are managed by the Extensible Resource Tracker, please '
'contact the Nova development team by posting to the '
'openstack-dev mailing list. There is no future planned '
'support for the tracking of custom resources.',
deprecated_for_removal=True),
]
allocation_ratio_opts = [

View File

@ -53,6 +53,15 @@ class ResourceHandler(object):
names=names,
propagate_map_exceptions=propagate_map_exceptions,
invoke_on_load=True)
if self._mgr.names():
LOG.warning(_LW(
'The Extensible Resource Tracker is deprecated and will '
'be removed in the 14.0.0 release. If you '
'use this functionality and have custom resources that '
'are managed by the Extensible Resource Tracker, please '
'contact the Nova development team by posting to the '
'openstack-dev mailing list. There is no future planned '
'support for the tracking of custom resources.'))
self._log_missing_plugins(names)
def reset_resources(self, resources, driver):