Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1924921

Summary: Simple Content Access to Portal, EUS not working without manually attaching sub
Product: Red Hat Enterprise Linux 8 Reporter: Tim Quinlan <tquinlan>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: urgent    
Version: 8.2CC: csnyder, jhnidek, jsefler, lmiksik, redakkan, rjerrido, sgajendr, skallesh, sshashi, tquinlan
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: subscription-manager-1.28.13-2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1935592 1937660 2044629 2175879 2175880 (view as bug list) Environment:
Last Closed: 2023-02-07 08:47:27 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:
Bug Depends On:    
Bug Blocks: 1903942, 1935592, 1937660, 2044629, 2175879, 2175880    

Description Tim Quinlan 2021-02-03 21:46:56 UTC
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 Shwetha Kallesh 2021-03-09 14:49:44 UTC
Reproducer:

[root@kvm-05-guest10 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.13-1
subscription management rules: 5.41
subscription-manager: 1.28.13-1.el8

[root@kvm-05-guest10 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_testuser
Password: 
The system has been registered with ID: f5cdd680-2354-4fd4-b901-fff9a84d4d83
The registered system name is: kvm-05-guest10.hv2.lab.eng.bos.redhat.com
[root@kvm-05-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-05-guest10 ~]# ls /etc/pki/entitlement/
5592403310338695224-key.pem  5592403310338695224.pem
[root@kvm-05-guest10 ~]# subscription-manager release --list

No release versions available, please check subscriptions.

Comment 2 Shwetha Kallesh 2021-03-09 14:56:40 UTC
pre-Verification:

[root@kvm-05-guest10 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.13-1
subscription management rules: 5.41
subscription-manager: 1.28.13-1.git.7.eec03d4.el8


[root@kvm-05-guest10 ~]# subscription-manager register --force --username stage_auto_testuser
Unregistering from: subscription.rhsm.stage.redhat.com:443/subscription
The system with UUID 4cbdb712-8a67-4c15-9bb3-38b2af2eb0b2 has been unregistered
All local data removed
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Password: 
The system has been registered with ID: 8304b81e-ca3e-4dd8-b0c4-7215a4b33557
The registered system name is: kvm-05-guest10.hv2.lab.eng.bos.redhat.com
[root@kvm-05-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-05-guest10 ~]# ls /etc/pki/entitlement/
6103473912482509759-key.pem  6103473912482509759.pem
[root@kvm-05-guest10 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
8
8.0
8.1
8.2
8.3
8.4
^^ observe that release --list shows all the release versions available without attaching any subscription

Comment 8 Shwetha Kallesh 2021-03-26 14:04:44 UTC
Verification:
[root@kvm-03-guest06 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.11-1
subscription management rules: 5.41
subscription-manager: 1.28.13-2.el8


[root@kvm-03-guest06 ~]# subscription-manager register --serverurl subscription.rhsm.redhat.com
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: *******
Password: 
The system has been registered with ID: 601c3171-e034-40c7-b9d6-5a157c6513d4
The registered system name is: kvm-03-guest06.lab.eng.rdu2.redhat.com

[root@kvm-03-guest06 ~]# cat /etc/rhsm/rhsm.conf | grep cdn
baseurl = https://cdn.redhat.com


[root@kvm-03-guest06 ~]# 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-guest06 ~]# subscription-manager release --list
+-------------------------------------------+
          Available Releases
+-------------------------------------------+
8
8.0
8.1
8.2
8.3
^^ release version list

Comment 10 errata-xmlrpc 2021-05-18 13:34:32 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:1575