summaryrefslogtreecommitdiff
path: root/nova/consoleauth
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2013-04-23 13:34:24 -0400
committerRussell Bryant <rbryant@redhat.com>2013-04-23 14:02:39 -0400
commit1a546c67ee94eef2260cd64e7fcb3fb0ed44b4f6 (patch)
tree0a4bfb8fc49e19f9efd43c66924d2d858d27b9a8 /nova/consoleauth
parent98efba2dff8f67220595447728f69330089a3ebd (diff)
downloadnova-1a546c67ee94eef2260cd64e7fcb3fb0ed44b4f6.tar.gz
Add an rpc API common to all services.
This patch adds an rpc API that is exposed by all services. The methods in this API exist in their own namespace and are versioned independently of the main API for the service. The first method for this API is a simple ping() method. This method exists in the conductor rpc API already, and could be more generally useful. Other methods will be added in later patches. The base rpc API will be exposed from all services automatically unless they override the create_rpc_dispatcher method in the base manager class. All services need to pass a service_name into the base manager constructor. Some services already did this, but now it's needed for all of them. Implements blueprint base-rpc-api. Change-Id: I02ab1970578bc53ba26461b533d06d1055c2d88e
Diffstat (limited to 'nova/consoleauth')
-rw-r--r--nova/consoleauth/manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py
index 80a6d447fe..18d75e68c6 100644
--- a/nova/consoleauth/manager.py
+++ b/nova/consoleauth/manager.py
@@ -53,7 +53,8 @@ class ConsoleAuthManager(manager.Manager):
RPC_API_VERSION = '1.2'
def __init__(self, scheduler_driver=None, *args, **kwargs):
- super(ConsoleAuthManager, self).__init__(*args, **kwargs)
+ super(ConsoleAuthManager, self).__init__(service_name='consoleauth',
+ *args, **kwargs)
self.mc = memorycache.get_client()
self.conductor_api = conductor_api.API()
self.compute_rpcapi = compute_rpcapi.ComputeAPI()