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 1935592 - Simple Content Access to Portal, EUS not working without manually attaching sub [rhel-7.9.z]
Summary: Simple Content Access to Portal, EUS not working without manually attaching s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.9
Hardware: x86_64
OS: Linux
urgent
low
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1924921
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-05 08:45 UTC by Rehana
Modified: 2022-01-24 20:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1924921
Environment:
Last Closed: 2021-04-27 11:35:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2470 0 None open 1924921: Fix getting releases, when SCA is used 2021-03-08 11:51:03 UTC
Red Hat Product Errata RHBA-2021:1394 0 None None None 2021-04-27 11:35:41 UTC

Description Rehana 2021-03-05 08:45:04 UTC
+++ This bug was initially created as a clone of Bug #1924921 +++

Description of problem:
When registering with a Simple Content Access enabled portal account, I can enable EUS repos just fine.  But trying to set a release doesn't work until I attach a subscription.

Version-Release number of selected component (if applicable):
RHEL 8.2
subscription-manager-1.26.16-1.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. start with a RHEL8.2 install 
2. use subscription-manager to register to the user portal with an SCA enabled account
3. use subscription-manager to enable the eus repos
4. Attempt to list or set the release version with subscription-manager

Actual results:

[root@82-sca-eus-test ~]# subscription-manager register 
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: xxxxxxxxxxxxxxxxx
Password: 
The system has been registered with ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The registered system name is: 82-sca-eus-test

[root@82-sca-eus-test ~]# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-eus-rpms
Repository 'rhel-8-for-x86_64-baseos-eus-rpms' is enabled for this system.

[root@82-sca-eus-test ~]# subscription-manager repos --enable=rhel-8-for-x86_64-appstream-eus-rpms
Repository 'rhel-8-for-x86_64-appstream-eus-rpms' is enabled for this system.

[root@82-sca-eus-test ~]# subscription-manager release --list
No release versions available, please check subscriptions.

[root@82-sca-eus-test ~]# subscription-manager attach --pool=xxxxxxxxxxxxxxxxxxxxxxxx
Successfully attached a subscription for: Employee SKU

[root@82-sca-eus-test ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
8
8.0
8.1
8.2
8.3

[root@82-sca-eus-test ~]# subscription-manager release --set=8.2
Release set to: 8.2


Expected results:
When using SCA we should be able to do the above without attaching a subscription.


Additional info:
I tried this initially on RHEL7.5 to attempt to pin it to 7.6 and had the same results there. I repro'd it on 8.2 just to make sure it wasn't something with 7.5's version of subscription-manager.

Comment 1 Rehana 2021-03-26 09:37:23 UTC
We would like to ship this fix in 7.9z as well. Justifications are same as https://bugzilla.redhat.com/show_bug.cgi?id=1924921#c4 ( provided for RHEL 8)

Comment 2 Shwetha Kallesh 2021-03-26 11:00:21 UTC
Pre-verification comments:

[root@kvm-03-guest10 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.11-1
subscription management rules: 5.41
subscription-manager: 1.24.46-1.el7_9


[root@kvm-03-guest10 ~]# subscription-manager register 
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: *********
Password: 
The system has been registered with ID: bb9b3a6a-b983-49b1-9e46-8eebc97f7f14
The registered system name is: kvm-03-guest10.lab.eng.rdu2.redhat.com


[root@kvm-03-guest10 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

[root@kvm-03-guest10 ~]# ls /etc/pki/entitlement/
4918109337276806063-key.pem  4918109337276806063.pem

[root@kvm-03-guest10 ~]# rct cc /etc/pki/entitlement/4918109337276806063.pem --no-content

+-------------------------------------------+
	Entitlement Certificate
+-------------------------------------------+

Certificate:
	Path: /etc/pki/entitlement/4918109337276806063.pem
	Version: 3.4
	Serial: 4918109337276806063
	Start Date: 2021-03-26 09:41:48+00:00
	End Date: 2022-03-26 09:41:48+00:00
	Pool ID: Not Available

Subject:
	CN: bb9b3a6a-b983-49b1-9e46-8eebc97f7f14
	O: 6340056

Issuer:
	C: US
	CN: Red Hat Candlepin Authority
	O: Red Hat, Inc.
	OU: Red Hat Network
	ST: North Carolina
	emailAddress: ca-support

Product:
	ID: content_access
	Name:  Content Access
	Version: 
	Arch: 
	Tags: 
	Brand Type: 
	Brand Name: 

Order:
	Name: Content Access
	Number: 
	SKU: content_access
	Contract: 
	Account: 
	Service Type: 
	Roles: 
	Service Level: 
	Usage: 
	Add-ons: 
	Quantity: 
	Quantity Used: 1
	Socket Limit: 
	RAM Limit: 
	Core Limit: 
	Virt Only: False
	Stacking ID: 
	Warning Period: 0
	Provides Management: False

Authorized Content URLs:
	/sca/6340056


[root@kvm-03-guest10 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
7.0
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
7Server
^^ release --list is getting listed now

Comment 5 Shwetha Kallesh 2021-04-08 08:41:44 UTC
Reproducer:

[root@intel-piketon-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.15-1
subscription management rules: 5.41
subscription-manager: 1.24.45-1.el7_9


[root@intel-piketon-01 ~]# rpm -q --changelog subscription-manager | grep 1935592
[root@intel-piketon-01 ~]# subscription-manager register --username ******
Registering to: subscription.rhsm.redhat.com:443/subscription
Password: 
The system has been registered with ID: b91aa4e2-e8f4-4e12-a734-becf2e6d8dc0
The registered system name is: intel-piketon-01.khw1.lab.eng.bos.redhat.com
[root@intel-piketon-01 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled


[root@intel-piketon-01 ~]# subscription-manager release --list
No release versions available, please check subscriptions.

Comment 6 Shwetha Kallesh 2021-04-08 08:42:55 UTC
verification:

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.15-1
subscription management rules: 5.41
subscription-manager: 1.24.46-1.el7_9


[root@hpe-dl380pgen8-02-vm-1 ~]# rpm -q --changelog subscription-manager | grep 1935592
- 1935592: Fix getting releases, when SCA is used (jhnidek)

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager register --username skallesh
Registering to: subscription.rhsm.redhat.com:443/subscription
Password: 
The system has been registered with ID: 7c06915a-93d7-4c20-935b-67345af68948
The registered system name is: hpe-dl380pgen8-02-vm-1.hpe2.lab.eng.bos.redhat.com


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
7.0
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
7Server

Comment 10 errata-xmlrpc 2021-04-27 11:35:33 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-2021:1394


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