Return HTTP 400 if use invalid fixed ip to attach interface
When posting an 'attach interface' request to Nova with an invalid fixed ip,
Nova need to return HTTP 400, instead of HTTP 500, in order to inform the
user to correct the fixed ip in HTTP request. It is an API v2 only problem.
Reviewed: https:/ /review. openstack. org/119128 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c1be465b07e 7a107e68142acaa 4396e6e7792146
Committed: https:/
Submitter: Jenkins
Branch: master
commit c1be465b07e7a10 7e68142acaa4396 e6e7792146
Author: Qin Zhao <email address hidden>
Date: Fri Sep 5 00:46:30 2014 +0800
Return HTTP 400 if use invalid fixed ip to attach interface
When posting an 'attach interface' request to Nova with an invalid fixed ip,
Nova need to return HTTP 400, instead of HTTP 500, in order to inform the
user to correct the fixed ip in HTTP request. It is an API v2 only problem.
Change-Id: I34fc813f38b463 460c59672e6c336 4aea9ef347d
Closes-Bug: 1365579