summaryrefslogtreecommitdiffstats
path: root/nova/scheduler/manager.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2013-04-10 00:59:03 +0200
committerRussell Bryant <rbryant@redhat.com>2013-04-24 15:02:56 -0400
commitddb3199318bf91e76b4c4e7330956ee581c91ccc (patch)
tree5e9789b714483481d6d1b68d94debb92ed42ab0c /nova/scheduler/manager.py
parenta025d7eee28026cb21cb0e732e6510d5d9b7d96f (diff)
downloadnova-ddb3199318bf91e76b4c4e7330956ee581c91ccc.tar.gz
nova-ddb3199318bf91e76b4c4e7330956ee581c91ccc.tar.xz
nova-ddb3199318bf91e76b4c4e7330956ee581c91ccc.zip
Move get_backdoor_port to base rpc API.
Each service implemented the get_backdoor_port method individually. This patch moves the implementation of this method to the base rpc API instead, and removes the now unnecessary code from each of the services. The server side method was left on all of the managers for rpc backwards copmatibility. They can be removed on the next major rpc version bump of those APIs. Part of blueprint base-rpc-api. Change-Id: Ia8838fafd80eb86a1c2d66f5e97370042d8d8c53
Diffstat (limited to 'nova/scheduler/manager.py')
-rw-r--r--nova/scheduler/manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py
index 94438a2cd..8fd89858d 100644
--- a/nova/scheduler/manager.py
+++ b/nova/scheduler/manager.py
@@ -291,6 +291,8 @@ class SchedulerManager(manager.Manager):
def _expire_reservations(self, context):
QUOTAS.expire(context)
+ # NOTE(russellb) This method can be removed in 3.0 of this API. It is
+ # deprecated in favor of the method in the base API.
def get_backdoor_port(self, context):
return self.backdoor_port