Symptoms:
Recommission host failing with an error 'Failed to allocate IPs from networks with error'
Host was decommissioned due to hardware failure, reimaged and attempt was made to re-add to same IP configuration.
Information can be gathered from logs:
domainmanager.log
2023-09-12T15:14:30.340+0000 ERROR [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] Error occurred fetching all the networks from the network pool 1945ec21-00b6-43dc-b995-9650ff67187c
..
2023-09-12T15:14:30.351+0000 DEBUG [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.utils.IpAllocationUtil,dm-exec-13] ESXi Host <ESXiHostname.domain> does not have an allocated IP for network type VMOTION
..
2023-09-12T15:14:30.356+0000 WARN [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] There are no IP addresses blocked for network 030c4875-c363-454a-9553-5de85c262059.
..
2023-09-12T15:14:30.355+0000 INFO [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] Unblocking all IP addresses in the network dae75cdf-3480-42f4-ac90-e4f18a06693c for the execution ID f94bc9dd-998e-4590-aec0-3c2b05c70828.
2023-09-12T15:14:30.355+0000 WARN [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] There are no IP addresses blocked for network dae75cdf-3480-42f4-ac90-e4f18a06693c.
2023-09-12T15:14:30.356+0000 INFO [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] Unblocking all IP addresses in the network 030c4875-c363-454a-9553-5de85c262059 for the execution ID f94bc9dd-998e-4590-aec0-3c2b05c70828.
2023-09-12T15:14:30.356+0000 WARN [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.c.s.a.n.NetworkPoolAdapterImpl,dm-exec-13] There are no IP addresses blocked for network 030c4875-c363-454a-9553-5de85c262059.
2023-09-12T15:14:30.360+0000 ERROR [vcf_dm,50bfa8598976449f,38a0] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-13] [MP29FJ] SDDC_MANAGER_FAILED_TO_ASSIGN_IP Failed to allocate IPs from networks with error:
Confirm the Networks for which above mentioned IDs belong to
In this case,
dae75cdf-3480-42f4-ac90-e4f18a06693c - vMotion
030c4875-c363-454a-9553-5de85c262059 - vSAN
Update network information using the public APIs Network Pools APIs | VMware Cloud Foundation API
If unable to complete the task, please contact VMware Broadcom GS to manually edit the SDDC Manager database