diff options
author | Alex Meade <alex.meade@rackspace.com> | 2012-03-21 19:13:16 +0000 |
---|---|---|
committer | Alex Meade <alex.meade@rackspace.com> | 2012-04-06 14:55:50 -0400 |
commit | a0150a4d9e751ec222221558dfe89a66b0c118ab (patch) | |
tree | e0eedb7c735b80e4c2e6d416acc66237874ad1e2 /etc | |
parent | b573276e00f486120b35d84b892df2c0fa617acc (diff) | |
download | nova-a0150a4d9e751ec222221558dfe89a66b0c118ab.tar.gz |
Add the serialization of exceptions for RPC calls.
This change uses json to serialize an exception so that it can be sent
through RPC calls to be reconstructed on the other side. The traceback is added
to the exception message. If recreating the exception fails for whatever reason
then a RemoteError is created containing all of the exception information.
Adds flag 'allowed_rpc_exception_modules' to prevent dangerous modules from
being accessed and allowing arbitrary code to be run.
Fixes bug 920705
Fixes bug 940500
Change-Id: Ife3b64b19fe8abbc730184d4ee7d9fcabfd29db3
Diffstat (limited to 'etc')
-rw-r--r-- | etc/nova/nova.conf.sample | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample index b2607a9c2f..b9ea77d0c3 100644 --- a/etc/nova/nova.conf.sample +++ b/etc/nova/nova.conf.sample @@ -918,6 +918,11 @@ ###### (StrOpt) path to s3 buckets # buckets_path="$state_path/buckets" +######### defined in nova.rpc.common ######### + +###### (ListOpt) Modules of exceptions that are permitted to be recreated +# allowed_rpc_exception_modules="nova.exception" + ######### defined in nova.rpc.impl_kombu ######### ###### (StrOpt) SSL certification authority file (valid only if SSL enabled) |