]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Force service provider relationships to load
authorBrandon Logan <brandon.logan@rackspace.com>
Wed, 9 Dec 2015 00:24:28 +0000 (18:24 -0600)
committerBrandon Logan <brandon.logan@rackspace.com>
Thu, 10 Dec 2015 07:26:51 +0000 (01:26 -0600)
commitf218929bc5126466b2a79b56d32e9cf042aa176d
tree836578d6b2d74e758b74da11967e5fb917af68fd
parentc51f56f57b5cf67fc5e174b2d7a219990b666809
Force service provider relationships to load

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
neutron/db/servicetype_db.py