commit 15ae704d927ba2ecd97d29195d30d5587987e2ad
Author: Dan Smith <email address hidden>
Date: Wed Dec 5 12:22:40 2012 -0800
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.
Reviewed: https:/ /review. openstack. org/17555 github. com/openstack/ oslo-incubator/ commit/ 15ae704d927ba2e cd97d29195d30d5 587987e2ad
Committed: http://
Submitter: Jenkins
Branch: master
commit 15ae704d927ba2e cd97d29195d30d5 587987e2ad
Author: Dan Smith <email address hidden>
Date: Wed Dec 5 12:22:40 2012 -0800
Allow exceptions to pass over RPC silently
When one service performs an operation on behalf of another, the rpc/common. py,
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/
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: I4e7b19dc730342 091fd70a7170657 41d56da4555