NSX|V3: Init FWaaS before spawn

Otherwise RPC consumers are created per worker and each requests
is handled multiple times

Change-Id: I730efed9642bfc86d9b4aa84eabc07aa6f7507a7
This commit is contained in:
Adit Sarfaty
2019-01-28 14:27:01 +02:00
parent 99cace2eb4
commit d9cd01fb2b

View File

@@ -402,6 +402,9 @@ class NsxV3Plugin(nsx_plugin_common.NsxPluginV3Base,
self,
self._get_octavia_stats_getter()))
# Init the FWaaS support
self._init_fwaas()
def init_complete(self, resource, event, trigger, payload=None):
with locking.LockManager.get_lock('plugin-init-complete'):
if self.init_is_complete:
@@ -413,9 +416,6 @@ class NsxV3Plugin(nsx_plugin_common.NsxPluginV3Base,
self.nsxlib.reinitialize_cluster(resource, event, trigger,
payload=payload)
# Init the FWaaS support
self._init_fwaas()
# Init the house keeper
self.housekeeper = housekeeper.NsxHousekeeper(
hk_ns='vmware_nsx.neutron.nsxv3.housekeeper.jobs',