diff options
author | Melanie Witt <melwitt@yahoo-inc.com> | 2013-05-29 01:01:07 +0000 |
---|---|---|
committer | Melanie Witt <melwitt@yahoo-inc.com> | 2013-06-22 08:39:04 +0000 |
commit | 3401cca5bbc89f713d5c853f62a713d6219dac28 (patch) | |
tree | f3b418de83c51131616acaa90afca02ea47b80bd /nova/utils.py | |
parent | cefb0510b8f12dab17126907661d82094c31741d (diff) | |
download | nova-3401cca5bbc89f713d5c853f62a713d6219dac28.tar.gz nova-3401cca5bbc89f713d5c853f62a713d6219dac28.tar.xz nova-3401cca5bbc89f713d5c853f62a713d6219dac28.zip |
refactor security group api not to raise http exceptions
The SecurityGroupAPI had been raising http exceptions,
resulting in a difference in behavior depending on the
driver being used: nova or quantum. The nova driver
re-raises nova exceptions by default, while the quantum
driver was raising the built-in http exceptions. Since
servers.py handles nova exceptions, in some cases the
quantum driver's http exceptions weren't being handled
and resulted in a different http return code to the
user.
Both SecurityGroupAPI classes inherit from
NativeSecurityGroupExceptions and call its static
methods to raise exceptions.
This change refactors SecurityGroupAPI to raise nova
exceptions by modifying NativeSecurityGroupExceptions.
The nova exceptions are then translated to http
exceptions in the security group wsgi extension.
Fixes bug 1183347
Change-Id: I7177183154b4c41037623f443cf9958ac457a020
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions