summaryrefslogtreecommitdiffstats
path: root/nova/rpc
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-09-23 09:22:32 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-10-11 14:25:04 -0700
commiteb03d47fecd3bfc24243da29ee01679b334a08fe (patch)
tree23243973d2656fecadab6811e0dca6ceb246a7ae /nova/rpc
parente164f3f703026db30937dbbddc63818cef8bd939 (diff)
downloadnova-eb03d47fecd3bfc24243da29ee01679b334a08fe.tar.gz
nova-eb03d47fecd3bfc24243da29ee01679b334a08fe.tar.xz
nova-eb03d47fecd3bfc24243da29ee01679b334a08fe.zip
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
Diffstat (limited to 'nova/rpc')
-rw-r--r--nova/rpc/common.py9
1 files changed, 4 insertions, 5 deletions
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__)