Comment 8 for bug 1582585

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to keystone (master)

Reviewed: https://review.openstack.org/343027
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=29624d47e316d2e63f464b2d25043ec7598afa05
Submitter: Jenkins
Branch: master

commit 29624d47e316d2e63f464b2d25043ec7598afa05
Author: Boris Bobrov <email address hidden>
Date: Fri Jul 15 21:29:47 2016 +0300

    Prevent error when duplicate mapping is created

    The mapping has unique constraint and creating a mapping with the same
    local entity will fail. Creation of mapping with the same local entity
    might happen because of race condition, that would happen if 2 processes
    start mapping of the same local entity at the same time.

    Return the existing public_id if creation failed due to duplicate.

    Change-Id: Ic6e6ec9614e16a49c791dc6c06a4464d18be09be
    Related-Bug: 1582585