During a VMware Cloud Foundation (VCF) update, the SDDC Manager update may fail at the "Update VCF service and platform rpms" stage. This failure is typically triggered by an exit status 10 during RPM installation, caused by improper configuration of the localhost resolution in the system hosts file.
Symptoms
The following symptoms are observed during the SDDC Manager update:
Update fails at the stage "Update VCF service and platform rpms" while starting the task reclaim vfree.
The /storage/alt_root partition may fill up during the update.
The following errors appear in SDDC Manager logs:
/var/log/vmware/capengine/cap-update/workflow.log
YYYY-MM-DD hh:mm:ss appliance.go:952: [ERR-0034] Failed to install update dependency RPMs. Error : failed to install rpm from stage dir, exit status 10YYYY-MM-DD hh:mm:ss installer.go:183: [ERR-0035] Update pre-requisites installation failed. Error : failed to install rpm from stage dir, exit status 10YYYY-MM-DD hh:mm:ss install_plugin.go:####: Failed to install RPMs. Error: failed to install rpm from stage dir, exit status 10YYYY-MM-DD hh:mm:ss installer.go:#### Unmounting devices from /storage/alt_rootYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/bootYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/opt/vmware/vcfYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/dataYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/var/log/vmwareYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/nfs/vmware/vcf/nfs-mountYYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/home/backup/nfs/vmware/vcf/nfs-mount/backupYYYY-MM-DD hh:mm:ss installer.go:####: Unmounting dev, proc, sysYYYY-MM-DD hh:mm:ss installer.go:####: Finished unmountingYYYY-MM-DD hh:mm:ss workflow_manager.go:####: Task install failed. Error: failed to install RPMs
/var/log/vmware/vcf/lcm/lcm.log
YYYY-MM-DDThh:mm:ss0 ERROR [vcf_lcm,0000000000000000,0000,upgradeId=####,resourceType=THIRD_PARTY,resourceId=####,bundleElementId=####] [c.v.e.s.l.p.e.i.LcmThirdPartySWUpgradeService,Upgrade-2] received COMPLETED_WITH_FAILURE while polling /var/log/vmware/vcf/lcm/thirdparty/upgrades/####/vcf-platform/upgrade/vcf_platform_upgrade.status upgrade status with error code 200YYYY-MM-DDThh:mm:ss0 INFO [vcf_lcm,0000000000000000,0000,upgradeId=####,resourceType=THIRD_PARTY,resourceId=####,bundleElementId=####] [c.v.e.s.l.p.e.i.LcmThirdPartySWUpgradeService,Upgrade-2] component upgrade vcf-platform-upgrade failed at stage VMware_Cloud_Foundation_Services_and_Platform_UpgradesYYYY-MM-DDThh:mm:ss0 ERROR [vcf_lcm,0000000000000000,0000,upgradeId=####,resourceType=THIRD_PARTY,resourceId=####,bundleElementId=####] [c.v.e.s.l.p.e.i.VcfServicePrimitiveImpl,Upgrade-2] upgrade failed at stage VMware_Cloud_Foundation_Services_and_Platform_Upgrades
VMware Cloud Foundation 5.X
The /etc/hosts file on the SDDC Manager appliance contains commented-out or empty localhost entries, often modified by the Virtual Appliance Management Infrastructure (VAMI). The Java-based migration application requires valid localhost resolution to complete the RPM installation. Commented entries prevent the application from functioning, resulting in exit status 10.
Correct the /etc/hosts file configuration and restart the necessary services:
SSH to the SDDC Manager appliance via SSH as the vcf user.
Elevate to root:
su -
Back up the current hosts file:
cp -p /etc/hosts /etc/hosts.backup
Edit the /etc/hosts file:
vi /etc/hosts
Ensure the localhost configuration is exactly as follows:
# Begin /etc/hosts (network card version)
127.0.0.1 localhost.localdomain
127.0.0.1 localhost
127.0.0.1 photon
# End /etc/hosts (network card version)
Save and exit (Press ESC, type :wq!, and press Enter).
Check partition usage to ensure sufficient space:
df-h
If /storage/alt_root or / is at 100%, remove unnecessary large files.
Start the Postgres service:
systemctl start postgres
Restart SDDC Manager services:
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
Retry the upgrade from the SDDC Manager UI.
If services fail to start after the modification, a reboot of the SDDC Manager appliance may be required.
For detailed steps on clearing SDDC Manager disk space, see KB 383526.
To learn how to gather diagnostic data, see Collecting diagnostic information from VMware SDDC Manager.
To speak with a customer representative or a Support Engineer, see Contact Broadcom Support.