<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-neutronclient.git/neutronclient/common/exceptions.py, branch 2.4.0</title>
<subtitle>opendev.org: openstack/python-neutronclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/'/>
<entry>
<title>Revert "Remove unused AlreadyAttachedClient"</title>
<updated>2015-04-09T05:44:35+00:00</updated>
<author>
<name>Akihiro Motoki</name>
<email>motoki@da.jp.nec.com</email>
</author>
<published>2015-04-09T05:41:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=d6cfd34e13426b88b40cb6ef7fdcd60d9b7dcb6b'/>
<id>d6cfd34e13426b88b40cb6ef7fdcd60d9b7dcb6b</id>
<content type='text'>
The removal of AlreadyAtatchedClient exception from neutronclient
suddenly causes the failure of neutronclient icehouse job.
It is better to wait the removal of the exception until Icehouse EOL
(which will come soon).

This reverts commit 30b198edec988d7c969c1edd4a2754bd9c9c79f4.
Closes-Bug: #1441969

Change-Id: Ifa02a4ca39bc9c0fe9b65d5b0d66c588885cb12c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The removal of AlreadyAtatchedClient exception from neutronclient
suddenly causes the failure of neutronclient icehouse job.
It is better to wait the removal of the exception until Icehouse EOL
(which will come soon).

This reverts commit 30b198edec988d7c969c1edd4a2754bd9c9c79f4.
Closes-Bug: #1441969

Change-Id: Ifa02a4ca39bc9c0fe9b65d5b0d66c588885cb12c
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused AlreadyAttachedClient</title>
<updated>2015-03-11T13:17:43+00:00</updated>
<author>
<name>Doug Fish</name>
<email>drfish@us.ibm.com</email>
</author>
<published>2015-03-11T13:15:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=30b198edec988d7c969c1edd4a2754bd9c9c79f4'/>
<id>30b198edec988d7c969c1edd4a2754bd9c9c79f4</id>
<content type='text'>
This exception is no longer referenced in Horizon.  It should
be removed as noted in the TODO being removed.

Change-Id: I9970ca375d19476c12891475d0a8c0c559e0507f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This exception is no longer referenced in Horizon.  It should
be removed as noted in the TODO being removed.

Change-Id: I9970ca375d19476c12891475d0a8c0c559e0507f
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mixed usage of _</title>
<updated>2014-11-08T13:40:41+00:00</updated>
<author>
<name>Hideki Saito</name>
<email>saito@fgrep.org</email>
</author>
<published>2014-11-08T12:13:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=02c108fd0010798927f144b1dfee9f4ec1947f41'/>
<id>02c108fd0010798927f144b1dfee9f4ec1947f41</id>
<content type='text'>
* all modules are using function of _ from oslo.i18n
* remove the definition of _ from openstack.common.__init__.py for safety

Change-Id: Ice2f8be1190fd13e8991a8c7fa55ca636341e875
Closes-Bug: #1382476
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* all modules are using function of _ from oslo.i18n
* remove the definition of _ from openstack.common.__init__.py for safety

Change-Id: Ice2f8be1190fd13e8991a8c7fa55ca636341e875
Closes-Bug: #1382476
</pre>
</div>
</content>
</entry>
<entry>
<title>Add InvalidIpForNetworkClient exception</title>
<updated>2014-10-13T18:06:02+00:00</updated>
<author>
<name>Qin Zhao</name>
<email>chaochin@gmail.com</email>
</author>
<published>2014-09-16T08:09:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=092e6680adf1357ce5a41524f386d1b2073fd453'/>
<id>092e6680adf1357ce5a41524f386d1b2073fd453</id>
<content type='text'>
When posting an 'attach interface' request to Nova with an invalid
ip for defined network, Nova returns an HTTP 500 error. In fact,
Neutron returns 'InvalidInput' error, but Neutron client is not able
to translate this error to a specific exception. So that a general
'BadRequest' exception is thrown. Neutron client and Nova need a more
specific Neutron error type, in order to address and translate the
error in to a proper Nova exception.

Change-Id: Idd964c33476d7559f642287d577f8a6122d7674c
Partial-Bug: 1369871
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When posting an 'attach interface' request to Nova with an invalid
ip for defined network, Nova returns an HTTP 500 error. In fact,
Neutron returns 'InvalidInput' error, but Neutron client is not able
to translate this error to a specific exception. So that a general
'BadRequest' exception is thrown. Neutron client and Nova need a more
specific Neutron error type, in order to address and translate the
error in to a proper Nova exception.

Change-Id: Idd964c33476d7559f642287d577f8a6122d7674c
Partial-Bug: 1369871
</pre>
</div>
</content>
</entry>
<entry>
<title>Unify doc-strings format</title>
<updated>2014-08-28T08:42:12+00:00</updated>
<author>
<name>Stanislav Kudriashev</name>
<email>stas.kudriashev@gmail.com</email>
</author>
<published>2014-08-21T12:45:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=48da7226c01e3b69e8a53f9b1e42597c56d15483'/>
<id>48da7226c01e3b69e8a53f9b1e42597c56d15483</id>
<content type='text'>
Change-Id: If6cf2caeae294db30a8988ab861441211b651580
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If6cf2caeae294db30a8988ab861441211b651580
</pre>
</div>
</content>
</entry>
<entry>
<title>Add MacAddressInUseClient exception handling</title>
<updated>2014-07-23T17:37:30+00:00</updated>
<author>
<name>Matt Riedemann</name>
<email>mriedem@us.ibm.com</email>
</author>
<published>2014-07-23T16:27:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=5eeba0ca19a683ef546cacd280a0dd1dfdb4995e'/>
<id>5eeba0ca19a683ef546cacd280a0dd1dfdb4995e</id>
<content type='text'>
Nova needs a specific client exception defined for the server's
MacAddressInUse exception when allocating ports so it can handle the
exception properly, otherwise the NeutronClientException with a 409 can
be confused with other errors.

