nsxt_policy_tier1_gateway: Changing to locale_service
from basic edge_cluster_path
removes/readds Tier1 gateway
#1516
Labels
bug
Bug
Describe the bug
When changing an existing Tier 1 gateway to use
locale_service
with specified preferred edges, the TF provider wants to remove the Tier 1 and then readd it instead of simply changing it in place. If there are any child objects such as firewall policy or service interfaces, the destroy/recreate fails entirely (it might work if they are all part of the same Terraform project, but in our case they are in a different project which references this tier 1 as a data reference).UPDATE: It appears that static routes alone are not enough to cause the teardown to fail, and when those static routes had been added manually, they are lost entirely after the Tier 1 is recreated.
Reproduction steps
UPDATE: Swapping steps 1 and 2 (doing the inverse) once using
locale_service
is even worse. It complains it can't find thelocale_service
object to remove it and the TF apply aborts, so we have no good way to go back to plainedge_cluster_path
either.Create tier 1 using terraform using simple
edge_cluster_path
:Change HCL removing
edge_cluster_path
and addinglocale_service
with specific edge nodes:You should see TF plan suggest removing the Tier 1 and readding (NOT changing in place as we would expect)
Expected behavior
I would expect it to change the Tier 1 in place. After creating the Tier 1 as above in step 1, we are able to modify the Tier 1 using the NSX GUI with the same change and it does it in place without impact.
Additional context
This is a blocker for our organization as we have need to migrate to specific edge node allocations without a major impact for our clients.
The text was updated successfully, but these errors were encountered: