diff options
author | Matt Riedemann <mriedem@us.ibm.com> | 2013-11-04 14:05:09 -0800 |
---|---|---|
committer | Matt Riedemann <mriedem@us.ibm.com> | 2013-11-25 03:44:07 -0800 |
commit | 2dd8f7afe2480ff25d58b4e4021c4e562697a167 (patch) | |
tree | aade37b8031aff8cd35fa6b57d056d68318aee46 /neutronclient/common/exceptions.py | |
parent | c67eeee942d062494038b0dcc348575b743242eb (diff) | |
download | python-neutronclient-2dd8f7afe2480ff25d58b4e4021c4e562697a167.tar.gz |
Handle IpAddressInUse with client exception
Nova is not able to reliably distinguish between port OverQuota 409
errors and IpAddressInUse 409 errors when setting up networks for
instances. The client needs to provide a more granular exception so
nova can translate the error to it's own set of exceptions.
Also adds a test case for the exception_handler_v20 utility method which
was lacking explicit test coverage before this change.
Partial-Bug: #1247844
Change-Id: I71589097ae660c3385b3f4ff93ffae99ac7042b9
Diffstat (limited to 'neutronclient/common/exceptions.py')
-rw-r--r-- | neutronclient/common/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/neutronclient/common/exceptions.py b/neutronclient/common/exceptions.py index b3ab4d7..ca25db7 100644 --- a/neutronclient/common/exceptions.py +++ b/neutronclient/common/exceptions.py @@ -86,6 +86,10 @@ class PortInUseClient(NeutronClientException): pass +class IpAddressInUseClient(NeutronClientException): + pass + + class AlreadyAttachedClient(NeutronClientException): pass |