VCF Domain Inventory Sync Fails Following Host Removal
search cancel

VCF Domain Inventory Sync Fails Following Host Removal

book

Article ID: 419613

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation

Issue/Introduction

Synchronizing the domain inventory in VMware Cloud Foundation (VCF) 9.0 fails when an ESXi host has been removed from vCenter but the change has not yet propagated to the SDDC Manager inventory. Users typically see an internal import operation failure when the sync process attempts to validate NSX Edge cluster status.

The task would fail with the following or a similar error.

DescriptionSynchronize domain inventory
Progress MessagesImport operation for sync with id <id> failed internally. Command was python3 /opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py sync --domain-name domain_name --skip-ssh-thumbprint-validation --internal-vcf-auth --output-dir /var/log/vmware/vcf/domainmanager/brownfield/<id>/ --non-interactive. Please check the log files located in /var/log/vmware/vcf/domainmanager/brownfield/<id>/ on the SDDC Manager appliance

Error

Message: Import operation for sync with id <id> failed internally. Command was python3 /opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py sync --domain-name domain_name --skip-ssh-thumbprint-validation --internal-vcf-auth --output-dir /var/log/vmware/vcf/domainmanager/brownfield/<id>/ --non-interactive. Please check the log files located in /var/log/vmware/vcf/domainmanager/brownfield/<id>/ on the SDDC Manager appliance

Remediation Message:

Reference Token: XXXXXX

Cause:

 

Environment

VMware Cloud Foundation 9.0.x

Cause

The vcf_brownfield.py script attempts to synchronize NSX Edge clusters during the general inventory sync. If the NSX Manager version is below 9.0 (e.g., 4.2.3.x), the edge_sync.py module raises an NsxEdgeSyncException, causing the entire inventory sync task to fail.

 

In the logs, you will find these snippets:

var/log/vmware/vcf/domainmanager/brownfield/<unique id>/vcf_brownfield.log

[YYYY-MM-DD 07:22:17,602] [CRITICAL] vcf_brownfield:1007: Failed to sync domain domain_name
Traceback (most recent call last):
File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py", line 1000, in sync_domain
  edge_sync.sync_edge_clusters(mark_all_enabled=args.import_edge_clusters_
File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/edge_cluster_sync/sync_edge_clusters.py", line 172, in sync_edge_clusters
  raise NsxEdgeSyncSyncException(err_msg)
common.common_exceptions.NsxEdgeSyncException: To import Edges, NSX Manager cluster <name> must be at least version 9.0 but it has version ('4.2.3.1.0.24954571)
[YYYY-MM-DD 07:22:17,610] [INFO] vcf_brownfield:633: Operation ESC[93msyncESC[00m completed on target: domain_name with status:FAIL

Resolution

Workaround:

  1. Login to VCF Operations
  2. Navigate to Inventory > Domains and select the affected domain.
  3. Expand the inventory and select the domain
  4. Click on Actions >'Sync Inventory'
    Do not select synchronize NSX Edge cluster from the Sync Inventory dialog box.
  5. Click on the 'I acknowledge' check box  and then Sync Inventory.