Random packages from EPEL repository cannot be downloaded from Red Hat Satellite 6
Environment
- Red Hat Satellite 6
Issue
-
Below error is observed for few EPEL packages when trying to install/update
[MIRROR] libretls-3.7.0-1.el8.x86_64.rpm: Status code: 502 for https://satellite.com/pulp/content/Library/custom/EPEL_Red_Hat_7/EPEL_Red_Hat_8/Packages/l/libretls- 3.7.0-1.el8.x86_64.rpm (IP: 10.*.*.*)
Resolution
Scenario 1
-
Follow below steps to check the consistency of repositories:
- Check for any missing pulp repositories
# foreman-rake katello:correct_repositories
- If any repositories are missing then correct those missing pulp repositories
# foreman-rake katello:correct_repositories COMMIT=true
- Reimport information from backend systems
# foreman-rake katello:reimport
- Complete sync on the concern repository and then try to install the package.
Scenario 2
-
Regenerate metadata for all repositories
# foreman-rake katello:regenerate_repo_metadata
Scenario 3
-
If issue still persists, then remove the entire EPEL 8 repositories from all content views and delete the product then recreate the same custom product.
-
Remove all EPEL related products
-
Delete the content of removed repository
# foreman-rake katello:delete_orphaned_content
- Create new EPEL product (with different name)
-
Diagnostic Steps
-
Perform the below steps before proceeding with the resolution steps:
-
To isolate the issue, try to change the content view and lifecycle environment of the host to 'Default organization View' and 'Library'
On the Satellite WebUI >> Hosts >> Content Hosts >> Select the relevant Host >> Select Action >> Change Lifecycle Environment >> Select the Lifecycle environment as 'Library' and Content View as 'Default Organization View' >> Assign >> Yes
Once done, execute following command on the client system:
# subscription-manager refresh # subscription-manager identity
-
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments