During an upgrade process for SDDC Manager, specifically for the Common Application Platform (CAP) stage, the upgrade fails with errors related to the inability to find the SDDC Manager VM in the inventory.
The issue is evident from logs indicating that the task "add-disk" failed due to the missing VM.
Found in sos log bundle:
sos-<Time-Stamp>/sddc/var/log/vmware/capengine/cap-required-hardware-addition/workflow.log:
Date/time resource_plugin.go:123: Failed to get details for vm <SDDC Manager's VM name>. Error: vm could not be found
Date/time workflow_manager.go:198: Task add-disk failed. Error: vm could not be found
Date/time workflow_manager.go:138: Stopping workflow execution as task add-disk failed
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
The failure occurs because there is a mismatch between the SDDC Manager VM name listed in the vCenter Inventory and the one recorded in the SDDC Manager Inventory.
This discrepancy causes the upgrade process to fail as it cannot locate the required VM for further steps.