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/cert/manager.py | 2 ++ nova/cert/rpcapi.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'nova/cert') diff --git a/nova/cert/manager.py b/nova/cert/manager.py index a5f14fb69..303cb547e 100644 --- a/nova/cert/manager.py +++ b/nova/cert/manager.py @@ -68,5 +68,7 @@ class CertManager(manager.Manager): """Decrypt base64 encoded text using the projects private key.""" return crypto.decrypt_text(project_id, base64.b64decode(text)) + # 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/cert/rpcapi.py b/nova/cert/rpcapi.py index 7dd843813..505efe75f 100644 --- a/nova/cert/rpcapi.py +++ b/nova/cert/rpcapi.py @@ -86,7 +86,3 @@ class CertAPI(nova.openstack.common.rpc.proxy.RpcProxy): return self.call(ctxt, self.make_msg('decrypt_text', project_id=project_id, text=text)) - - def get_backdoor_port(self, context, host): - return self.call(context, self.make_msg('get_backdoor_port'), - version='1.1') -- cgit