Comment 5 for bug 1376936

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/125863
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8cedf63e5ccc9a023884b77fc460f8372300012d
Submitter: Jenkins
Branch: master

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

    Change-Id: Ifee3476622b227991a4c2a2780ae7ff23787ccb9
    Closes-Bug:1376936