summaryrefslogtreecommitdiffstats
path: root/nova/scheduler
diff options
context:
space:
mode:
authorHans Lindgren <hanlind@kth.se>2013-05-01 23:28:18 +0200
committerHans Lindgren <hanlind@kth.se>2013-05-02 23:59:07 +0200
commit3e8ccb16148963c69b88afd044cbf83a68646de0 (patch)
tree1f7a8c2b5d6efce1698c60eee747bfdf77032cad /nova/scheduler
parent423289d50d92cf4b780a11c2c3da4e1dbbd865f2 (diff)
downloadnova-3e8ccb16148963c69b88afd044cbf83a68646de0.tar.gz
nova-3e8ccb16148963c69b88afd044cbf83a68646de0.tar.xz
nova-3e8ccb16148963c69b88afd044cbf83a68646de0.zip
Deprecate show_host_resources() in scheduler manager
This method does not at all belong in the scheduler. Its only use is from being remotely called by nova-manage to whom it returns data fetched from the db. I think nova-manage is better of fetching this data on its own instead of making this extra round trip to the scheduler. Change-Id: I435300cdd15bdd041cbe5718ae064b98cec4cceb
Diffstat (limited to 'nova/scheduler')
-rw-r--r--nova/scheduler/manager.py4
-rw-r--r--nova/scheduler/rpcapi.py3
2 files changed, 1 insertions, 6 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py
index 65b171eba..ca7cd956f 100644
--- a/nova/scheduler/manager.py
+++ b/nova/scheduler/manager.py
@@ -241,9 +241,7 @@ class SchedulerManager(manager.Manager):
notifier.notify(context, notifier.publisher_id("scheduler"),
'scheduler.' + method, notifier.ERROR, payload)
- # NOTE (masumotok) : This method should be moved to nova.api.ec2.admin.
- # Based on bexar design summit discussion,
- # just put this here for bexar release.
+ # NOTE(hanlind): This method can be removed in v3.0 of the RPC API.
def show_host_resources(self, context, host):
"""Shows the physical/usage resource given by hosts.
diff --git a/nova/scheduler/rpcapi.py b/nova/scheduler/rpcapi.py
index ac2244de4..2cfd5688f 100644
--- a/nova/scheduler/rpcapi.py
+++ b/nova/scheduler/rpcapi.py
@@ -96,9 +96,6 @@ class SchedulerAPI(nova.openstack.common.rpc.proxy.RpcProxy):
filter_properties=filter_properties,
reservations=reservations_p))
- def show_host_resources(self, ctxt, host):
- return self.call(ctxt, self.make_msg('show_host_resources', host=host))
-
def live_migration(self, ctxt, block_migration, disk_over_commit,
instance, dest):
# NOTE(comstud): Call vs cast so we can get exceptions back, otherwise