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 1826300 - When user tries to auto-attach on a system(registered to org that has 'Content Access Mode' is set to 'Simple Content Access') throw appropriate message [rhel-7.9.z]
Summary: When user tries to auto-attach on a system(registered to org that has 'Conten...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.9
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
: 1703928 (view as bug list)
Depends On:
Blocks: 1831082
TreeView+ depends on / blocked
 
Reported: 2020-04-21 11:58 UTC by Shwetha Kallesh
Modified: 2024-03-25 15:50 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1831082 (view as bug list)
Environment:
Last Closed: 2020-12-15 11:20:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2333 0 None closed 1826300: Ignore auto-attach, when SCA mode is used 2021-05-14 13:04:34 UTC
Github candlepin subscription-manager pull 2353 0 None closed 1826300: Better messages for attach --auto for SCA mode; ENT-3175 2021-05-14 13:04:34 UTC
Red Hat Knowledge Base (Solution) 6960960 0 None None None 2022-05-27 12:06:55 UTC

Description Shwetha Kallesh 2020-04-21 11:58:22 UTC
Description of problem:

When user tries to auto-attach on a system(registered to org that has 'Content Access Mode' is set to 'Simple Content Access') throw appropriate message 

Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-11 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.10-1
subscription management rules: 5.39
subscription-manager: 1.24.34


How reproducible:


Steps to Reproduce:
[root@ibm-x3650m4-01-vm-11 ~]# subscription-manager attach --auto
All installed products are covered by valid entitlements. No need to update subscriptions at this time.


Actual results:
All installed products are covered by valid entitlements. No need to update subscriptions at this time.

Expected results:
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.


Additional info:

[root@ibm-x3650m4-01-vm-11 ~]# subscription-manager register --org snowwhite --username admin --password admin --force --auto-attach 
Unregistering from: shwetha-workstation.usersys.redhat.com:8443/candlepin
The system with UUID 57a9408e-849f-4dfc-b6ab-88a0228862f9 has been unregistered
All local data removed
Registering to: shwetha-workstation.usersys.redhat.com:8443/candlepin
The system has been registered with ID: cf22f089-e6d3-4e03-90a8-125202ce1a62
The registered system name is: ibm-x3650m4-01-vm-11.ibm2.lab.eng.bos.redhat.com
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.

Comment 2 Rehana 2020-04-24 15:01:55 UTC
Hi Shwetha, 

Have you attached any other subscriptions aside from the simple content access mode provided entitlements ? 

thanks,
Rehana

Comment 3 Shwetha Kallesh 2020-04-28 09:52:07 UTC
[root@hpe-ml350egen8-01 ~]# subscription-manager register --serverurl shwetha-workstation.usersys.redhat.com:8443/candlepin
Registering to: shwetha-workstation.usersys.redhat.com:8443/candlepin
Username: admin
Password: 
Hint: User "admin" is member of following organizations: donaldduck, admin, snowwhite
Organization: snowwhite
The system has been registered with ID: 69377c74-28c3-4781-a55e-e8444b09c73e
The registered system name is: hpe-ml350egen8-01.hpe2.lab.eng.bos.redhat.com
[root@hpe-ml350egen8-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

You have new mail in /var/spool/mail/root
[root@hpe-ml350egen8-01 ~]# subscription-manager list --avail
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Multi-Attribute Stackable (2 GB, 2 Cores, no content)
Provides:            Multi-Attribute Limited Product (no content)
SKU:                 2cores-2ram-multiattr
Contract:            0
Pool ID:             8ac6a34171ab82420171ab837db104b6
Provides Management: No
Available:           5
Suggested:           5
Service Type:        Level 3
Roles:               
Service Level:       Premium
Usage:               
Add-ons:             
Subscription Type:   Stackable
Starts:              04/23/2020
Ends:                04/23/2021
Entitlement Type:    Physical

Subscription Name:   SP Starter Pack (S: Premium, R: SP Starter)
Provides:            SP Server Bits
                     SP Starter Pack Bits
SKU:                 sp-starter-pack
Contract:            1
Pool ID:             8ac6a34171ab82420171ab8384c906aa
Provides Management: Yes
Available:           10
Suggested:           1
Service Type:        L1-L3
Roles:               SP Starter
Service Level:       Premium
Usage:               
Add-ons:             
Subscription Type:   Standard
Starts:              04/23/2020
Ends:                04/23/2021
Entitlement Type:    Physical

[root@hpe-ml350egen8-01 ~]# subscription-manager attach --pool 8ac6a34171ab82420171ab8384c906aa
Successfully attached a subscription for: SP Starter Pack (S: Premium, R: SP Starter)
[root@hpe-ml350egen8-01 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   SP Starter Pack (S: Premium, R: SP Starter)
Provides:            SP Starter Pack Bits
                     SP Server Bits
SKU:                 sp-starter-pack
Contract:            1
Account:             12331131231
Serial:              4720399004538979106
Pool ID:             8ac6a34171ab82420171ab8384c906aa
Provides Management: Yes
Active:              True
Quantity Used:       1
Service Type:        L1-L3
Roles:               SP Starter
Service Level:       Premium
Usage:               
Add-ons:             
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              04/23/2020
Ends:                04/23/2021
Entitlement Type:    Physical

[root@hpe-ml350egen8-01 ~]# ls /etc/pki/entitlement/
4720399004538979106-key.pem  4720399004538979106.pem  5707616291560907015-key.pem  5707616291560907015.pem

Comment 7 Rehana 2020-10-06 14:01:23 UTC
*** Bug 1703928 has been marked as a duplicate of this bug. ***

Comment 8 Archana Pandey 2020-10-19 11:39:53 UTC
Reproducer: 
[root@ibm-x3650m4-01-vm-12 /]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.24.42-1.el7
[root@ibm-x3650m4-01-vm-12 /]# 

[root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --username ***** --password ***** --org snowwhite
Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin
The system has been registered with ID: 663b49bc-3161-4daf-938b-ade98576281b
The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com
[root@ibm-x3650m4-01-vm-12 /]# 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@ibm-x3650m4-01-vm-12 /]# subscription-manager attach --auto
All installed products are covered by valid entitlements. No need to update subscriptions at this time.
[root@ibm-x3650m4-01-vm-12 /]#               ^^^^^^^-----info that should be updated with expected result

=============================================================================

Verifying fix on : subscription-manager-1.24.43-1.el7_9.x86_64

[root@ibm-x3650m4-01-vm-12 /]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.24.43-1.el7_9

[root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --username ***** --password ***** --org snowwhite
Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin
The system has been registered with ID: 6b5fec12-3cc3-4a8d-b550-7583094428d9
The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com
[root@ibm-x3650m4-01-vm-12 /]# 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@ibm-x3650m4-01-vm-12 /]# subscription-manager attach --auto
Ignoring request to auto-attach. It is disabled for organization: "Snow White", because Simple Content Access is in use.
[root@ibm-x3650m4-01-vm-12 /]#                                        ^^---mismatch in org name, better would be snowwhite


Actual results:
Ignoring request to auto-attach. It is disabled for organization: "Snow White", because Simple Content Access is in use.

Expected results:
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.

Comment 9 Archana Pandey 2020-10-19 11:45:38 UTC
Additional info for Comment 8 :
[root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --org snowwhite --username ***** --password ***** --force --auto-attach
Unregistering from: archana-candlepin.usersys.redhat.com:8443/candlepin
The system with UUID 44e7bf77-ce72-4f4c-9eb0-d3acfd36f634 has been unregistered
All local data removed
Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin
The system has been registered with ID: 5014e93f-df36-4b11-8378-b98c50935848
The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.
[root@ibm-x3650m4-01-vm-12 /]#   ^^^----info incase of --auto-attach

Comment 14 Archana Pandey 2020-11-26 08:13:08 UTC
Verifying on subscription-manager-1.24.45-1.el7_9.x86_64

Version-Release number of selected component (if applicable):

[root@kvm-02-guest14 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.24.45-1.el7_9
[root@kvm-02-guest14 ~]#

Verification Steps:
[root@kvm-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# rpm -qa --changelog  subscription-manager | grep 1826300
- 1826300: Better messages for attach --auto for SCA mode; ENT-3175
- 1826300: Ignore auto-attach, when SCA mode is used
[root@kvm-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# subscription-manager register --username ****** --password *****  --org snowwhite --serverurl archana-candlepin.usersys.redhat.com:8443/candlepin
Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin
The system has been registered with ID: 35fb1487-e93b-440b-9391-e6f2c607a92e
The registered system name is: kvm-02-guest14.hv2.lab.eng.bos.redhat.com
[root@kvm-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# 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-02-guest14 ~]# 
[root@kvm-02-guest14 ~]# subscription-manager attach --auto
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.
[root@kvm-02-guest14 ~]# 


Actual Results:
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.

Expected Results:
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.

Comment 18 errata-xmlrpc 2020-12-15 11:20:20 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-2020:5452


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