MP2P migration: check unsupported services pre migration

Change-Id: I7cfeec89a48c40cd65b199286f22903c4267f57e
This commit is contained in:
asarfaty 2020-07-05 10:08:55 +02:00
parent 698309bc35
commit 3fabb980ce

View File

@ -1343,6 +1343,21 @@ def post_migration_actions(nsxlib, nsxpolicy, nsxpolicy_admin, plugin):
def pre_migration_checks(nsxlib, plugin):
"""Check for unsupported configuration that will block the migration
"""
# Cannot migrate with unsupported services
service_plugins = cfg.CONF.service_plugins
for srv_plugin in service_plugins:
if 'vpnaas' in srv_plugin:
LOG.error("Pre migration check failed: VPNaaS is not supported. "
"Please delete its configuration and disable it, before "
"running migration again.")
return False
if 'l2gw' in srv_plugin:
LOG.error("Pre migration check failed: L2GW is not supported. "
"Please delete its configuration and disable it, before "
"running migration again.")
return False
# Tier0 with disabled BGP config
neutron_t0s = get_neurton_tier0s(plugin)
for tier0 in neutron_t0s: