From ddb3199318bf91e76b4c4e7330956ee581c91ccc Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 10 Apr 2013 00:59:03 +0200 Subject: 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 --- nova/consoleauth/manager.py | 2 ++ nova/consoleauth/rpcapi.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'nova/consoleauth') 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') -- cgit