From eb03d47fecd3bfc24243da29ee01679b334a08fe Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 23 Sep 2011 09:22:32 -0700 Subject: Remove AoE, Clean up volume code * Removes Ata Over Ethernet * Adds drivers to libvirt for volumes * Adds initialize_connection and terminate_connection to volume api * Passes connection info back through volume api Change-Id: I1b1626f40bebe8466ab410fb174683293c7c474f --- nova/rpc/common.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'nova/rpc') diff --git a/nova/rpc/common.py b/nova/rpc/common.py index b8c280630..120d6ad14 100644 --- a/nova/rpc/common.py +++ b/nova/rpc/common.py @@ -10,7 +10,7 @@ flags.DEFINE_integer('rpc_conn_pool_size', 30, 'Size of RPC connection pool') -class RemoteError(exception.Error): +class RemoteError(exception.NovaException): """Signifies that a remote class has raised an exception. Containes a string representation of the type of the original exception, @@ -19,11 +19,10 @@ class RemoteError(exception.Error): contains all of the relevent info. """ + message = _("Remote error: %(exc_type)s %(value)s\n%(traceback)s.") - def __init__(self, exc_type, value, traceback): + def __init__(self, exc_type=None, value=None, traceback=None): self.exc_type = exc_type self.value = value self.traceback = traceback - super(RemoteError, self).__init__('%s %s\n%s' % (exc_type, - value, - traceback)) + super(RemoteError, self).__init__(**self.__dict__) -- cgit