A race condition was exposed in the LBaaS V2 db layer that was caused by a
hack to get around this issue. The real issue is that since the
ProviderResourceAssociation is inserted independently, any models that were
created before this insert will not have their relationship with the
ProviderResourceAssocation loaded. Using the session.expire_all method will
force the session to retrieve all new data and load this relationship for any
resource that uses this relationship.
Change-Id: I940b541f4ef9c489126cd2d215b1d857f0624de0
Closes-Bug: #1504465
(cherry picked from commit f218929bc5126466b2a79b56d32e9cf042aa176d)
Reviewed: https:/ /review. openstack. org/259516 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=ca63e55112f 9a4fc2117aeadd8 ac0c22438e5e41
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit ca63e55112f9a4f c2117aeadd8ac0c 22438e5e41
Author: Brandon Logan <email address hidden>
Date: Tue Dec 8 18:24:28 2015 -0600
Force service provider relationships to load
A race condition was exposed in the LBaaS V2 db layer that was caused by a ourceAssociatio n is inserted independently, any models that were ourceAssocation loaded. Using the session.expire_all method will
hack to get around this issue. The real issue is that since the
ProviderRes
created before this insert will not have their relationship with the
ProviderRes
force the session to retrieve all new data and load this relationship for any
resource that uses this relationship.
Change-Id: I940b541f4ef9c4 89126cd2d215b1d 857f0624de0 6b2a79b56d32e9c f042aa176d)
Closes-Bug: #1504465
(cherry picked from commit f218929bc512646