Importing a vCenter in a VCF 9.1 environments, fails at "Perform Brownfield Environment Validations/ The Task was interrupted "
search cancel

Importing a vCenter in a VCF 9.1 environments, fails at "Perform Brownfield Environment Validations/ The Task was interrupted "

book

Article ID: 448253

calendar_today

Updated On:

Products

VCF Operations VMware vSphere ESXi

Issue/Introduction

  • Importing a vCenter in a VCF 9.1 environments fails at:
    Perform Brownfield Environment Validations/ The Task was interrupted
    or
    Existing Components Failed
    The task was interrupted




  • In the logs a Crash of domainmanager, where the date/ time coincides with the date/ time of the process stopping in the UI is observed
    ls -althr /var/log/vmware/vcf/domainmanager/app-crash-logs
    total <TBD>G
    -rw------- 1 vcf_domainmanager vcf 1.5G Month day time java_pid#####1.hprof
    -rw------- 1 vcf_domainmanager vcf 1.4G Month day time java_pid#####2.hprof
    -rw------- 1 vcf_domainmanager vcf 1.4G Month day time java_pid#####3.hprof
    -rw------- 1 vcf_domainmanager vcf 1.4G Month day time java_pid#####4.hprof
    -rw------- 1 vcf_domainmanager vcf 1.5G Month day time java_pid#####5.hprof
    -rw------- 1 vcf_domainmanager vcf 1.5G Month day time java_pid#####6.hprof
  • Furthermore, the crash is confirmed:
    └─$ cat domainmanager.out
    \ \    / / ____|  ____|
     \ \  / / |    | |__
      \ \/ /| |    |  __|
       \  / | |____| |
        \/   \_____|_|
    Domain Manager
    java.lang.OutOfMemoryError: Java heap space
    Dumping heap to /var/log/vmware/vcf/domainmanager/app-crash-logs/java_pid#######6.hprof ...
    Heap dump file created [############# bytes in 81.488 secs]
    Terminating due to java.lang.OutOfMemoryError: Java heap space

Environment

VMware Cloud Foundation 9.1

Cause

In large-scale environments, the domainmanager process may crash. This behavior is similar to the VCF 9.0.x vCenter import fails on precheck validation with: Something went wrong. Please retry or contact the service provider and provide the reference token.However, unlike that known issue, the logs in this scenario do not contain typical Java memory exceptions (e.g., OutOfMemoryError: Java heap space or OutOfMemory Error).

Resolution

To resolve this, increase the Java Heap Memory allocation for the DomainManager and for OperationsManager service.

For the DomainManager:

  1. Take snapshot of SDDC Manager VM.

  2. SSH to the SDDC Manager appliance using the vcf user and elevate to root using su

  3. Stop the domainmanager service
    systemctl stop domainmanager

  4. Edit the service configuration file located at /etc/vmware/vcf/domainmanager/vcf-domain-manager.conf. Use a text editor like vi
     vi /etc/vmware/vcf/domainmanager/vcf-domain-manager.conf
     
  5. Locate the line containing the maximum heap size setting (it will include -Xmx512m) and change it to -Xmx8G:
    Original: -Xmx1024m
    New: -Xmx8G

    Save the file and exit the text editor.
    Esc > :wq!
  6. Start the domainmanager service
    systemctl start domainmanager

For the OperationsManager:

  1. Stop the operationsmanager service
    systemctl stop operationsmanager
  2. Edit the service configuration file located at /etc/vmware/vcf/operationsmanager/vcf-operations-manager.conf. Use a text editor like vi
    vi /etc/vmware/vcf/operationsmanager/vcf-operations-manager.conf
  3. Locate the line containing the maximum heap size setting (it will include -Xmx2G) and change it to -Xmx8G:
    Original: -Xmx2G
    New: -Xmx8G

    Save the file and exit the text editor.
    Esc > :wq!

  4. Start the operationsmanager service
    systemctl start operationsmanager
  5. Retry the failed task.

    NOTE:
    After the Import please revert back the heap size setting for both services back to the default values.

Additional Information

VCF 9.0.x vCenter import fails on precheck validation with: Something went wrong. Please retry or contact the service provider and provide the reference token.