Sync Inventory from VCF operation fails - Import operation for sync with id xxx-xxx-xxx-xxx failed internally.
search cancel

Sync Inventory from VCF operation fails - Import operation for sync with id xxx-xxx-xxx-xxx failed internally.

book

Article ID: 409813

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

  • After making a out-of-band change for VCF 9.0, you are performing Sync inventory using the VCF operations for the SDDC manager domain - Manage VCF Domain Configuration Drift
    VCF Operations > Inventory > VCF Instances > VCF domain > Actions > Sync Inventory.

  • The sync tasks fails with an internal error 

Message: Import operation for sync with id xxx-xxx-xxx-xxx 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/xxx-xxx-xxx-xxx/ --non-interactive. Please check the log files located in /var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/ on the SDDC Manager appliance
Remediation Message:
Reference Token: ####
Cause:

  • Navigate to the log location present in the error message. You will find the sync failed for the vCenter server guardrails
    /var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/

[yyyy-mm-dd hh:mm:ss] [INFO] check_domain_reporter:51: Total checks: 596, Successful checks: 584, Failed checks: 12, Internal errors: 0
[yyyy-mm-dd hh:mm:ss] [INFO] check_domain:262: For more details, please, check:[[
        Failed guardrails YML: [/var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/output/guardrails_report_vcenter_fqdn.yml]
        Failed guardrails CSV: [/var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/output/guardrails_report_vcenter_fqdn.csv]
All guardrails CSV: [/var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/output/guardrails_report_vcenter_fqdn_all.csv]

[yyyy-mm-dd hh:mm:ss] [CRITICAL] vcf_brownfield:1002: Failed to sync domain vcf_domain 
Traceback (most recent call last):
File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/vcf_brownfield.py", line 979, in sync_domain
    sync_domain_result: list[str] = sync.sync_domain()
File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/domain_sync/sync_domain.py", line 58, in sync_domain
    self.__run_guardrails(sso_remote_endpoint, domain_type, domain_id)
File "/opt/vmware/vcf/domainmanager/scripts/vcf-import-tool/domain_sync/sync_domain.py", line 112, in __run_guardrails
    raise DomainSyncException(ErrorMessages.GUARDRAILS_SYNC_FAILURE_CRITICAL_FOR_DOMAIN.format(domain_id))
common.common_exceptions.DomainSyncException: Could not proceed with sync operation since domain with Id: xxx-xxx-xxx-xxx has failed guard rails. This would leave SDDC Manager in a unconforming state Retry the sync operation after fixing guard rails warnings.
[yyyy-mm-dd hh:mm:ss] [INFO] vcf_brownfield:633: Operation sync completed on target: vcf_domain  with status: FAIL

  • vcf_domain is the domain you are syncing and guardrails_report_vcenter_fqdn is the guardrail report for the vCenter server associated with this domain. 

 

Environment

VCF 9.0

Cause

VCF pre-checks are executed against the SDDC domain by the guardrail mechanism. All failing ERROR checks must be resolved.

Resolution

Validate the guardrails.csv file that is provided in the location as per the logs - Failed guardrails CSV: [/var/log/vmware/vcf/domainmanager/brownfield/xxx-xxx-xxx-xxx/output/guardrails_report_vcenter_fqdn.csv]

Manually resolve the errors that are reported by the guardrails, and re-run the Sync inventory.