MP2P migration: Wait for gateway firewall runtime status success
before deleting the old edge firewall rules Change-Id: I9612372d466507df8c68bed6c423503d0e1a9c18
This commit is contained in:
parent
c2f93b8bf6
commit
17ece5433f
|
@ -1355,8 +1355,10 @@ def post_migration_actions(nsxlib, nsxpolicy, nsxpolicy_admin, plugin):
|
||||||
# Remove old rules from the default sections
|
# Remove old rules from the default sections
|
||||||
for section in nsx_router_sections:
|
for section in nsx_router_sections:
|
||||||
# make sure the policy section was already realized
|
# make sure the policy section was already realized
|
||||||
nsxpolicy.gateway_policy.wait_until_realized(
|
# with runtime_status=SUCESS
|
||||||
policy_constants.DEFAULT_DOMAIN, section['router_id'])
|
nsxpolicy.gateway_policy.wait_until_state_sucessful(
|
||||||
|
policy_constants.DEFAULT_DOMAIN, section['router_id'],
|
||||||
|
max_attempts=600, with_refresh=True)
|
||||||
nsxlib.firewall_section.update(
|
nsxlib.firewall_section.update(
|
||||||
section['id'], rules=[section['default_rule']])
|
section['id'], rules=[section['default_rule']])
|
||||||
LOG.debug("Deleted MP edge FW section %s rules", section['id'])
|
LOG.debug("Deleted MP edge FW section %s rules", section['id'])
|
||||||
|
|
Loading…
Reference in New Issue