Error: Failed to validate host selection. InternalServerError during workload domain deployment validation in VCF 9.0.2
search cancel

Error: Failed to validate host selection. InternalServerError during workload domain deployment validation in VCF 9.0.2

book

Article ID: 446809

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • Creation of a new workload domain fails during the validation stage (Stage 8 of 10).
  • SDDC Manager UI displays the error: "Failed to validate host selection. InternalServerError".
  • In /var/log/vmware/vcf/domainmanager/domainmanager.log, the following entries appear:
    DEBUG ... Searching for VM with address ##.##.##.##
    DEBUG ... VM with address ##.##.##.## not found
    ERROR ... Failed to validate DomainCreationSpec java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

Environment

VMware Cloud Foundation 9.0.2

Cause

This issue occurs because the AutoFillIpAddressService detects an APIPA (169.254.####.####) IP address on the management vCenter VM. When the service attempts to obtain the management network by connecting to vCenter and searching for the VM by IP, the presence of multiple IPs (including the invalid APIPA address) causes the inventory lookup to fail, resulting in a 500 Internal Server Error.

Resolution

Fixed in release 9.1 and higher. See Download Broadcom products, patches and software to download this release

Workaround: Perform the following steps to clear the invalid network state and complete the deployment:

  1. Identify the affected ESXi hosts, management vCenter, and SDDC Manager VM.
  2. Reboot the vCenter Server Appliance.
  3. Reboot the SDDC Manager VM.
  4. Reboot the ESXi hosts intended for the new workload domain.
  5. Retry the workload domain deployment wizard. The validation service now correctly identifies the management network.