OpenStack/AWS - Forcing Deletion of Virtual Service Ports in Neutron
In OpenStack or Amazon Web Services (AWS) clouds, when a virtual service is deleted from Avi Vantage, the port associated with the VIP of the virtual service also is deleted. However, the ports associated with the pool networks of the virtual service are not immediately deleted. Instead, they are removed as part of a garbage collection process.
In 15.x and 16.1-16.1.5, the garbage collection process can take anywhere from 5 to 20 minutes. In 16.1.6 and higher, the process can take about 15 minutes.
To force faster deletion of the ports, the following CLI command or API request can be used.
To force faster deletion of the ports, the following CLI command can be used:
exec cloud cloud-name gc force
The command will need to be run 3 or 4 times. The first time the command is run the ports are marked for deletion. The ports are then deleted upon subsequent runs of the command.
To force faster deletion of the unneeded ports, use the following API request: