Error: Failed to install update dependency RPMs during the update of SDDC Manager
search cancel

Error: Failed to install update dependency RPMs during the update of SDDC Manager

book

Article ID: 443350

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer VMware Cloud Foundation

Issue/Introduction

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 10
YYYY-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 10
YYYY-MM-DD hh:mm:ss install_plugin.go:####: Failed to install RPMs. Error: failed to install rpm from stage dir, exit status 10
YYYY-MM-DD hh:mm:ss installer.go:#### Unmounting devices from /storage/alt_root
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/boot
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/opt/vmware/vcf
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/data
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/var/log/vmware
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/nfs/vmware/vcf/nfs-mount
YYYY-MM-DD hh:mm:ss installer.go:####: Executing command: umount -l /storage/alt_root/home/backup/nfs/vmware/vcf/nfs-mount/backup
YYYY-MM-DD hh:mm:ss installer.go:####: Unmounting dev, proc, sys
YYYY-MM-DD hh:mm:ss installer.go:####: Finished unmounting
YYYY-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 200
YYYY-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_Upgrades
YYYY-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

Environment

VMware Cloud Foundation 5.X

Cause

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.

Resolution

Correct the /etc/hosts file configuration and restart the necessary services:

  1. SSH to the SDDC Manager appliance via SSH as the vcf user.

  2. Elevate to root:

    su -

  3. Back up the current hosts file:

    cp -p /etc/hosts /etc/hosts.backup

  4. Edit the /etc/hosts file:

    vi /etc/hosts

  5. 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)

  6. Save and exit (Press ESC, type :wq!, and press Enter).

  7. Check partition usage to ensure sufficient space:

    df-h

  8. If /storage/alt_root or / is at 100%, remove unnecessary large files.

  9. Start the Postgres service:

    systemctl start postgres

  10. Restart SDDC Manager services:

    /opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh

  11. Retry the upgrade from the SDDC Manager UI.

Additional Information