From 1a546c67ee94eef2260cd64e7fcb3fb0ed44b4f6 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 23 Apr 2013 13:34:24 -0400 Subject: 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 --- nova/consoleauth/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/consoleauth') diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py index 80a6d447f..18d75e68c 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() -- cgit