After deleting IP Address Pool the status of the IP Address Pool is "In Progress"
search cancel

After deleting IP Address Pool the status of the IP Address Pool is "In Progress"

book

Article ID: 382627

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • After deleting IP Address Pool you can see that the status shows "In Progress":

Environment

VMware NSX

Cause

Most likely the deletion of the IP Address Pools is not progressing because there are some IPs still allocated from this IP Address Pool. 

Resolution

Follow the following procedure to release the IPs from the affected IP Address Pool:

  1. To identify the IP address pool in question use the following Policy API call while logged in to NSX Manager over SSH as root:

     curl -k -u 'admin:<password>' -X GET 'https://<nsx-manager-fqdn>/policy/api/v1/infra/ip-pools?include_mark_for_delete_objects=true'

    NOTE:  Take a note of "unique_id"   and also take a note of "path"

  2. Get the list of IP-allocations using the following API call:

     curl -k -u 'admin:<password>' -X GET 'https://<nsx-manager-fqdn>/api/v1/pools/ip-pools/<unique-id-from-step-1>/allocations'

  3. Try to identify what is using the IP addresses and remove the allocations through NSX UI. If there are nothing found and these look like stale IP Address allocations then release the IP addresses from the IP pool using the following API Call:

    curl -u 'admin:<password>' -H "Content-Type: application/json" -k -X POST https://<nsx-manager-fqdn>/api/v1/pools/ip-pools/<unique-id-from-step-1>?action=RELEASE  -d '{"allocation_id":"<IP Address>"}'

  4. Perform step 2 to confirm that there are no more allocations.
  5. Perform step 1 and confirm that the IP pool in question still exists and mark_for_delete is equals to true
  6. Run the following API call to delete the stale IP Address Pool:

    curl -k -u 'admin:<password>' -X DELETE 'https://<nsx-manager-fqdn>/api/v1/<path-from-step-1/'

    for example:   curl -k -u 'admin:#########' -X DELETE 'https://<nsx-manager-fqdn>/api/v1/infra/ip-pools/IP-Pool-name-from-path/'