Comment 6 for bug 1194565

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

Reviewed: https://review.openstack.org/146404
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=09fe057cd475fe9068339f9805fa855476e248bf
Submitter: Jenkins
Branch: master

commit 09fe057cd475fe9068339f9805fa855476e248bf
Author: Cedric Brandily <email address hidden>
Date: Sat Jan 10 14:25:04 2015 +0000

    Use db constraint to ensure mac address uniqueness

    Currently port mac address uniqueness per network is checked before Port
    db object create but without locking. It implies 2 port create requests
    can allocate the same mac address on a network if each request performs
    mac address uniqueness check before the other creates the Port db object.

    This change replaces the check by a db unique constraint on Port
    (network_id, mac_address).

    Change-Id: Iad7460356ceb74d963cddf5ec33268d77792f1fe
    Closes-Bug: #1194565