Bug 2106750

Summary: foreman-maintain repositories-setup check fails to setup satellite-maintenance beta repository for RHEL8
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: apatel, aupadhye, ehelms, kgaikwad
Target Milestone: 6.12.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-21 02:47:07 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 Gaurav Talreja 2022-07-13 13:08:07 UTC
Description of problem:
foreman-maintain repositories-setup check fails to setup satellite-maintenance beta repository for RHEL8, where it successfully enables "satellite-6-beta-for-rhel-8-x86_64-rpms"

Version-Release number of selected component (if applicable):
rubygem-foreman_maintain-1.1.1-3.el8sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Attach "Red Hat Satellite Employee Subscription" required for satellite-maintenance beta repository, along with 
2. # export FOREMAN_MAINTAIN_USE_BETA=1
3. # satellite-maintain advanced procedure run repositories-setup --version 6.11
Running ForemanMaintain::Scenario
================================================================================
Setup repositories:
/ Configuring repositories for 6.11                                   [FAIL]
Failed executing subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms --enable=rhel-8-for-x86_64-appstream-rpms --enable=satellite-6-beta-for-rhel-8-x86_64-rpms --enable=satellite-maintenance-6-beta-for-rhel-8-x86_64-rpms --enable=ansible-2.9-for-rhel-8-x86_64-rpms, exit status 1:
 Error: 'satellite-maintenance-6-beta-for-rhel-8-x86_64-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
Repository 'rhel-8-for-x86_64-baseos-rpms' is enabled for this system.
Repository 'rhel-8-for-x86_64-appstream-rpms' is enabled for this system.
Repository 'satellite-6-beta-for-rhel-8-x86_64-rpms' is enabled for this system.
Repository 'ansible-2.9-for-rhel-8-x86_64-rpms' is enabled for this system.
--------------------------------------------------------------------------------
Scenario [ForemanMaintain::Scenario] failed.

The following steps ended up in failing state:

  [repositories-setup]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="repositories-setup"


Actual results:
Fails to enable repo 'satellite-maintenance-6-beta-for-rhel-8-x86_64-rpms', which isn't available in CDN

Expected results:
'satellite-maintenance-6-beta-for-rhel-8-x86_64-rpms' should be available as similar to 'satellite-6-beta-for-rhel-8-x86_64-rpms' 

Additional info:

Comment 1 Eric Helms 2022-07-21 02:47:07 UTC
There are no beta repositories for Satellite 6.11 and the satellite-maintenance-6 repository is not used with 6.11.