summaryrefslogtreecommitdiffstats
path: root/openstack/common/plugin
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2012-12-05 12:22:40 -0800
committerDan Smith <danms@us.ibm.com>2012-12-06 08:31:13 -0800
commit15ae704d927ba2ecd97d29195d30d5587987e2ad (patch)
treebcca356f634c5f7a67d7f3e7b0672a8ac3e7ef72 /openstack/common/plugin
parent2f7a7edc41d0e7b663877592aeda14e766a64241 (diff)
downloadoslo-15ae704d927ba2ecd97d29195d30d5587987e2ad.tar.gz
oslo-15ae704d927ba2ecd97d29195d30d5587987e2ad.tar.xz
oslo-15ae704d927ba2ecd97d29195d30d5587987e2ad.zip
Allow exceptions to pass over RPC silently
When one service performs an operation on behalf of another, the act of passing back an exception (even a known one) causes a lot of scary log messages about the (presumed to be) error case. This patch adds a client_exceptions decorator common/rpc/common.py, which allows RPC services to declare the list of expected exceptions for each method. If such an exception is raised during the RPC dispatch, it is wrapped in a ClientException so that the RPC layer can gracefully pass it back without overly-verbose logging. This will allow us to fix nova bug 1084707 Change-Id: I4e7b19dc730342091fd70a717065741d56da4555
Diffstat (limited to 'openstack/common/plugin')
0 files changed, 0 insertions, 0 deletions