From d9cd01fb2bb7b28d388e2e349ac677df2a8abb30 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Mon, 28 Jan 2019 14:27:01 +0200 Subject: [PATCH] NSX|V3: Init FWaaS before spawn Otherwise RPC consumers are created per worker and each requests is handled multiple times Change-Id: I730efed9642bfc86d9b4aa84eabc07aa6f7507a7 --- vmware_nsx/plugins/nsx_v3/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index 161b67b360..e3e04f1ee0 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -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',