vCenter brownfield import fails with negative memory resources error
search cancel

vCenter brownfield import fails with negative memory resources error

book

Article ID: 436533

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • When performing a vCenter brownfield import in VMware Cloud Foundation (VCF), the process fails during the ValidateDomainResourcesForNsxDeploymentAction workflow step.
  • The VCF Operations UI displays below 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-29]  [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.
  • If the vCenter cluster has several Load-VM-X VMs deployed., Although these VMs are not active, SDDC Manager does consider them during resource computation 

Resolution

This will be fixed in 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. Retry Task: Once the stale objects are removed, vCenter will recalculate true cluster capacity. Return to the SDDC Manager UI and retry the failed task.