Add host to cluster validation failed due to mismatch between the host in the cluster and the host in SDDC Manager
search cancel

Add host to cluster validation failed due to mismatch between the host in the cluster and the host in SDDC Manager

book

Article ID: 376432

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

The Cluster Host Data Check checks for discrepancies between the hosts present in the cluster in vCenter and in the SDDC Manager inventory.

If there is a mismatch between the hosts in the cluster and the SDDC Manager inventory the validation will fail and block the add host workflow.

Environment

VMware Cloud Foundation 5.2

Resolution

There are a couple of workarounds in this scenario:

  • Remove the error state hosts using the SDDC UI. This will make the SDDC inventory and VC in sync.
  • Run the vcf_brownfield.py script with sync command.
    1. Download the vcf-brownfield-import toolset onto the SDDC Manager vm.

      cd /home/vcf/vcf-brownfield-import-x-y-z/vcf-brownfield-toolset

    2. Run the vcf_brownfield.py script using the following command to sync the vCenter and SDDC Manager inventory.

      python3 vcf_brownfield.py sync --domain-name '<domain-name>' --local-admin-password '<password>'

  •  Disable the guardrails by:
    1. Updating the domain manager application-prod.properties file located in /etc/vmware/vcf/domainmanager/application-prod.properties and adding the following value:

      vcf.skip.dayn.guardrails=true

    2. Restart the services and retry the workflow. It is recommended to re-enable this flag once the workflow is successful. 

Additional Information

Updating the application-prod.properties file to skip the guardrail is a last resort step and should only be done if none of the steps before resolved the issue. It is also recommended to reenable to guardrails after the failed workflow has been unblocked.