From b9d65bda750cf86c6a13b84355e5778b53c26e10 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Thu, 5 Nov 2020 09:20:22 +0200 Subject: [PATCH] NSX|P: Skip edge cluster realization Currently the policy plugin waits on Tier1 edge cluster realization. This causes a big delay on scale scenarios. Trying to remove this for newer NSX versions in order to check if the underlying problem is still relevant Change-Id: I624453355b1c3e5d9e00fe9897d1b3deddf566f8 --- vmware_nsx/plugins/nsx_p/plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index e68f55264f..a2084f6d3f 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -2493,6 +2493,12 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): if not cfg.CONF.nsx_p.allow_passthrough: return + # TODO(asarfaty): Update version or use feature once this is fixed + if utils.is_nsx_version_3_1_0(self._nsx_version): + LOG.debug("Not waiting for edge cluster realization with NSX %s", + self._nsx_version) + return + lr_id = self.nsxpolicy.tier1.get_realized_id( router_id, entity_type='RealizedLogicalRouter') if not lr_id: