]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pass the extension driver exception to plugin
authorYalei Wang <yalei.wang@intel.com>
Wed, 5 Aug 2015 17:03:20 +0000 (01:03 +0800)
committerYalei Wang <yalei.wang@intel.com>
Fri, 7 Aug 2015 09:16:17 +0000 (17:16 +0800)
commit73845d564c910bb9113a3ba5963b368384efbaad
tree2913e27f87dfa452550ce29f573035cc3f67b1db
parent6ee7b12d9494ca972d05a73ca000f1167d32c617
Pass the extension driver exception to plugin

The extension driver is intercepted by driver manager currently. It will
cover the errors/exceptions happened in extension drivers. The extension
process will continue even if preceding extension driver get a wrong/useless
extended result, or even no result.
This patch make process_[create|update]_<resource>() and
extend_<resource>_dict() methods return the exception, and log it with proper
level respectively, and also include a minor optimization for the
extend_<resource>_dict() methods.

Change-Id: I20a249c47b58292125476bc44b2372ca959509e3
Closes-Bug: #1468990
neutron/plugins/ml2/common/exceptions.py
neutron/plugins/ml2/managers.py
neutron/tests/unit/plugins/ml2/test_extension_driver_api.py