SDDC Manager 'Plan Upgrade' grayed out due to null vCenter type.
book
Article ID: 438327
calendar_today
Updated On:
Products
VMware Cloud Foundation
Issue/Introduction
When attempting to upgrade an SDDC environment, the Plan Upgrade option in the SDDC Manager UI is grayed out or unavailable.
Review of the /var/log/vmware/vcf/lcm/lcm.log file on the SDDC Manager shows errors indicating a null sddcManager object or failure to find the management domain:
ERROR [vcf_lcm,...] Updating SDDC Manager version in LCM 2.0 Manifest failed, reason : Cannot invoke "com.vmware.evo.sddc.lcm.model.internal.VcfSddcManager.getVersion()" because "sddcManager" is null
java.lang.RuntimeException: No management domain found
Caused by: com.vmware.evo.sddc.lcm.model.error.LcmException: null
ERROR [vcf_lcm,...] [#####] VCF_ERROR_INTERNAL_SERVER_ERROR A problem has occurred on the server.
Environment
VMware Cloud Foundation 5.x
Cause
This issue occurs when a newly added Workload Domain (WLD) vCenter Server has a null value in the type column within the vcenter table of the SDDC Manager platform database.
Resolution
To resolve this issue, manually update the vCenter type in the SDDC Manager database. 1. Take a snapshot of the SDDC Manager VM. 2. Log in to the SDDC Manager via SSH as the vcf user and switch to root using su. 3. Connect to the SDDC Manager platform database:
psql -U postgres -h localhost -d platform
4. Retrieve the vCenter information to identify the record with the missing type:
select * from vcenter;
5. Update the vCenter type to 'VI' for the affected record (replace [ID] with the actual ID retrieved in the previous step):
update vcenter set type='VI' where id='[ID]';
6. Restart the LCM service:
systemctl restart lcm
7. Wait approximately 5 minutes for the logical inventory synchronization to complete.