vCenter upgrade fails with error : com.vmware.vcf.error.runtime.move.target.vc.to.primary.az.in.stretched.env.failed
search cancel

vCenter upgrade fails with error : com.vmware.vcf.error.runtime.move.target.vc.to.primary.az.in.stretched.env.failed

book

Article ID: 421481

calendar_today

Updated On:

Products

VMware SDDC Manager VMware vCenter Server

Issue/Introduction

Attempting to upgrade vCenter from SDDC Manager fails. 

The lcm.log shows the following error message:
2024-10-29T05:44:16.428+0000 ERROR [vcf_lcm,0000000000000000,0000,upgradeId=3e181ade-21f4-4b44-a6be-a79b86f2be79,resourceType=VCENTER,resourceId=058422fa-4490-466a-9067-3a95b6bf15c0,bundleElementId=85ebac99-8dd2-46c3-a4e8-a4beb10ade6b] [c.v.e.s.l.p.i.v.VCenterRDUUpgrader,Upgrade-11] Exception in moving the new vCenter to Primary AZ in stretched environment
java.lang.IllegalArgumentException: Expected 1 but did not find any MORs of a type ClusterComputeResource and name [Cluster_Name]
        at com.vmware.evo.sddc.common.client.vmware.vsphere.InventoryService.getUniqueByName(InventoryService.java:222)"

Environment

All previous versions of VCF < 5212 

Cause

The original cluster name has been changed, when SDDC Manage attempts to locate the vCenter appliance it tries to find the MoRef ID for the appliance by specifying the original cluster name. 

Resolution

  1. Rename the cluster name to the same as earlier (old cluster name)
  2. Retry the upgrade

Additional Information

This issue is fixed in VCF 9.0 and VCF 5.2.1.2