SDDC Manager Async Patch download failing with error SDDC_SERVICE_API_CALL_FAILED
search cancel

SDDC Manager Async Patch download failing with error SDDC_SERVICE_API_CALL_FAILED

book

Article ID: 370869

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

SDDC Manager Async Patch is not downloading, and failing with below errors

Error - Exception thrown when getting upgrades with bundle id null and status null.

Error - Error while initiating required functionality: ENABLE_ASYNC_PATCH.

Error - SDDC_SERVICE_API_CALL_FAILED.

 

Api call to v1/manifests failed error in /home/vcf/asyncpatchtool/bin/async-patch.log

yy-mm-dd hh:mm:ss [INFO ] Downloading latest LCM manifest from depot
yy-mm-dd hh:mm:ss [INFO ] Successfully downloaded latest LCM manifest
yy-mm-dd hh:mm:ss [INFO ] Default manifest file found, attempting to read into manifest object.
yy-mm-dd hh:mm:ss [ERROR] Exception thrown when uploading manifest to lcm
yy-mm-dd hh:mm:ss [INFO ] Updating telemetry details of operation: ENABLE_VCF_UPGRADE
yy-mm-dd hh:mm:ss [INFO ] Added operation ENABLE_VCF_UPGRADE and its status FAILURE to async patch tool metrics
yy-mm-dd hh:mm:ss [INFO ] Successfully updated telemetry details of operation: ENABLE_VCF_UPGRADE
yy-mm-dd hh:mm:ss [ERROR] Error while initiating required functionality: ENABLE_VCF_UPGRADE
yy-mm-dd hh:mm:ss [ERROR] SDDC_SERVICE_API_CALL_FAILED
-- Error Message: Api call to /v1/manifests failed.
-- Remedy: Please ensure that lcm is up and running by executing 'systemctl status lcm' on your environment and that the API is accessible.

Environment

VMware Cloud Foundation 5.1.1

Cause

feature.lcm.2.0=false in /home/vcf/asyncpatchtool/conf/feature.properties is overriding the value feature.lcm.2.0=true in /opt/vmware/vcf/lcm/lcm-app/conf/feature.properties

Resolution

  1. Take snapshot of SDDC Manager VM
  2. SSH to SDDC Manager VM with vcf and su to root
  3. Rename the file /home/vcf/asyncpatchtool/conf/feature.properties
    mv /home/vcf/asyncpatchtool/conf/feature.properties /home/vcf/asyncpatchtool/conf/usr.properties
  4. Re-initiate the bundle download using Async Patch tool
    /home/vcf/asyncpatchtool/bin/./vcf-async-patch-tool -e --patch <product:version> --du <depot_user> --sddcSSOUser <SSO USER> --sddcSSHUser vcf --it <ONLINE/OFFLINE>


Additional Information

If the error message as Api call to /v1/upgrades failed occurs as below, locate the bundle id from the log and use How to: Bundle Cleanup Utility KB to delete the bundle

error in /home/vcf/asyncpatchtool/bin/async-patch.log

yy-mm-dd hh:mm:ss [main] ERROR [com.vmware.evo.sddc.1cm.tools.common.adapter.impl.UpgradeBundleApiAdapterImpl] 
                Exception thrown when getting upgrades with bundle id null and status null
yy-mm-dd hh:mm:ss [main] ERROR [com.vmware.evo.sddc.lcm.tools.asyncpatch.AsyncPatchToolMain] 
                Error while initiating required functionality: ENABLE_ASYNC_PATCH
yy-mm-dd hh:mm:ss [main] ERROR [com.vmware.evo.sddc.lcm.tools.asyncpatch.AsyncPatchToolMain]
                SDDC_SERVICE_API CALL FAILED
 Error Message: Api call to /v1/upgrades failed.
 Remedy: Please ensure that 1cm is up and running by executing 'systemctl status lcm' on your environment and that the API is accessible. m.vmware.evo.sddc.1cm.model.error.LcmException: Api call to /v1/upgrades failed.
                   at com.vmware.evo.sddc.lcm.tools.common.adapter.impl.Upgrade BundleApiAdapterImpl.getUpgrades (UpgradeBundleApiAdapterImpl.java:49)
                   at com.vmware.evo.sddc.lcm.tools.common.Disable PatchUtil.saveUpgrade History (Disable PatchUtil.java:232)