vCenter upgrade attempts fail in SDDC environments with the error "/ui/api/v1/upgrades: 400 Bad Request"
search cancel

vCenter upgrade attempts fail in SDDC environments with the error "/ui/api/v1/upgrades: 400 Bad Request"

book

Article ID: 388717

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

In SDDC environment, the vCenter upgrade fails with the below error message.

Scheduling immediate update of bundle failed. Http failure response for https://<SDDC_MANAGER_FQDN/ui/api/v1/upgrades: 400 Bad Request

 

Environment

VMware Cloud Foundation

Cause

The Gateway IP address provided for the new appliance is unacceptable as it was a broadcast IP of the network of temporary IP.

 

lcm.log will have below entries.


YYYY-MM-DDThh:mm:ss.xxx+0000 ERROR [vcf_lcm,xxyy---OpID-xxxxxxxx,xxxx] [c.v.e.s.l.c.u.LocalCommandService,http-nio-127.0.0.1-7400-exec-3] Error Output:
YYYY-MM-DDThh:mm:ss.xxx+0000 ERROR [vcf_lcm,xxyy---OpID-xxxxxxxx,xxxx] [c.v.e.s.l.s.impl.UpgradeServiceImpl,http-nio-127.0.0.1-7400-exec-3] User input is not valid for VC/PSC upgrade.Gateway is not in subnet range.
YYYY-MM-DDThh:mm:ss.xxx+0000 ERROR [vcf_lcm,xxyy---OpID-xxxxxxxx,xxxx] [c.v.v.l.r.a.c.v.u.UpgradeController,http-nio-127.0.0.1-7400-exec-3] Scheduling Upgrade Failed
com.vmware.evo.sddc.lcm.model.error.LcmException: User input is not valid for the VC/PSC upgrade.Gateway is not in subnet range.
        at com.vmware.evo.sddc.lcm.services.impl.UpgradeServiceImpl.validateUserInputSpec(UpgradeServiceImpl.java:1611)
        at com.vmware.evo.sddc.lcm.services.impl.UpgradeServiceImpl.validateUpgradeSpec(UpgradeServiceImpl.java:543)

Resolution

Validate the correct Gateway IP that is provided in the upgrade wizard.