vCenter brownfield import/conversion fails with negative memory resources error
search cancel

vCenter brownfield import/conversion fails with negative memory resources error

book

Article ID: 436533

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware vSphere ESXi

Issue/Introduction

  • When performing a vCenter brownfield import/conversion in VMware Cloud Foundation (VCF), the process fails during the ValidateDomainResourcesForNsxDeploymentAction workflow step.
  • The VCF Operations UI /VCF installer displays the following error indicating that there are insufficient resources"
    Validate hosting Domain has enough Resources for NSX Deployment
    
    Description:    Validate hosting Domain has enough Resources for NSX Deployment
    
    
    Progress Messages: Not enough resources found in management domain. Required - CPU:6 vCpus, Memory:24 GB, Storage:300 GB. Available - CPU:978 vCpus,                                              
    
    Memory : -42 GB, Storage:13207 GB.
    
    Error Message:  Not enough resources found in management domain. Required -CPU:6 vCpus, Memory:24 GB, Storage:300 GB. Available - CPU:978 vCpus.
    Memory : -42 GB Storage:13207 GB.
    Remediation Message:
    Reference Token: ######
    
  • Error in  /var/log/vmware/vcf/domainmanager/domainmanager.log 
    ERROR [vcf_dm,##########,cd##] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-##]  [BQN6UM] NOT_ENOUGH_RESOURCES_IN_MANAGEMENT_DOMAIN Not enough resources found in management domain. Required - CPU:6 vCpus, Memory:24 GB, Storage:300 GB. Available - CPU:972 vCpus, Memory:-64 GB, Storage:13232 GB. 
    com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Not enough resources found in management domain. Required - CPU:6 vCpus, Memory:24 GB, Storage:300 GB. Available - CPU:972 vCpus, Memory:-64 GB, Storage:13232 GB.

Environment

VMware Cloud Foundation (VCF) 9.x

Cause

  • The failure is typically caused by stale vSphere Cluster Services (vCLS) VM configurations residing in the primary management cluster. These stale configurations create phantom resource reservations that cause vCenter to return invalid or negative memory availability data when queried by SDDC Manager.
  • Alternatively, this can happen if there are multiple VMs in the cluster are in powered off state with the combined allocated memory greater than the memory available on the host. Since SDDC Manager considers the allocated memory for powered off VMs during resource computation the available resources can show in negative.

Resolution

This will be fixed in a future release of VMware Cloud Foundation

As a workaround, clear the invalid reservations by removing the stale virtual machines:

  1. Clean up vCLS VMs: Follow the procedures in KB 316514 to safely remove and reset vCLS VM configurations from the impacted cluster.

  2. Remove Unwanted VMs: Identify and remove any other decommissioned or unwanted virtual machines that may still have active resource reservations in the management cluster.

  3. Temporarily move the powered off VMs: If deleting the powered off VMs altogether is not an option, move these servers to another cluster.
  4. Retry Task: vCenter will recalculate true cluster capacity. Return to the SDDC Manager UI and retry the failed task.