Brownfield vCenter to VCF 9 import validation error - "VcManager vcenter.example.com: An error occurred when validating VMware Cloud Foundation compatibility: VMwareProductVersion can not be null or empty"
search cancel

Brownfield vCenter to VCF 9 import validation error - "VcManager vcenter.example.com: An error occurred when validating VMware Cloud Foundation compatibility: VMwareProductVersion can not be null or empty"

book

Article ID: 407384

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • Unable to brownfield import a 9.0 VC / hosts into VCF 9.0
  • Validation in VCF Installer fails with below error
    VcManager vcenter.example.com: An error occurred when validating VMware Cloud Foundation compatibility: VMwareProductVersion can not be null or empty
  • Error in /var/log/vmware/vcf/operationsmanager/operationsmanager.log in VCF Installer
    ERROR [vcf_om,688################885,8991] [c.v.v.b.p.updaters.PropertyUpdater,pool-2-thread-3] Failed to execute updater method hostVersion on entity esxhost.example.com of type host from vcenter.example.com due to an exception {}
    java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException
    
    Caused by: java.lang.IllegalArgumentException: Patch level can't be null



    ERROR [vcf_om,688################b22,ae09] [c.v.v.b.p.t.v.v.ResourceStateValidator,pool-2-thread-20] Entity constraint validation with expression 'IMPORT' == 'CONVERT' && isHostInClusterWithVcvm ? #isVersionGreaterOrEqual(version, '9.0.0') : #isVersionGreaterOrEqual(version, '8.0.1-21813344') on entity with name esxhost.example.com of type host failed with exception
    org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'version' cannot be found on object of type 'java.util.HashMap' - maybe not public or not valid?

Environment

VMware Cloud Foundation 9.0

VMware vSphere Foundation 9.0

Cause

The issue is primarily caused by host-sync operation failures. It is expected to occur mostly in test environments, where activity is minimal. In actual live environments, ongoing operations typically trigger host-sync processes, which in turn prevent the issue from occurring.

Resolution

Resolved in future VCF release

Workaround Steps:

  1. Disable MOB for target vCenter (vCenter 9 MOB is disabled by default. If its enabled, then disable it) - Refer How to disable access to the Managed Object Browser in vCenter Server.
  2. Enable / Disable SSH for managed hosts within this vCenter
  3. Restart import workflow in VCF installer