summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-04 01:58:47 +0000
committerGerrit Code Review <review@openstack.org>2012-08-04 01:58:47 +0000
commit5fb51ea04b2ccff55f45af9e99cecd5d22f27a42 (patch)
tree23e6762d4fac40b8ca9df4097ea667ac7cd2301d
parent97f57d2e92be57821b643311cbb1662933d47ef2 (diff)
parentcf1540c4a62f0a31c4a313be3811d1e4b81091f8 (diff)
downloadnova-5fb51ea04b2ccff55f45af9e99cecd5d22f27a42.tar.gz
nova-5fb51ea04b2ccff55f45af9e99cecd5d22f27a42.tar.xz
nova-5fb51ea04b2ccff55f45af9e99cecd5d22f27a42.zip
Merge "Partially revert "Remove unused scheduler functions""
-rw-r--r--nova/scheduler/manager.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py
index 2a096cce8..e243e4518 100644
--- a/nova/scheduler/manager.py
+++ b/nova/scheduler/manager.py
@@ -34,6 +34,7 @@ from nova.openstack.common import excutils
from nova.openstack.common import importutils
from nova.openstack.common import log as logging
from nova.openstack.common.notifier import api as notifier
+from nova.openstack.common.rpc import common as rpc_common
from nova import quota
@@ -67,6 +68,21 @@ class SchedulerManager(manager.Manager):
# the rpc API as well, and the version should be updated accordingly.
return functools.partial(self._schedule, key)
+ def get_host_list(self, context):
+ """Get a list of hosts from the HostManager.
+
+ Currently unused, but left for backwards compatibility.
+ """
+ raise rpc_common.RPCException(message=_('Deprecated in version 1.0'))
+
+ def get_service_capabilities(self, context):
+ """Get the normalized set of capabilities for this zone.
+
+ Has been unused since pre-essex, but remains for rpc API 1.X
+ completeness.
+ """
+ raise rpc_common.RPCException(message=_('Deprecated in version 1.0'))
+
def update_service_capabilities(self, context, service_name=None,
host=None, capabilities=None, **kwargs):
"""Process a capability update from a service node."""