-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
6.17.0
-
None
-
False
-
None
-
None
-
None
-
None
Description of problem:
- Using CV environment along with Library results in 403 error for the repositories in Default Organization View
Version-Release number of selected component (if applicable):
- Satellite 6.17.0
How reproducible:
Always
Steps to Reproduce:
1. Enable and sync AppStream, BaseOS and Satellite-Client for RHEL 9 on the Satellite.
2. Create a CV(RHEL_9) with AppStream and BaseOS repositories for RHEL 9 and publish it.
2. Register a client to the Satellite and enable the Satellite-Client repository.
3. Execute the following command to set the environment.
subscription-manager environments --set Library/RHEL_9,Library subscription-manager refresh
4. Run the following command.
dnf repoinfo
Actual results:
- The dnf repoinfo command fails with the following message.
# dnf repoinfo Updating Subscription Management repositories. Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 67 MB/s | 52 MB 00:00 Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) 767 B/s | 73 B 00:00 Errors during downloading metadata for repository 'satellite-client-6-for-rhel-9-x86_64-rpms': - Status code: 403 for https://satellite.example.com/pulp/content/RedHat/Library/content/dist/layered/rhel9/x86_64/sat-client/6/os/repodata/repomd.xml (IP: 172.20.24.82) Error: Failed to download metadata for repo 'satellite-client-6-for-rhel-9-x86_64-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Additional info:
- {{subscription-manager repos }}reports the repository correctly from the correct CV environment.
# subscription-manager repos +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: satellite-client-6-for-rhel-9-x86_64-rpms Repo Name: Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) Repo URL: https://satellite.example.com/pulp/content/RedHat/Library/content/dist/layered/rhel9/x86_64/sat-client/6/os Enabled: 1 Repo ID: rhel-9-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) Repo URL: https://satellite.example.com/pulp/content/RedHat/Library/RHEL_9/content/dist/rhel9/$releasever/x86_64/baseos/os Enabled: 1 Repo ID: rhel-9-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) Repo URL: https://satellite.example.com/pulp/content/RedHat/Library/RHEL_9/content/dist/rhel9/$releasever/x86_64/appstream/os Enabled: 1
- The issue seems to be with the entitlement certificate. Authorized Content URLs does not contain Library
Authorized Content URLs: /RedHat/Library/RHEL_9
- duplicates
-
SAT-32574 Hosts assigned to multiple Candlepin environments can't access repos in Library environment if it's not ordered first
-
- Release Pending
-