Partial-Bug: #1347778

Change-Id: Ia02dbc8fe32a43adeb229e3b640b9b33ec0dd6c7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Nova needs a specific client exception defined for the server's
MacAddressInUse exception when allocating ports so it can handle the
exception properly, otherwise the NeutronClientException with a 409 can
be confused with other errors.

Partial-Bug: #1347778

Change-Id: Ia02dbc8fe32a43adeb229e3b640b9b33ec0dd6c7
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Ensure .status_code is defined for all NeutronClientExceptions"</title>
<updated>2014-06-25T17:08:14+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-06-25T17:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=855811edd92fa260c34247e179c5d0a6546847b3'/>
<id>855811edd92fa260c34247e179c5d0a6546847b3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure .status_code is defined for all NeutronClientExceptions</title>
<updated>2014-06-25T04:41:24+00:00</updated>
<author>
<name>Angus Lees</name>
<email>gus@inodes.org</email>
</author>
<published>2014-06-06T07:32:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=181a9c7be689668b89c28c3e49b91a238b5b7843'/>
<id>181a9c7be689668b89c28c3e49b91a238b5b7843</id>
<content type='text'>
nova contains plenty of code like:
  except neutron_client_exc.NeutronClientException as e:
      if e.status_code == 409:
          ...

This change declares a fallback of 0 for exceptions without a more
explicit status code.  This was the behaviour prior to Change-Id
I99b9560b3afaf5884fd00353323267da450338fa

Change-Id: Ib736205066fd5cd9738fd3fb3b64f6590803cf39
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nova contains plenty of code like:
  except neutron_client_exc.NeutronClientException as e:
      if e.status_code == 409:
          ...

This change declares a fallback of 0 for exceptions without a more
explicit status code.  This was the behaviour prior to Change-Id
I99b9560b3afaf5884fd00353323267da450338fa

Change-Id: Ib736205066fd5cd9738fd3fb3b64f6590803cf39
</pre>
</div>
</content>
</entry>
<entry>
<title>Add OverQuotaClient as exception to neutronclient</title>
<updated>2014-05-31T03:22:53+00:00</updated>
<author>
<name>jichenjc</name>
<email>jichenjc@cn.ibm.com</email>
</author>
<published>2014-04-22T06:20:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=cbdd56da309ab0b610ed1f383f11bea26fa7b8c0'/>
<id>cbdd56da309ab0b610ed1f383f11bea26fa7b8c0</id>
<content type='text'>
In nova, there is no way to explictly knows whether the neutron
fails due to over quota or no more floating ips and fixed ips.
so nova need to check whether the return value is 409 in order to
raise an over quota exception. It's easier in neutronclient to
raise the exception then nova will handle it.

Related-Bug: #1210598

Change-Id: I8788993578ac872da9f676fe3e2fb8f98414289d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In nova, there is no way to explictly knows whether the neutron
fails due to over quota or no more floating ips and fixed ips.
so nova need to check whether the return value is 409 in order to
raise an over quota exception. It's easier in neutronclient to
raise the exception then nova will handle it.

Related-Bug: #1210598

Change-Id: I8788993578ac872da9f676fe3e2fb8f98414289d
</pre>
</div>
</content>
</entry>
<entry>
<title>Rearrange neutronclient exceptions for more easy use</title>
<updated>2014-03-23T21:02:08+00:00</updated>
<author>
<name>Akihiro Motoki</name>
<email>motoki@da.jp.nec.com</email>
</author>
<published>2014-03-22T10:50:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-neutronclient.git/commit/?id=ecad086e5964cc67c8c261861bcc988fe2a3bffb'/>
<id>ecad086e5964cc67c8c261861bcc988fe2a3bffb</id>
<content type='text'>
- Map exceptions from neutron server into corresponding client
  exceptions automatically (without exception mapping dict).
  An exception from Neutron server 'SomeException' will be
  mapped to an exception 'SomeExceptionClient' ('Client' suffix)
  if it is defined.

- If no corresponding exception is defined in client side,
  an exception per response code will be used. Previously
  NeutronClientException was used for all cases and a user
  of client library cannot know exception type without
  checking exception.status_code. It allows client lib users
  (such as Horizon) to handle exceptions more easily.

- All exceptions from client libarry inherit NeutronClientException
  and all CLI related exceptions inherits NeutronCLIError now.

- Remove unused exceptions (including Quantum v1 related)
- MalformedRequestBody is renamed to MalformedResponseBody
  because it is raised in deserializer and deserializer is
  used to parse not request but response.

Closes-Bug: #1296148
Change-Id: I99b9560b3afaf5884fd00353323267da450338fa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Map exceptions from neutron server into corresponding client
  exceptions automatically (without exception mapping dict).
  An exception from Neutron server 'SomeException' will be
  mapped to an exception 'SomeExceptionClient' ('Client' suffix)
  if it is defined.

- If no corresponding exception is defined in client side,
  an exception per response code will be used. Previously
  NeutronClientException was used for all cases and a user
  of client library cannot know exception type without
  checking exception.status_code. It allows client lib users
  (such as Horizon) to handle exceptions more easily.

- All exceptions from client libarry inherit NeutronClientException
  and all CLI related exceptions inherits NeutronCLIError now.

- Remove unused exceptions (including Quantum v1 related)
- MalformedRequestBody is renamed to MalformedResponseBody
  because it is raised in deserializer and deserializer is
  used to parse not request but response.

Closes-Bug: #1296148
Change-Id: I99b9560b3afaf5884fd00353323267da450338fa
</pre>
</div>
</content>
</entry>
</feed>
