vCenter upgrade fails at VCENTER_UPGRADE_SET_REPO_FAILED stage.
Fails with error https://<sddc-manager-fqdn>:/vmware/vcf/bundle/<bundle-id>/update_repo during upgrade for vCenter <vcenter-hostname> due to exception NotFound (com.vmware.vapi.std.errors.not_found) => { errorType = NOT_FOUND }.
VMware Cloud Foundation 4.0.x
VMware Cloud Foundation 5.0
VMware Cloud Foundation 4.5
The /nfs/vmware/vcf/nfs-mount/bundle/ does not have proper permissions and hence https://<sddc-manager-ip>/vmware/vcf/bundle/<bundle-Id>/update_repo returns 403 forbidden error code.
This issue is fixed in VMware Cloud Foundation 4.5.1 and 5.1 release. A pre-check has been added to check the permissions for the path /nfs/vmware/vcf/nfs-mount/bundle/
Refer Improvements to upgrade prechecks under What's new in Release notes
VMware Cloud Foundation 4.5 Release Notes
To workaround the issue,
Please follow the below mentioned steps to update the permission: