GET /policy/api/v1/infra/ip-pools/<pool-uuid>/ip-allocations/
/var/log/proton/nsxapi.log
:ERROR L2HostConfigTaskExecutor2 IPAMUtils 4433 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP8212" level="ERROR" subcomp="manager"] Failed to get a valid IP from IpPool IpPool/<IP-Pool-UUID> with cidr null, {}.
...
ERROR L2HostConfigTaskExecutor5 IPAMServiceImpl 4433 POOL-MGMT [nsx@6876 comp="nsx-manager" errorCode="MP5109" level="ERROR" subcomp="manager"] Insufficient Resource Exception : no free IP found to allocate from the pool IpPool/<IP-Pool-UUID>
Note: This issue can also occur on NSX edge node.
VMware NSX-T Data Center 3.x
VMware NSX 4.x
When a FORCE delete operation is carried out, the IP addresses in the TEP pool were not released back.
This issue is resolved in VMware NSX 4.1.1
This issue is resolved in VMware NSX 4.2.0
Workaround:
POST https://<nsx-ip>/api/v1/pools/ip-pools/<pool-id>?action=RELEASE
{
"allocation_id": "192.168.0.3"
}
Note: 192.168.0.3 is an IP address in the IP pool subnet and is showing as allocated, replace the address with an IP address you wish to free from the IP pool.
GET https://{{nsx-mgr}}/api/v1/pools/ip-pools/<IP-Pool-UUID>/allocations