Merge "Deprecate Extensible Resource Tracker"

This commit is contained in:
Jenkins 2015-11-13 03:00:05 +00:00 committed by Gerrit Code Review
commit 98af6b148e
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):