VMware Cloud Foundation Network Pool delete is not available after a failed WLD creation, even though hosts are decommissioned
search cancel

VMware Cloud Foundation Network Pool delete is not available after a failed WLD creation, even though hosts are decommissioned

book

Article ID: 313789

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware vSphere ESXi

Issue/Introduction

Symptoms:
WLD Domain creation task fails during "Create VCF Domain Inventory Object Action" and a similar error log is present in /var/log/vmware/vcf/domainmanager/domainmanager.log on the SDDC Manager:
ERROR [vcf_dm,60a85256b1d98ee8,a786][c.v.v.c.f.a.BaseCreateVcfClusterObjectAction,dm-exec-5] Could not fetch network for type

Also the network pool used for the domain cannot be deleted, even though the hosts associated with it are decommissioned:

  •  Button in UI is grayed out with message that there are associated ESXi Hosts.
  • API delete request produce a similar error in /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log: NETWORKPOOL_IPADDRESSES_IN_USE Deletion of network pool c38d14a8-2c95-4203-a846-9b8978b02e25 prevented. IP Addresses in use



Cause

A vSAN portGroup transportType is used in Domain Creation API, while the associated network pools of the hosts used, do not contain a vSAN network.

Resolution

Do not use the consumed IP addresses of the used network pool.

See the following KB which contains a script to remove stale ip addresses:  

"Failed to validate host spec - Insufficient free IPs" or "Failed to allocate IPs from networks with error"

https://knowledge.broadcom.com/external/article/316098/

Workaround:

If the above does not work then open a case with Technical Support for them to manually delete the allocated IPs by the failed Domain Creation in the database, or the whole network_pool if it is not used by other hosts.