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).
Reviewed: https:/ /review. openstack. org/146404 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=09fe057cd47 5fe9068339f9805 fa855476e248bf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 09fe057cd475fe9 068339f9805fa85 5476e248bf
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: Iad7460356ceb74 d963cddf5ec3326 8d77792f1fe
Closes-Bug: #1194565