RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2074110 - subscription-manager release setting is not landing in the redhat.repo file [rhel-9.1.0]
Summary: subscription-manager release setting is not landing in the redhat.repo file [...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: subscription-manager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 9.1
Assignee: Pino Toscano
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 2073551
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-11 14:52 UTC by RHEL Program Management Team
Modified: 2022-11-15 13:13 UTC (History)
6 users (show)

Fixed In Version: subscription-manager-1.29.29-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2073551
Environment:
Last Closed: 2022-11-15 11:19:30 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 3026 0 None Merged 2074110: clear the release cache on release change 2022-04-13 14:09:49 UTC
Red Hat Issue Tracker RHELPLAN-118558 0 None None None 2022-04-11 15:05:42 UTC
Red Hat Product Errata RHBA-2022:8341 0 None None None 2022-11-15 11:19:46 UTC

Comment 3 Rehana 2022-04-25 11:51:12 UTC
// Pre-verifying on : 
===================

# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: sca_rhsm_1
Password: 
The system has been registered with ID: a1b9d8b4-a5cb-48c1-b4f6-0e209403726d
The registered system name is: kvm-01-guest19.lab.eng.rdu2.redhat.com

# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-9-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.stage.redhat.com/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://cdn.stage.redhat.com/content/dist/rhel9/$releasever/x86_64/appstream/os
Enabled:   1

# subscription-manager release --list
+-------------------------------------------+
          Available Releases       
+-------------------------------------------+
9
9.0
9.1

# subscription-manager release --set=9.0
Release set to: 9.0
[root@kvm-01-guest19 ~]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-9-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.stage.redhat.com/content/dist/rhel9/9.0/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://cdn.stage.redhat.com/content/dist/rhel9/9.0/x86_64/appstream/os
Enabled:   1

# yum repolist
Updating Subscription Management repositories.
repo id                                                                               repo name
rhel-9-for-x86_64-appstream-rpms                                                      Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms                                                         Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)

ˆ^Notice the $releasever is the repo url was replaced by the release version set on the system. Based on the observation , pre verifying the bug

Comment 7 Zdenek Petracek 2022-07-25 13:41:37 UTC
SUBMAN version:
[root@kvm-02-guest09 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 4.0.18-2
subscription management rules: 5.41
subscription-manager: 1.29.29-1.el9

Registering:
[root@kvm-02-guest09 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: zpetracePH03
Password: 


[root@kvm-02-guest09 pki]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-9-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel9/$releasever/x86_64/appstream/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://cdn.redhat.com/content/dist/rhel9/$releasever/x86_64/baseos/os
Enabled:   1

[root@kvm-02-guest09 pki]# subscription-manager release --list
+-------------------------------------------+
          Available Releases       
+-------------------------------------------+
9
9.0

[root@kvm-02-guest09 pki]# subscription-manager release --set=9.0
Release set to: 9.0


[root@kvm-02-guest09 pki]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-9-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel9/9.0/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://cdn.redhat.com/content/dist/rhel9/9.0/x86_64/appstream/os
Enabled:   1
^^ $releasever was changed by the release version set on the system = PASSED

Comment 9 errata-xmlrpc 2022-11-15 11:19:30 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 (subscription-manager bug fix and enhancement update), 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/RHBA-2022:8341


Note You need to log in before you can comment on or make changes to this bug.