deprecate ``compute_stats_class`` config option

There was only one implementation in tree, and this isn't an extension
point or interface we want people plugging out of tree code into.

Change-Id: Ie2cb64a43198e1155f768ceabe50ce8a004a1d41
This commit is contained in:
Sean Dague 2016-03-04 06:56:49 -05:00
parent 21da1babce
commit 3be36fcb7b
2 changed files with 11 additions and 1 deletions

View File

@ -48,7 +48,9 @@ resource_tracker_opts = [
help='Amount of memory in MB to reserve for the host'),
cfg.StrOpt('compute_stats_class',
default='nova.compute.stats.Stats',
help='Class that will manage stats for the local compute host'),
help='DEPRECATED: Class that will manage stats for the '
'local compute host',
deprecated_for_removal=True),
cfg.ListOpt('compute_resources',
default=[],
help='DEPRECATED: The names of the extra resources to track. '

View File

@ -0,0 +1,8 @@
---
deprecations:
- Deprecate ``compute_stats_class`` config option. This allowed
loading an alternate implementation for collecting statistics for
the local compute host. Deployments that felt the need to use
this facility are encoraged to propose additions upstream so we
can create a stable and supported interface here.