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.
Description of problem:
A system that has 2 products installed [0] in below example JBoss is subscribed but not RHEL, so we run `auto --attach` to subscribe the RHEL product which fails while there is a subscription available.
Version-Release number of selected component (if applicable):
Issue also exists with latest subscription-manager on RHEL7 subscription-manager-1.24.13-3.el7_7.x86_64 _AND_ subscription-manager-1.20.10-8.el6.x86_64
see below
# cat /tmp/test.sh
~~~
subscription-manager remove --all
subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4
subscription-manager refresh
subscription-manager attach --auto
subscription-manager list --installed
subscription-manager list --available
~~~
# bash -x /tmp/test.sh
~~~
+ subscription-manager remove --all
2 local certificates have been deleted.
0 subscriptions removed at the server.
+ subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4
Successfully attached a subscription for: Red Hat JBoss Enterprise Application Platform, 64-Core Premium
+ subscription-manager refresh
1 local certificate has been deleted.
All local data refreshed
+ subscription-manager attach --auto
Installed Product Current Status:
Product Name: JBoss Enterprise Application Platform
Status: Subscribed
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
+ subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: JBoss Enterprise Application Platform
Product ID: 183
Version: 7.2
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 09/24/2019
Ends: 09/24/2020
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.7
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
+ subscription-manager list --available
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard
Provides: dotNET on RHEL Beta (for RHEL Server)
Oracle Java (for RHEL Server)
Red Hat Software Collections (for RHEL Server)
Red Hat CodeReady Linux Builder for x86_64
Red Hat Ansible Engine
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Enterprise Linux Atomic Host
Red Hat Developer Tools (for RHEL Server)
Red Hat Beta
Red Hat Software Collections Beta (for RHEL Server)
Red Hat Enterprise Linux Server
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Enterprise Linux for x86_64
Red Hat Developer Toolset (for RHEL Server)
dotNET on RHEL (for RHEL Server)
SKU: RH00052
Contract: 11906284
Pool ID: 8a99f9ad6d5fa32c016d624056e201a6
Provides Management: Yes
Available: 1
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Standard
Starts: 09/24/2019
Ends: 09/24/2020
System Type: Physical
~~~
[0] # subscription-manager list --installed
~~~
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: JBoss Enterprise Application Platform
Product ID: 183
Version: 7.2
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 09/24/2019
Ends: 09/23/2020
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.10
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
~~~
==================
RHEL 6.10
subscription-manager-1.20.10-8.el6.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Have RHEL and JBOSS product installed
2. Start with JBOSS subscription subscribed and RHEL not subscribed
3. Run auto attach
~~~
+ subscription-manager remove --all
2 local certificates have been deleted.
2 subscriptions removed at the server.
+ subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4
Successfully attached a subscription for: Red Hat JBoss Enterprise Application Platform, 64-Core Premium
+ subscription-manager refresh
1 local certificate has been deleted.
All local data refreshed
+ subscription-manager attach --auto
Installed Product Current Status:
Product Name: JBoss Enterprise Application Platform
Status: Subscribed
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed
Unable to find available subscriptions for all your installed products.
+ subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: JBoss Enterprise Application Platform
Product ID: 183
Version: 7.2
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 09/24/2019
Ends: 09/23/2020
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.10
Arch: x86_64
Status: Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
+ subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat JBoss Enterprise Application Platform, 64-Core Premium
Provides: Red Hat JBoss Core Services
JBoss Enterprise Application Platform
JBoss Enterprise Web Server
OpenJDK Java (for Middleware)
Red Hat OpenShift Enterprise JBoss EAP add-on
Red Hat Single Sign-On
Red Hat JBoss AMQ Interconnect
Red Hat JBoss AMQ Clients
Red Hat OpenShift Enterprise JBoss EAP add-on Beta
Red Hat JBoss Data Grid
Red Hat Enterprise MRG Messaging
SKU: MW0161758
Contract: 11906285
Account: 6228330
Serial: 4597521580847159494
Pool ID: 8a99f9ad6d5fa32c016d6240568a01a4
Provides Management: No
Active: True
Quantity Used: 1
Service Level: Premium
Service Type: L1-L3
Status Details: Subscription is current
Subscription Type: Standard
Starts: 09/24/2019
Ends: 09/23/2020
System Type: Physical
+ subscription-manager list --available
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard
Provides: dotNET on RHEL Beta (for RHEL Server)
Oracle Java (for RHEL Server)
Red Hat Software Collections (for RHEL Server)
Red Hat CodeReady Linux Builder for x86_64
Red Hat Ansible Engine
Red Hat Enterprise Linux Atomic Host Beta
Red Hat Enterprise Linux Atomic Host
Red Hat Developer Tools (for RHEL Server)
Red Hat Beta
Red Hat Software Collections Beta (for RHEL Server)
Red Hat Enterprise Linux Server
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Enterprise Linux for x86_64
Red Hat Developer Toolset (for RHEL Server)
dotNET on RHEL (for RHEL Server)
SKU: RH00052
Contract: 11906284
Pool ID: 8a99f9ad6d5fa32c016d624056e201a6
Provides Management: Yes
Available: 1
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Standard
Ends: 09/23/2020
System Type: Physical
~~~
Actual results:
Will not subscribe the RHEL product.
Expected results:
Subscribe the RHEL product
Additional info:
Removing all product subscriptions and running auto attach works.
# subscription-manager remove --all
# subscription-manager attach --auto
# subscription-manager list --installed
# subscription-manager list --consumed
~~~
+ subscription-manager remove --all
1 local certificate has been deleted.
1 subscription removed at the server.
+ subscription-manager attach --auto
Installed Product Current Status:
Product Name: JBoss Enterprise Application Platform
Status: Subscribed
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
+ subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: JBoss Enterprise Application Platform
Product ID: 183
Version: 7.2
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 09/24/2019
Ends: 09/23/2020
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.10
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 09/24/2019
Ends: 09/23/2020
+ subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard
Provides: Red Hat Beta
Red Hat Enterprise Linux Atomic Host
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux Atomic Host Beta
Oracle Java (for RHEL Server)
Red Hat Developer Tools (for RHEL Server)
Red Hat Developer Tools Beta (for RHEL Server)
Red Hat Developer Toolset (for RHEL Server)
Red Hat Software Collections (for RHEL Server)
Red Hat Enterprise Linux for x86_64
Red Hat Software Collections Beta (for RHEL Server)
dotNET on RHEL (for RHEL Server)
dotNET on RHEL Beta (for RHEL Server)
Red Hat Ansible Engine
Red Hat Enterprise Linux Server
SKU: RH00052
Contract: 11906284
Account: 6228330
Serial: 2952545907122676799
Pool ID: 8a99f9ad6d5fa32c016d624056e201a6
Provides Management: Yes
Active: True
Quantity Used: 1
Service Level: Standard
Service Type: L1-L3
Status Details: Subscription is current
Subscription Type: Standard
Starts: 09/24/2019
Ends: 09/23/2020
System Type: Physical
Subscription Name: Red Hat JBoss Enterprise Application Platform, 64-Core Premium
Provides: Red Hat JBoss Core Services
JBoss Enterprise Application Platform
JBoss Enterprise Web Server
OpenJDK Java (for Middleware)
Red Hat OpenShift Enterprise JBoss EAP add-on
Red Hat Single Sign-On
Red Hat JBoss AMQ Interconnect
Red Hat JBoss AMQ Clients
Red Hat OpenShift Enterprise JBoss EAP add-on Beta
Red Hat JBoss Data Grid
Red Hat Enterprise MRG Messaging
SKU: MW0161758
Contract: 11906285
Account: 6228330
Serial: 3425633116092192139
Pool ID: 8a99f9ad6d5fa32c016d6240568a01a4
Provides Management: No
Active: True
Quantity Used: 1
Service Level: Premium
Service Type: L1-L3
Status Details: Subscription is current
Subscription Type: Standard
Starts: 09/24/2019
Ends: 09/23/2020
System Type: Physical
~~~
Auto attach will not mix SLAs once a system has at least one subscription attached with a particular SLA.
More concretely, that Jboss subscription has an SLA of "Premium". Once that Jboss subscription is attached, auto attach will not attach the VDC subscription which is SLA "standard".
To achieve this behaviour we recommend you create an activation key with both of these subscriptions added and set auto-attach to no (or false) for the activation key).
Description of problem: A system that has 2 products installed [0] in below example JBoss is subscribed but not RHEL, so we run `auto --attach` to subscribe the RHEL product which fails while there is a subscription available. Version-Release number of selected component (if applicable): Issue also exists with latest subscription-manager on RHEL7 subscription-manager-1.24.13-3.el7_7.x86_64 _AND_ subscription-manager-1.20.10-8.el6.x86_64 see below # cat /tmp/test.sh ~~~ subscription-manager remove --all subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4 subscription-manager refresh subscription-manager attach --auto subscription-manager list --installed subscription-manager list --available ~~~ # bash -x /tmp/test.sh ~~~ + subscription-manager remove --all 2 local certificates have been deleted. 0 subscriptions removed at the server. + subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4 Successfully attached a subscription for: Red Hat JBoss Enterprise Application Platform, 64-Core Premium + subscription-manager refresh 1 local certificate has been deleted. All local data refreshed + subscription-manager attach --auto Installed Product Current Status: Product Name: JBoss Enterprise Application Platform Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. + subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: JBoss Enterprise Application Platform Product ID: 183 Version: 7.2 Arch: x86_64 Status: Subscribed Status Details: Starts: 09/24/2019 Ends: 09/24/2020 Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 7.7 Arch: x86_64 Status: Not Subscribed Status Details: Not supported by a valid subscription. Starts: Ends: + subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard Provides: dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat Enterprise Linux Atomic Host Beta Red Hat Enterprise Linux Atomic Host Red Hat Developer Tools (for RHEL Server) Red Hat Beta Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server Red Hat Developer Tools Beta (for RHEL Server) Red Hat Enterprise Linux for x86_64 Red Hat Developer Toolset (for RHEL Server) dotNET on RHEL (for RHEL Server) SKU: RH00052 Contract: 11906284 Pool ID: 8a99f9ad6d5fa32c016d624056e201a6 Provides Management: Yes Available: 1 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Standard Starts: 09/24/2019 Ends: 09/24/2020 System Type: Physical ~~~ [0] # subscription-manager list --installed ~~~ +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: JBoss Enterprise Application Platform Product ID: 183 Version: 7.2 Arch: x86_64 Status: Subscribed Status Details: Starts: 09/24/2019 Ends: 09/23/2020 Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.10 Arch: x86_64 Status: Not Subscribed Status Details: Not supported by a valid subscription. Starts: Ends: ~~~ ================== RHEL 6.10 subscription-manager-1.20.10-8.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. Have RHEL and JBOSS product installed 2. Start with JBOSS subscription subscribed and RHEL not subscribed 3. Run auto attach ~~~ + subscription-manager remove --all 2 local certificates have been deleted. 2 subscriptions removed at the server. + subscription-manager attach --pool 8a99f9ad6d5fa32c016d6240568a01a4 Successfully attached a subscription for: Red Hat JBoss Enterprise Application Platform, 64-Core Premium + subscription-manager refresh 1 local certificate has been deleted. All local data refreshed + subscription-manager attach --auto Installed Product Current Status: Product Name: JBoss Enterprise Application Platform Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. + subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: JBoss Enterprise Application Platform Product ID: 183 Version: 7.2 Arch: x86_64 Status: Subscribed Status Details: Starts: 09/24/2019 Ends: 09/23/2020 Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.10 Arch: x86_64 Status: Not Subscribed Status Details: Not supported by a valid subscription. Starts: Ends: + subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat JBoss Enterprise Application Platform, 64-Core Premium Provides: Red Hat JBoss Core Services JBoss Enterprise Application Platform JBoss Enterprise Web Server OpenJDK Java (for Middleware) Red Hat OpenShift Enterprise JBoss EAP add-on Red Hat Single Sign-On Red Hat JBoss AMQ Interconnect Red Hat JBoss AMQ Clients Red Hat OpenShift Enterprise JBoss EAP add-on Beta Red Hat JBoss Data Grid Red Hat Enterprise MRG Messaging SKU: MW0161758 Contract: 11906285 Account: 6228330 Serial: 4597521580847159494 Pool ID: 8a99f9ad6d5fa32c016d6240568a01a4 Provides Management: No Active: True Quantity Used: 1 Service Level: Premium Service Type: L1-L3 Status Details: Subscription is current Subscription Type: Standard Starts: 09/24/2019 Ends: 09/23/2020 System Type: Physical + subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard Provides: dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat CodeReady Linux Builder for x86_64 Red Hat Ansible Engine Red Hat Enterprise Linux Atomic Host Beta Red Hat Enterprise Linux Atomic Host Red Hat Developer Tools (for RHEL Server) Red Hat Beta Red Hat Software Collections Beta (for RHEL Server) Red Hat Enterprise Linux Server Red Hat Developer Tools Beta (for RHEL Server) Red Hat Enterprise Linux for x86_64 Red Hat Developer Toolset (for RHEL Server) dotNET on RHEL (for RHEL Server) SKU: RH00052 Contract: 11906284 Pool ID: 8a99f9ad6d5fa32c016d624056e201a6 Provides Management: Yes Available: 1 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Standard Ends: 09/23/2020 System Type: Physical ~~~ Actual results: Will not subscribe the RHEL product. Expected results: Subscribe the RHEL product Additional info: Removing all product subscriptions and running auto attach works. # subscription-manager remove --all # subscription-manager attach --auto # subscription-manager list --installed # subscription-manager list --consumed ~~~ + subscription-manager remove --all 1 local certificate has been deleted. 1 subscription removed at the server. + subscription-manager attach --auto Installed Product Current Status: Product Name: JBoss Enterprise Application Platform Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Subscribed + subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: JBoss Enterprise Application Platform Product ID: 183 Version: 7.2 Arch: x86_64 Status: Subscribed Status Details: Starts: 09/24/2019 Ends: 09/23/2020 Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.10 Arch: x86_64 Status: Subscribed Status Details: Starts: 09/24/2019 Ends: 09/23/2020 + subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Standard Provides: Red Hat Beta Red Hat Enterprise Linux Atomic Host Red Hat CodeReady Linux Builder for x86_64 Red Hat Enterprise Linux Atomic Host Beta Oracle Java (for RHEL Server) Red Hat Developer Tools (for RHEL Server) Red Hat Developer Tools Beta (for RHEL Server) Red Hat Developer Toolset (for RHEL Server) Red Hat Software Collections (for RHEL Server) Red Hat Enterprise Linux for x86_64 Red Hat Software Collections Beta (for RHEL Server) dotNET on RHEL (for RHEL Server) dotNET on RHEL Beta (for RHEL Server) Red Hat Ansible Engine Red Hat Enterprise Linux Server SKU: RH00052 Contract: 11906284 Account: 6228330 Serial: 2952545907122676799 Pool ID: 8a99f9ad6d5fa32c016d624056e201a6 Provides Management: Yes Active: True Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Subscription is current Subscription Type: Standard Starts: 09/24/2019 Ends: 09/23/2020 System Type: Physical Subscription Name: Red Hat JBoss Enterprise Application Platform, 64-Core Premium Provides: Red Hat JBoss Core Services JBoss Enterprise Application Platform JBoss Enterprise Web Server OpenJDK Java (for Middleware) Red Hat OpenShift Enterprise JBoss EAP add-on Red Hat Single Sign-On Red Hat JBoss AMQ Interconnect Red Hat JBoss AMQ Clients Red Hat OpenShift Enterprise JBoss EAP add-on Beta Red Hat JBoss Data Grid Red Hat Enterprise MRG Messaging SKU: MW0161758 Contract: 11906285 Account: 6228330 Serial: 3425633116092192139 Pool ID: 8a99f9ad6d5fa32c016d6240568a01a4 Provides Management: No Active: True Quantity Used: 1 Service Level: Premium Service Type: L1-L3 Status Details: Subscription is current Subscription Type: Standard Starts: 09/24/2019 Ends: 09/23/2020 System Type: Physical ~~~