Basically, in case of concurrent requests creating ports
on *one* network, only one request succeeds, other requests
mostly getting 'standardattribute' update error as network
revision_number changed about 8 times for all port updates.
This patch increases network revision_number in database,
only when a port is created in a network, instead of each
update on port.
Reviewed: https:/ /review. openstack. org/587373 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=e9a7ed8c63e c5bb0fdca3406c8 b21071729dd09d
Committed: https:/
Submitter: Zuul
Branch: master
commit e9a7ed8c63ec5bb 0fdca3406c8b210 71729dd09d
Author: <email address hidden> <email address hidden>
Date: Tue Jul 31 06:16:09 2018 -0400
Update network revision only when it needs
Basically, in case of concurrent requests creating ports
on *one* network, only one request succeeds, other requests
mostly getting 'standardattribute' update error as network
revision_number changed about 8 times for all port updates.
This patch increases network revision_number in database,
only when a port is created in a network, instead of each
update on port.
Change-Id: Idffb4edda61667 7b9b071644d3835 c85052091a5
Closes-Bug: #1782421