summaryrefslogtreecommitdiffstats
path: root/nova/consoleauth
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/consoleauth
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/consoleauth')
-rw-r--r--nova/consoleauth/manager.py2
-rw-r--r--nova/consoleauth/rpcapi.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py
index 18d75e68c..c305ed5d7 100644
--- a/nova/consoleauth/manager.py
+++ b/nova/consoleauth/manager.py
@@ -122,5 +122,7 @@ class ConsoleAuthManager(manager.Manager):
self.mc.delete(token)
self.mc.delete(instance_uuid.encode('UTF-8'))
+ # NOTE(russellb) This method can be removed in 2.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
diff --git a/nova/consoleauth/rpcapi.py b/nova/consoleauth/rpcapi.py
index 9ab477340..62aeab8da 100644
--- a/nova/consoleauth/rpcapi.py
+++ b/nova/consoleauth/rpcapi.py
@@ -71,7 +71,3 @@ class ConsoleAuthAPI(nova.openstack.common.rpc.proxy.RpcProxy):
self.make_msg('delete_tokens_for_instance',
instance_uuid=instance_uuid),
version="1.2")
-
- def get_backdoor_port(self, ctxt, host):
- return self.call(ctxt, self.make_msg('get_backdoor_port'),
- version='1.1')