vCenter upgrade prechecks from SDDC Manager failing on vCenter - Upgrade bundle validation
search cancel

vCenter upgrade prechecks from SDDC Manager failing on vCenter - Upgrade bundle validation

book

Article ID: 415197

calendar_today

Updated On:

Products

VMware SDDC Manager VMware vCenter Server

Issue/Introduction

  • vCenter Upgrade prechecks reports the following error: 

    Bundle validation for bundle of type VCENTER with upgrade version <vCenter_build>> failed due to error Bundle level precheck for VCENTER failed with exception : ConstraintViolationException: Structure com.vmware.appliance.task_info has a union constant with tag 'status' of value 'RESUMABLE', for which the field 'end_time' is not allowed to be set.

  • LCM logs shows the following:

    yyyy-mm-ddThh:mm:ss.zzz+0000 ERROR [vcf_lcm,0000000000000000,0000,precheckId=<precheck_Id>,resourceType=BUNDLE,resourceId=<resource_Id>] 
    [c.v.v.vapi.vsphere.VcenterVapiHelper,Precheck-2] Exception occurred during VC vAPI invocation
    java.util.concurrent.ExecutionException: com.vmware.vapi.client.exception.BindingsException: Could not convert field 'task' of structure 'com.vmware.appliance.update.info'
    ..
    Caused by: com.vmware.vapi.data.ConstraintValidationException: Structure com.vmware.appliance.task_info has a union constraint with tag 'status' of value 'RESUMABLE', for which the field 'end_time' is not allowed to be set.
    ..
    yyyy-mm-ddThh:mm:ss.zzz+0000 DEBUG [vcf_lcm,0000000000000000,0000,precheckId=<precheck_Id>,resourceType=BUNDLE,resourceId=<resource_Id>] 
    [c.v.e.s.l.p.i.v.VCenterPatchUpgradeImpl,Precheck-2] Error message during bundle precheck Bundle level precheck for VCENTER failed with exception : 
    ConstraintValidationException: Structure com.vmware.appliance.task_info has a union constraint with tag 'status' of value 'RESUMABLE', for which the field 'end_time' is not allowed to be set.

Environment

VMware SDDC Manager 5.x

VMware vCenter Server 8.x

 

Resolution

Workaround:

  1. Log to the vSphere Client

  2. From the menu select Developer Center



  3. Select in the API explorer tab the appliance API




  4. Look for "POST api/appliance/update?action=cancel" under "update"




  5. Execute the POST api/appliance/update?action=cancel (press the EXECUTE button and CONTINUE)



  6. Retry the Bundle validation Precheck.