diff --git a/ceilometer/compute/discovery.py b/ceilometer/compute/discovery.py index 48e812fa11..3210b1e0c4 100644 --- a/ceilometer/compute/discovery.py +++ b/ceilometer/compute/discovery.py @@ -35,12 +35,6 @@ from ceilometer.compute.virt.libvirt import utils as libvirt_utils from ceilometer import nova_client OPTS = [ - cfg.BoolOpt('workload_partitioning', - default=False, - deprecated_for_removal=True, - help='Enable work-load partitioning, allowing multiple ' - 'compute agents to be run simultaneously. ' - '(replaced by instance_discovery_method)'), cfg.StrOpt('instance_discovery_method', default='libvirt_metadata', choices=['naive', 'workload_partitioning', 'libvirt_metadata'], @@ -102,10 +96,6 @@ class InstanceDiscovery(plugin_base.DiscoveryBase): if not self.method: self.method = conf.compute.instance_discovery_method - # For backward compatibility - if self.method == "naive" and conf.compute.workload_partitioning: - self.method = "workload_partitioning" - self.nova_cli = nova_client.Client(conf) self.expiration_time = conf.compute.resource_update_interval self.cache_expiry = conf.compute.resource_cache_expiry diff --git a/releasenotes/notes/remove-compute-workload-partitioning-option-26538bc1e80500e3.yaml b/releasenotes/notes/remove-compute-workload-partitioning-option-26538bc1e80500e3.yaml new file mode 100644 index 0000000000..4310181ca5 --- /dev/null +++ b/releasenotes/notes/remove-compute-workload-partitioning-option-26538bc1e80500e3.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + The deprecated `compute.workload_partitioning` option has been removed in + favor of `compute.instance_discovery_method`.