Remove deprecated compute.workload_partitioning
Change-Id: I9ba50ac8513afa4370f76921af05fbf5b86bd4a9
This commit is contained in:
parent
86440a25f7
commit
60f11cb7af
@ -35,12 +35,6 @@ from ceilometer.compute.virt.libvirt import utils as libvirt_utils
|
|||||||
from ceilometer import nova_client
|
from ceilometer import nova_client
|
||||||
|
|
||||||
OPTS = [
|
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',
|
cfg.StrOpt('instance_discovery_method',
|
||||||
default='libvirt_metadata',
|
default='libvirt_metadata',
|
||||||
choices=['naive', 'workload_partitioning', 'libvirt_metadata'],
|
choices=['naive', 'workload_partitioning', 'libvirt_metadata'],
|
||||||
@ -102,10 +96,6 @@ class InstanceDiscovery(plugin_base.DiscoveryBase):
|
|||||||
if not self.method:
|
if not self.method:
|
||||||
self.method = conf.compute.instance_discovery_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.nova_cli = nova_client.Client(conf)
|
||||||
self.expiration_time = conf.compute.resource_update_interval
|
self.expiration_time = conf.compute.resource_update_interval
|
||||||
self.cache_expiry = conf.compute.resource_cache_expiry
|
self.cache_expiry = conf.compute.resource_cache_expiry
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The deprecated `compute.workload_partitioning` option has been removed in
|
||||||
|
favor of `compute.instance_discovery_method`.
|
Loading…
Reference in New Issue
Block a user