commit 7534c0066354a2e2df03dacfcf89820539d2306f
Author: Hong Hui Xiao <email address hidden>
Date: Tue Dec 13 16:29:08 2016 +0800
Retrieve fresh network DB data before getting it in ml2
The DB objects that have join relationship with network, will be
acquired once during a DB transaction.
However, if they are updated after the first acquisition, the network
DB model object maintains the older value, and doesnt update it.
After cd7d63bde92e47a4b7bd4212b2e6c45f08c03143, the updated network
is retrieved from the db causing this bug.
This patch retrieves the latest data for these DB objects so that
updated information can be used.
In order to pass functional tests, get_network is still called instead
of _make_network_dict as in original change.
Change-Id: Ic8935008515bed687ad3abd00c8ccaf656a30452
Closes-Bug: #1649503
(cherry-pick from commit e5ad765484e546b9f857a91c0fea41ebfd87adab)
Reviewed: https:/ /review. openstack. org/465958 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7534c006635 4a2e2df03dacfcf 89820539d2306f
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 7534c0066354a2e 2df03dacfcf8982 0539d2306f
Author: Hong Hui Xiao <email address hidden>
Date: Tue Dec 13 16:29:08 2016 +0800
Retrieve fresh network DB data before getting it in ml2
The DB objects that have join relationship with network, will be
acquired once during a DB transaction.
However, if they are updated after the first acquisition, the network
DB model object maintains the older value, and doesnt update it.
After cd7d63bde92e47a 4b7bd4212b2e6c4 5f08c03143, the updated network
is retrieved from the db causing this bug.
This patch retrieves the latest data for these DB objects so that
updated information can be used.
In order to pass functional tests, get_network is still called instead
of _make_network_dict as in original change.
Change-Id: Ic8935008515bed 687ad3abd00c8cc af656a30452 9f857a91c0fea41 ebfd87adab)
Closes-Bug: #1649503
(cherry-pick from commit e5ad765484e546b