Importing an existing vCenter Server to workload domain fails due to presence of standalone hosts in the inventory
search cancel

Importing an existing vCenter Server to workload domain fails due to presence of standalone hosts in the inventory

book

Article ID: 439602

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VCF Operations

Issue/Introduction

Import existing infrastructure into SDDC Manager as a workload domain fails. The vcf_brownfield.py script fails internally when attempting to assess standalone ESXi hosts.

  • In the VCF Operations UI, the import task fails with the error:
    Import operation for import with id ########-####-####-####-############ failed internally. Command was python3 /opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py import --skip-ssh-thumbprint-validation --sso-user administrator@<SSO domain>.local --domain-name <domain name> --vcenter <vCenter FQDN> --internal-vcf-auth --nsx-deployment-spec-path /tmp/nsxDeploymentSpec.json --skip-nsx-overlay --output-dir /var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/ --non-interactive. Please check the log files located in /var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/ on the SDDC Manager appliance
  • The following errors may be observed in the /var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/vcf_brownfield.log file on the SDDC Manager appliance:

    • [INFO] discover_domain:323: >>>>>> [1/66] Starting discovery of ESXi host: <host FQDN>
      [INFO] discover_domain:330: Host <host FQDN> is standalone
      [CRITICAL] vcf_brownfield:62: ESC[91mFatal exception: ("cannot access local variable 'esxi_cluster_moid' where it is not associated with a value",)ESC[00m
    • Internal errors: 0ESC[00m
      [INFO] check_domain:270: ESC[93mFor more details, please, check:ESC[00mESC[93m
            Failed guardrails YML: ESC[00m/var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/output/guardrails_report_<vCenter FQDN>.ymlESC[93m
            Failed guardrails CSV: ESC[00m/var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/output/guardrails_report_<vCenter FQDN>.csvESC[93m
            All guardrails CSV: ESC[00m/var/log/vmware/vcf/domainmanager/brownfield/########-####-####-####-############/output/guardrails_report_<vCenter FQDN>_all.csv
      [INFO] vcf_brownfield:777: ESC[91mPhase '0. Guardrails' completed with errors:ESC[00m
      [INFO] vcf_brownfield:779: ESC[91m    - Critical guardrails have failed. Operation aborted.ESC[00m
    • [INFO] discover_domain:443: Host <host FQDN> esxi_cluster_moid None
      [INFO] discover_domain:447: Host <host FQDN> cluster_ds None
      [INFO] discover_domain:448: Host <host FQDN> cluster_ds_type None
      [CRITICAL] vcf_brownfield:62: ESC[91mFatal exception: ("'NoneType' object has no attribute 'name'",)ESC[00m
      Traceback (most recent call last):
      File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py", line 1435, in <module>
          main()

Environment

  • VCF Operations 9.0.x
  • SDDC Manager 9.0.x

Resolution

Proceed to Contact Broadcom support for assistance with this issue.