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 2097672 - [RFE] Improve the error message to users that we ignore attach/auto-attach requests when SCA is enabled.
Summary: [RFE] Improve the error message to users that we ignore attach/auto-attach re...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 8.8
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 2094942
Blocks: 2097670
TreeView+ depends on / blocked
 
Reported: 2022-06-16 09:38 UTC by Rehana
Modified: 2023-05-16 11:10 UTC (History)
7 users (show)

Fixed In Version: subscription-manager-1.28.33-1.el8
Doc Type: Enhancement
Doc Text:
Clone Of: 2094942
Environment:
Last Closed: 2023-05-16 09:07:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 3118 0 None Merged 2097672: [RFE] [1.28] Improve the message, when SCA is enabled 2022-09-08 15:26:29 UTC
Github candlepin subscription-manager pull 3140 0 None Merged 2097672: [1.28] Improve warning message (auto-attach in SCA mode) 2022-10-04 10:49:03 UTC
Github candlepin subscription-manager pull 3145 0 None Merged 2097672: [1.28] Fixed expected message for manual attach case 2022-10-11 15:25:15 UTC
Red Hat Issue Tracker RHELPLAN-125444 0 None None None 2022-06-16 09:50:14 UTC
Red Hat Product Errata RHBA-2023:2984 0 None None None 2023-05-16 09:07:36 UTC

Comment 2 John Sefler 2022-10-05 22:06:20 UTC
Pre-testing (attempts to attach/auto-attach when in sca is enabled should inform us that "Simple Content Access (SCA) is enabled.")....

[root@kvm-06-guest07 ~]# rpm -q subscription-manager
subscription-manager-1.28.32+14.ge536aa0f0-1.git.0.c399668.x86_64

[root@kvm-06-guest07 ~]# rpm -q --changelog subscription-manager | grep 2097672
- 2097672: [1.28] Improve warning message (auto-attach in SCA mode)
- 2097672: [RFE][1.28] Improve the message, when SCA is enabled



CASE register with --auto-attach:

[root@kvm-06-guest07 ~]# subscription-manager register --username=stage_rhsmqe_scauser01 --auto-attach --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Password: 
The system has been registered with ID: 4741e8b1-1891-4eb7-ae20-62e7f1856115
The registered system name is: kvm-06-guest07.hv2.lab.eng.bos.redhat.com
Ignoring the request to auto-attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.

Verified: Tested



CASE attach --auto:

[root@kvm-06-guest07 ~]# subscription-manager  attach --auto
Ignoring the request to auto-attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.

Verified: Tested



Case attach --pool=ID:

[root@kvm-06-guest07 ~]# subscription-manager list --available --pool-only | head -1
2c9456e0825caaa901825e635735039f
[root@kvm-06-guest07 ~]# subscription-manager attach --pool=2c9456e0825caaa901825e635735039f
Ignoring request to attach. It is disabled for org "13267661" because of the content access mode setting.

Verified: FailedQA                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expected:                                                     because Simple Content Access (SCA) is enabled.
or to be more consistent with the auto-attach grammar cases above...
Expected: Ignoring the request to attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.


It looks like the expected message was updated for the auto-attach case, but not the manual attach case.

Comment 3 John Sefler 2022-10-11 18:27:48 UTC
Pre-testing another build...

[root@kvm-01-guest06 ~]# rpm -q subscription-manager
subscription-manager-1.28.32+16.gff72d27f7-1.git.0.34075f9.x86_64

[root@kvm-01-guest06 ~]# rpm -q --changelog subscription-manager | egrep "2094942|2097672"
- 2097672: Fixed expected message for manual attach case (jajerome)
- 2097672: [1.28] Improve warning message (auto-attach in SCA mode)
- 2097672: [RFE][1.28] Improve the message, when SCA is enabled

  ^^^^^^^ Note that the changelog is referencing the depends-on rhel-9.2 target bug 2097672 rather than this rhel-8.8 target bug 2094942.  (It's the same fix for both releases)



CASE register with --auto-attach:

[root@kvm-01-guest06 ~]# subscription-manager register --username=stage_rhsmqe_scauser01 --auto-attach --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Password: 
The system has been registered with ID: 0ee4a388-baf9-4065-8e61-477244399b10
The registered system name is: kvm-01-guest06.lab.eng.rdu2.redhat.com
Ignoring the request to auto-attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.

Verified: Tested



CASE attach --auto:

[root@kvm-01-guest06 ~]# subscription-manager  attach --auto
Ignoring the request to auto-attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.

Verified: Tested



Case attach --pool=ID:

[root@kvm-01-guest06 ~]# subscription-manager list --available --pool-only | head -1
2c9456e0825caaa901825e635735039f
[root@kvm-01-guest06 ~]# subscription-manager attach --pool=2c9456e0825caaa901825e635735039f
Ignoring the request to attach. Attaching subscriptions is disabled for organization "13267661" because Simple Content Access (SCA) is enabled.

Verified: Tested


Verified: Tested all three cases report an improved message that "Attaching subscriptions is disabled...because Simple Content Access (SCA) is enabled."

Comment 4 John Sefler 2022-10-11 18:45:31 UTC
(In reply to John Sefler from comment #3)
> [root@kvm-01-guest06 ~]# rpm -q --changelog subscription-manager | egrep "2094942|2097672"
> - 2097672: Fixed expected message for manual attach case (jajerome)
> - 2097672: [1.28] Improve warning message (auto-attach in SCA mode)
> - 2097672: [RFE][1.28] Improve the message, when SCA is enabled
> 
>   ^^^^^^^ Note that the changelog is referencing the depends-on rhel-9.2 target bug 2097672 rather than this rhel-8.8 target bug 2094942.  (It's the same fix for both releases)

Please disregard that Note from comment #3.  The note is wrong; my eyes are failing.

Comment 12 Zdenek Petracek 2022-11-22 15:56:59 UTC
I reviewed the test results and therefore moving the status to VERIFIED

Comment 15 errata-xmlrpc 2023-05-16 09:07:12 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-2023:2984


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