Bug 1978265

Summary: Enabling Satellite 6.9 tools repository rhel-7-server-eus-satellite-tools-6.9-rpms for RHEL 7.7 EUS fails with error 'does not seem to be a valid repository’
Product: Red Hat Satellite Reporter: Sam Wachira <swachira>
Component: CandlepinAssignee: Barnaby Court <bcourt>
Status: CLOSED ERRATA QA Contact: Danny Synk <dsynk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ahumbe, fdiprete, pdwyer
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:12:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sam Wachira 2021-07-01 12:18:43 UTC
Description of problem:
Enabling the Red Hat Satellite Tools 6.9 (for RHEL 7 Server - EUS) (RPMs) (rhel-7-server-eus-satellite-tools-6.9-rpms) repository for RHEL 7.7 fails with error:
'The path /content/eus/rhel/server/7/7.7/x86_64/sat-tools/6.9/os does not seem to be a valid repository. If you think this is an error, please try refreshing your manifest.'

- Refreshing the manifest does not make a difference.
- Enabling the same repository for RHEL 7.6 EUS works fine.

Version-Release number of selected component (if applicable):
Satellite 6.9.2

How reproducible:
Fully

Steps to Reproduce:
1. In Satellite UI, navigate to Content -> Red Hat Repositories
2. Search for 'rhel-7-server-eus-satellite-tools-6.9-rpms'
3. Expand 'Red Hat Satellite Tools 6.9 (for RHEL 7 Server - EUS) (RPMs)' then click the + sign next to 'x86_64 7.7'

Actual Results:
Repository is not enabled.
/var/log/foreman/production.log displays error below followed by a trace (attached).
2021-07-01T10:37:35 [E|app|] No valid metadata files found for /content/eus/rhel/server/7/7.7/x86_64/sat-tools/6.9/os
2021-07-01T10:37:35 [E|bac|] The path /content/eus/rhel/server/7/7.7/x86_64/sat-tools/6.9/os does not seem to be a valid repository. If you think this is an error, please try refreshing your manifest. (Katello::Errors::CdnSubstitutionError)
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.27/app/lib/katello/util/cdn_var_substitutor.rb:45:in `validate_substitutions'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.27/app/models/katello/candlepin/repository_mapper.rb:48:in `validate!'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.27/app/lib/actions/katello/repository_set/enable_repository.rb:13:in `plan'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:514:in `block (3 levels) in execute_plan'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:36:in `plan'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:36:in `plan'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-3.0.5/app/lib/actions/middleware/keep_current_request_id.rb:10:in `block in plan'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-3.0.5/app/lib/actions/middleware/keep_current_request_id.rb:31:in `with_current_request_id'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-3.0.5/app/lib/actions/middleware/keep_current_request_id.rb:9:in `plan'
[truncated]

Expected results:
- Repository for RHEL 7.7 should be enabled.

Additional info:
- The rhel-7-server-eus-satellite-tools-6.9-rpms repository is listed in the Satellite 6.9 documentation.
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.9/html/release_notes/cdn_repositories

Comment 4 Frank DiPrete 2021-07-01 20:33:12 UTC
content is now present on cdn-live

Comment 5 Sam Wachira 2021-07-01 20:47:15 UTC
Thanks Frank.
I can now enable the repo in my Satellite 6.9 instance and the error is no longer displayed.

Comment 6 Danny Synk 2021-07-06 17:54:19 UTC
Steps to Test:
1. On Satellite 6.10, snap 7, add a subscription to the manifest that provides RHEL EUS.
2. Attempt to enable and synchronize the "Red Hat Satellite Tools 6.9 for RHEL 7 Server - EUS RPMs x86_64 7.7" repository.

Expected Results:
The repo can be successfully enabled and synchronized.

Actual Resutls:
The repo can be successfully enabled and synchronized.

Verified on Satellite 6.10, snap 7 (candlepin-4.0.5-1.el7sat.noarch). However, since the problem was caused by content being absent from the Red Hat CDN, this issue should now be resolved for all versions of Satellite 6.

Comment 10 errata-xmlrpc 2021-11-16 14:12:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702