[nsx@6876 comp="nsx-manager" errorCode="PM500016" level="ERROR" subcomp="manager"] Unable to delete provider /infra/tier-0s/<VRF-ID>[nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Message returned [Routing] This logical router port LrPort/<UUID> has ha vip configured. It cannot be deleted, please remove the ha vip configuration from LogicalRouter LogicalRouter/<UUID> first.Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware NSX
This issue occurs due to a race condition triggered by a specific automation workflow where two operations to the VRF configuration are executed in quick succession without a pause.
Because the steps occur back-to-back, the updates overlap. The process responsible for cleaning up the HA VIP configuration fails because the VRF enters a "delete pending" state from the subsequent deletion calls. Consequently, the HA VIP configuration remains on the port, creating a dependency that prevents the Tier-0 VRF from being deleted.
This is a known issue impacting VMware NSX.
Workaround
If you believe you have encountered this issue and have a VRF already in this state, open a support case with Broadcom Support and refer to this KB article. For more information, see Creating and managing Broadcom support cases.
To prevent this issue in future automation scripts, ensure that the script verifies the realization of the PATCH or delete operation (removal of HA VIP) before initiating the DELETE operation for the Tier-0 or its interfaces or simply add a 1 second pause in between each delete call.