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 1831104 - When in Simple Content Access mode, subscription-manager should not complain that subscriptions aren't attached
Summary: When in Simple Content Access mode, subscription-manager should not complain ...
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
medium
high
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
: 1913479 (view as bug list)
Depends On: 1815624
Blocks: 1825061
TreeView+ depends on / blocked
 
Reported: 2020-05-04 16:13 UTC by Rehana
Modified: 2024-03-25 15:53 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1815624
Environment:
Last Closed: 2020-09-29 19:23:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:23:45 UTC

Description Rehana 2020-05-04 16:13:46 UTC
+++ This bug was initially created as a clone of Bug #1815624 +++

Description of problem:


When in Simple Content Access mode, subscription-manager should not complain that subscriptions aren't attached. 



How reproducible:
100%



Steps to Reproduce:
1. Configure your organization to use org_environment mode
2. register a node with subscription-manager. 
3. do not attach a subscription and enable one or more repos


Actual results:

When running yum commands you get:

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions

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

Expected results:
No such output as it is confusing to users. 

Additional info:

Comment 4 Shwetha Kallesh 2020-05-13 06:51:53 UTC
Reproducer:

[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.11-1
subscription management rules: 5.40
subscription-manager: 1.24.26-1.el7


[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager register --serverurl shwetha-workstation.usersys.redhat.com:8443/candlepin --force
Registering to: shwetha-workstation.usersys.redhat.com:8443/candlepin
Username: admin
Password: 
Organization: snowwhite
The system has been registered with ID: 6bb8c570-8019-46b1-9147-3cf1fdfd8a87
The registered system name is: ibm-x3650m4-01-vm-16.ibm2.lab.eng.bos.redhat.com


[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Organization/Environment Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager list --consumed
No consumed subscription pools were found.

[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   100000000000000-awesomeos
Repo Name: 100000000000000-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000000
Enabled:   0

Repo ID:   99001-awesomeos-ia64
Repo Name: 99001-awesomeos-ia64
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/ia64/99001
Enabled:   0

Repo ID:   1000000000000023-awesomeos
Repo Name: 1000000000000023-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/1000000000000023
Enabled:   0

Repo ID:   100000000000003-awesomeos
Repo Name: 100000000000003-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000003
Enabled:   0

Repo ID:   1-never-enabled-content
Repo Name: 1-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/1
Enabled:   0

Repo ID:   37060-never-enabled-content
Repo Name: 37060-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/37060
Enabled:   0

Repo ID:   6051-snowy-content-label
Repo Name: 6051-snowy-content
Repo URL:  https://cdn.redhat.com/snowwhite/snowy/foo/path/common/6051
Enabled:   0

Repo ID:   1000000000000023-never-enabled-content
Repo Name: 1000000000000023-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/1000000000000023
Enabled:   0

Repo ID:   213412341237-never-enabled-content
Repo Name: 213412341237-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/213412341237
Enabled:   0

Repo ID:   100000000000060-never-enabled-content
Repo Name: 100000000000060-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/100000000000060
Enabled:   0

Repo ID:   100000000000002-never-enabled-content
Repo Name: 100000000000002-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/100000000000002
Enabled:   0

Repo ID:   100000000000005-awesomeos-i686
Repo Name: 100000000000005-awesomeos-i686
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/i686/100000000000005
Enabled:   0

Repo ID:   100000000000060-awesomeos
Repo Name: 100000000000060-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000060
Enabled:   0

Repo ID:   1000000000000023-awesomeos-x86_64
Repo Name: 1000000000000023-awesomeos-x86_64
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023
Enabled:   0

[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager repos --enable 1000000000000023-awesomeos-x86_64
Repository '1000000000000023-awesomeos-x86_64' is enabled for this system.
[root@ibm-x3650m4-01-vm-16 ~]# yum repolist --disablerepo=beaker*
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
^^ the confusing message

https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
repo id                                                                                                             repo name                                                                                                           status
1000000000000023-awesomeos-x86_64                                                                                   1000000000000023-awesomeos-x86_64                                                                                   0
repolist: 0

Comment 5 Shwetha Kallesh 2020-05-13 06:57:30 UTC
Verification:

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.11-1
subscription management rules: 5.40
subscription-manager: 1.24.37

[root@hpe-dl380pgen8-02-vm-1 ~]#subscription-manager register --serverurl shwetha-workstation.usersys.redhat.com:8443/candlepin --force
Unregistering from: shwetha-workstation.usersys.redhat.com:8443/candlepin
The system with UUID 782c2f91-c5d4-4992-9014-ec8dc7d2369c has been unregistered
All local data removed
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: 766b31a9-300c-43b1-b1d1-793f14ab1860
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 list --consumed
No consumed subscription pools were found.


[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   100000000000060-awesomeos-s390x
Repo Name: 100000000000060-awesomeos-s390x
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/s390x/100000000000060
Enabled:   0

Repo ID:   99000-awesomeos-ppc64
Repo Name: 99000-awesomeos-ppc64
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/ppc64/99000
Enabled:   0

Repo ID:   100000000000020-awesomeos
Repo Name: 100000000000020-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000020
Enabled:   0

Repo ID:   99006-awesomeos
Repo Name: 99006-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/99006
Enabled:   0

Repo ID:   100000000000000-awesomeos
Repo Name: 100000000000000-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000000
Enabled:   0

Repo ID:   99001-awesomeos-ia64
Repo Name: 99001-awesomeos-ia64
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/ia64/99001
Enabled:   0

Repo ID:   1000000000000023-awesomeos
Repo Name: 1000000000000023-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/1000000000000023
Enabled:   0

Repo ID:   100000000000003-awesomeos
Repo Name: 100000000000003-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000003
Enabled:   0

Repo ID:   1-never-enabled-content
Repo Name: 1-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/1
Enabled:   0

Repo ID:   37060-never-enabled-content
Repo Name: 37060-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/37060
Enabled:   0

Repo ID:   6051-snowy-content-label
Repo Name: 6051-snowy-content
Repo URL:  https://cdn.redhat.com/snowwhite/snowy/foo/path/common/6051
Enabled:   0

Repo ID:   1000000000000023-never-enabled-content
Repo Name: 1000000000000023-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/1000000000000023
Enabled:   0

Repo ID:   213412341237-never-enabled-content
Repo Name: 213412341237-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/213412341237
Enabled:   0

Repo ID:   100000000000060-never-enabled-content
Repo Name: 100000000000060-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/100000000000060
Enabled:   0

Repo ID:   100000000000002-never-enabled-content
Repo Name: 100000000000002-never-enabled-content
Repo URL:  https://cdn.redhat.com/snowwhite/foo/path/never_enabled/100000000000002
Enabled:   0

Repo ID:   100000000000005-awesomeos-i686
Repo Name: 100000000000005-awesomeos-i686
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/i686/100000000000005
Enabled:   0

Repo ID:   100000000000060-awesomeos
Repo Name: 100000000000060-awesomeos
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/generic/awesomeos/100000000000060
Enabled:   0

Repo ID:   1000000000000023-awesomeos-x86_64
Repo Name: 1000000000000023-awesomeos-x86_64
Repo URL:  https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023
Enabled:   0

[root@hpe-dl380pgen8-02-vm-1 ~]# subscription-manager repos --enable 1000000000000023-awesomeos-x86_64
Repository '1000000000000023-awesomeos-x86_64' is enabled for this system.



[root@hpe-dl380pgen8-02-vm-1 ~]# yum repolist --disablerepo=beaker*
Loaded plugins: product-id, search-disabled-repos, subscription-manager                      
^^ observe the message "This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions." is not displayed anymore

https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

https://cdn.redhat.com/snowwhite/path/to/awesomeos/x86_64/1000000000000023/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
repo id                                                                                                             repo name                                                                                                           status
1000000000000023-awesomeos-x86_64                                                                                   1000000000000023-awesomeos-x86_64                                                                                   0
repolist: 0

Comment 7 errata-xmlrpc 2020-09-29 19:23:08 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 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:3866

Comment 8 Craig Donnelly 2021-08-19 14:04:40 UTC
*** Bug 1913479 has been marked as a duplicate of this bug. ***


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