This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
BladeLogic Server Automation Suite
BladeLogic Server Automation
All BSA/TSSA versions
Red Hat patch catalog update fails with the following error in the job run log:
Validation Error :- BLPAT1212 - Failed to run reposync on repo directory Possible remediation steps :- Please check the yum_metadata_generator.log file generated in repo directory
The yum_metadata_generator.log shows this:
kernel-3.10.0-123.4.2.el7.x86_64: [Errno 256] No more mirrors to try. Thu Jun 2 07:40:53 CDT 2016 : Error occurred in reposync for repo rhel-7-server-rpms, Command Exit Code - 1
This has been seen due to the Red Hat entitlement certificates being invalid.
Your RedHat entitlement certificates may have been revoked. Download the Red Hat 7 entitlement certificates as noted in the product documentation, update the Patch Global Configuration to point to the new certificates and run the Catalog Update Job.
If you are getting the same error after re-downloading the certificates and replaced existing, please make sure to re-configure in Patch Global Configuration to hit red X mark to delete and re-specify the cert location.
The issue can be due to broken RPM as well.
When the RHEL CUJ is run, After the RPM is downloaded symlinks are created and those are not getting created as the Repo Directory has a bad copy the RPM already existing.
Therefore we need to find those bad RPM based on all the "No more mirror to try" error for such RPM as below:
find / -name <RPM Name listed in yum_metadata_generated.log>*
deleted all the rpm found based on the above result as :
rm -rf <Path/to/RPM/RPM name>
Rerun the CUJ, and repeat the uabove steps for any more no more mirror to try rpm until CUJ succeeds.
Per this KA e.g.:
find ./ -name kernel-3.10.0-123.4.2.el7.x86_64*
rm -rf /Path/to/RPM/kernel-3.10.0-123.4.2.el7.x86_64*