Symptoms
After running POA 5.5 precheck following error appears in /var/log/precheck-report-<report_date>.log
:
YUM check has failed on hosts listed below (please be aware that package information is read from YUM cache using -C option)
Either YUM is not functioning properly on these hosts or there are no repositories with OS updates configured`
Host Result
branding.hosting.com (3) ERROR: OS YUM repositories are not found
Cause
Before POA 5.5 upgrade yum should be installed and configured on every shared host. POA upload configuration file poa.repo
with pleskd
yum repository to /etc/yum.repos.d/
directory during shared host initialization.
On RHEL 4 hosts POA pre-check is running "yum -C list pleskd
" command because we need there only POA repository.
On CentOS or RHEL 5 and 6 based shared hosts also availability of OS repositories is verified:
~ yum -C --disablerepo=repo-id-* repolist
Resolution
POA pre-check only fetches information from yum cache (option -C), but it might missing if host was never updated or cache was clean. yum could be executed without -C option:
~ yum --disablerepo=repo-id-* repolist
POA will install rpms during upgrade. Yum should be able to download metadata and packages from OS repositories. Acessibility and download speed should be verified by making metadata cache:
~ yum -y makecache --disablerepo=repo-id-*
POA upgrade duration depends of yum repository download speed.
Base CentOS yum repository file /etc/yum.repos.d/CentOS-Base.repo
is the part of centos-release RPM. If host has access to external network CentOS-Base.repo could be uploaded from any host with the same OS.
It is possible add proxy option to /etc/yum.repos.d/CentOS-Base.repo
If yum repository is not reachable:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
proxy=http://10.0.0.2:8008/
Where http://10.0.0.2:8008/
is http proxy URL example. Please note that service PrivacyProxy could be used as http proxy if it installed on POA environment.
More information about yum configuration could be found in yum manual page "man yum".
POA upgrade will fail if OS repositories are not accessible!