SDDC Manager Upgrade PreCheck Failed for ESXi host with an error 'Failed to get MOID of ESXi host with id '
search cancel

SDDC Manager Upgrade PreCheck Failed for ESXi host with an error 'Failed to get MOID of ESXi host with id '

book

Article ID: 316065

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:

Task shows below error message:

"Failed to get MOID of ESXi host with id xxxxxxx-xxxxx-xxxxx-xxxxxxx"

/var/log/vmware/vcf/lcm/lcm-debug.log shows the below errors

2024-03-13T13:05:52.306+0000 DEBUG [vcf_lcm,b199d47d30b640a3,6b4c,precheckId=603532bc-ee3c-xxxx-xxxx-b0d95c4xxxx,resourceType=ESX,resourceId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx] [c.v.e.s.l.c.v.vsphere.VsphereUtils,Precheck-176] find nameManagedObjectReference, for searching host is <old_hostFQDN>

2024-03-13T13:05:52.313+0000 WARN [vcf_lcm,b199d47d30b640a3,6b4c,precheckId=603532bc-ee3c-xxxx-xxxx-b0d95c4xxxx,resourceType=ESX,resourceId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx] [c.v.e.s.l.c.v.vsphere.VsphereUtils,Precheck-176] Unable to find desired MOR

2024-03-13T13:05:52.313+0000 ERROR [vcf_lcm,b199d47d30b640a3,6b4c,precheckId=603532bc-ee3c-xxxx-xxxx-b0d95c4xxxx,resourceType=ESX,resourceId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx] [c.v.e.s.l.p.impl.esx.EsxUtils,Precheck-176] Failed to get MOID of ESXi host with id xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx

2024-03-13T13:05:52.316+0000 ERROR [vcf_lcm,b199d47d30b640a3,6b4c,precheckId=603532bc-ee3c-xxxx-xxxx-b0d95c4xxxx,resourceType=ESX,resourceId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx] [c.v.e.s.l.p.impl.esx.EsxUtils,Precheck-176] Exception when fetching the ESX MOID for Esx host with id xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx


Environment

VMware Cloud Foundation 5.x
VMware Cloud Foundation 4.x

Cause

The host has been reused/renamed and the stale entries have not been removed from the DNS.  This will cause the SDDC manager to intermittently look for the old host name in the VC inventory.

Resolution

  • Validate DNS Entries of the specific ESXi showed in error.
  • Correct the DNS records.
  • Restart sddc service
    •  /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
  • Retry the upgrade.