diff options
author | Rick Harris <rconradharris@gmail.com> | 2013-02-12 05:29:23 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2013-02-12 17:42:02 +0000 |
commit | 07cbf72301c5a3e588fc818abcab91f733b87738 (patch) | |
tree | 5fb789f228f8540729fa3937162aebdfbf249c96 /nova/exception.py | |
parent | 20424b987946ee56e39f88aed7fddd35c54d7207 (diff) | |
download | nova-07cbf72301c5a3e588fc818abcab91f733b87738.tar.gz nova-07cbf72301c5a3e588fc818abcab91f733b87738.tar.xz nova-07cbf72301c5a3e588fc818abcab91f733b87738.zip |
xenapi: Remove unecessary exception handling
The volume code was catching exceptions from the XenAPI only to re-raise
more-generic StorageError exceptions. This practice makes it much more
difficult to discover the root-cause of issues in production by making
the message in the instance-faults table less useful.
The solution is to have the original root-cause exception propogate all
the way up to the instance-faults table where the developer will be able
to make sense of it.
Other cleanups:
* Remove useless logging and stop logging opaque-refs in some places
* Remove dead code (create_iscsi_storage)
* Remove one-off functions (forget_sr_if_present,
introduce_sr_unless_present); just use forget_sr and introduce_sr
* Removed unused `exception` import
* Added Openstack copyright lines
Future Work:
There are lots of other places where unecessary exception handling is
occuring; this patch just addresses this in the attach/detach code-path.
Fixes bug 1122733
Change-Id: I8c382fb505303e604ff2e86afcf302efe3d6851d
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions