Stage 2 vCenter upgrade from 8.0.1 to 8.0.2 gives following error:
In update_microservices.log we see below error:
xxxx-xx-xxxxx:xx:xx+xx:xx Finding packages in the target repo. This may take several minutes.
], stderr [xxxx-xx-xxxxx:xx:xx+xx:xx Error: Packages - git go perl-CGI perl-YAML serf subversion subversion-perl utf8proc - are not available in the target repo for OS upgrade. Please provide the correct repo having the required packages. Original list of RPMs and RPM DB are stored in /tmp/photon-upgrade-GBA, please provide contents of that folder along with system journal logs for analysis; these logs can be captured using command-
# /usr/bin/journalctl -xa > /tmp/photon-upgrade-GBA/journal.log
Cannot continue. Aborting
vCenter 8.0.x
SDDC 5.2.1
The RPM's are installed manually on vCenter which are not present in the target repository for OS upgrade
In this scenario, below are the packages which were causing the issue:
git
go
perl-CGI
perl-YAML
serf
subversion
subversion-perl
utf8proc
Note: Do not install any RPM's on vCenter manually because that can cause issues with vCenter.
Validate if the failed packages are present in affected vCenter:
root@vc [ ~ ]# rpm -qa | grep git
git-x.xx.x-x.phx.xxx_xx
root@vc [ ~ ]# rpm -qa | grep perl-CGI
perl-CGI-x.xx-x.phx.noarch
root@vc [ ~ ]# rpm -qa | grep perl-YAML
perl-YAML-x.xx-x.phx.noarch
root@vc [ ~ ]# rpm -qa | grep go
libgomp-x.x.x-x.phx.x86_64
kaigen-gothic-cjk-x.xxx-x.phx.noarch
pythonx-configobj-x.x.x-x.phx.noarch
go-x.xx.xx-x.phx.x86_64
root@vc [ ~ ]# rpm -qa | grep serf
serf-x.x.x-x.phx.x86_64
root@vc [ ~ ]# rpm -qa | grep subversion
subversion-perl-x.xx.x-x.phx.x86_64
subversion-x.xx.x-x.phx.x86_64
root@vc [ ~ ]# rpm -qa | grep utf
utf8proc-x.x.x-x.phx.x86_64
Compare the affected vCenter with one of the upgraded vCenters to determine if the failed packages are present in the upgraded vCenter. This will help verify whether those packages are default RPM's of vCenter or not.
Once the packages are validated that they are not present in other vCenter, proceed with removal of those respective RPM's from affected vCenter following below steps:
1. Revert the snapshots of all vCenter's in SSO domain before the upgrade
2. Remove the packages using below commands respectively.
#rpm -e git
#rpm -e perl-CGI
#rpm -e perl-YAML
#rpm -e go
#rpm -e serf
#rpm -e subversion
#rpm -e utf
3. After removal of packages, restart vCenter upgrade from SDDC manager