Attempts to delete a network pool in SDDC Manager may fail if the platform database in SDDC Manager indicates that IP addresses are still allocated, even if no active hosts are using them.
Symptoms:
SDDC Manager UI displays error: Failed to remove network pool. Deletion of network pool #### prevented. IP Addresses in use Reference token: ####.
Database queries confirm stale IP entries in the vcf_network table in SDDC manager:
psql -h localhost -U postgres -d platform -c "select id,type,used_ip_addresses from vcf_network where type='VSAN';"
psql -h localhost -U postgres -d platform -c "select id,type,used_ip_addresses from vcf_network where type='VMOTION';"
VMware Cloud Foundation (VCF) 9.1
SDDC Manager 9.1
Stale IP address allocations remain in the SDDC Manager platform database. This occurs when hosts are removed or rebuilt without completing the proper decommission workflow.
Release unused vMotion or vSAN IP addresses from the SDDC Manager network pool using following steps:
Note: Take a snapshot of the SDDC Manager VM prior to any changes : Taking and restoring snapshots of the SDDC Manager appliance
SSH into SDDC Manager as vcf and elevate to root.
Download the staleIpCleanup script from KB 316098
Copy the python script to the /home/vcf/ directory on the SDDC Manager.
Execute the cleanup script: python staleIpCleanup.py
Ensure the network pool is empty before attempting to delete it via SDDC Manager.