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
This commit is contained in:
asarfaty 2020-11-05 09:20:22 +02:00 committed by Adit Sarfaty
parent db9882bd7b
commit 17eed11f88
1 changed files with 6 additions and 0 deletions

View File

@ -2490,6 +2490,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: