commit 8cedf63e5ccc9a023884b77fc460f8372300012d
Author: Chris Yeoh <email address hidden>
Date: Fri Oct 3 12:15:23 2014 +0930
Correctly catch InstanceExists in servers create API
When osapi_compute_unique_server_name_scope is set to project
or global an attempt to create a server with a name which
already exists results in an InstanceExists exception being raised.
This was not being handled in the API layer causing a 500
status error code. This patch fixes it so the exception is caught
correctly and a 409 Conflict is returned instead
Reviewed: https:/ /review. openstack. org/125863 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8cedf63e5cc c9a023884b77fc4 60f8372300012d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8cedf63e5ccc9a0 23884b77fc460f8 372300012d
Author: Chris Yeoh <email address hidden>
Date: Fri Oct 3 12:15:23 2014 +0930
Correctly catch InstanceExists in servers create API
When osapi_compute_ unique_ server_ name_scope is set to project
or global an attempt to create a server with a name which
already exists results in an InstanceExists exception being raised.
This was not being handled in the API layer causing a 500
status error code. This patch fixes it so the exception is caught
correctly and a 409 Conflict is returned instead
Change-Id: Ifee3476622b227 991a4c2a2780ae7 ff23787ccb9 Bug:1376936
Closes-