From 3be36fcb7bdc0f48eae06f5378f3ba2e4a4975bd Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 4 Mar 2016 06:56:49 -0500 Subject: [PATCH] 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 --- nova/compute/resource_tracker.py | 4 +++- .../deprecate_compute_stats_class-229abfcb8816bdbd.yaml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/deprecate_compute_stats_class-229abfcb8816bdbd.yaml diff --git a/nova/compute/resource_tracker.py b/nova/compute/resource_tracker.py index ebe8aa0f511f..f0089ccdb2b6 100644 --- a/nova/compute/resource_tracker.py +++ b/nova/compute/resource_tracker.py @@ -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. ' diff --git a/releasenotes/notes/deprecate_compute_stats_class-229abfcb8816bdbd.yaml b/releasenotes/notes/deprecate_compute_stats_class-229abfcb8816bdbd.yaml new file mode 100644 index 000000000000..1adec46ec0e8 --- /dev/null +++ b/releasenotes/notes/deprecate_compute_stats_class-229abfcb8816bdbd.yaml @@ -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.