From 5674a4ba42f4eb8adc7e13c6d8b79e31967571d1 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 87e76b9274..96d36741d8 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -2504,6 +2504,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: