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 }.
The /nfs/vmware/vcf/nfs-mount/bundle/ does not have proper permissions 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 is 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,
Follow the steps below to update the permission:
vcf user and su to root.