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 827173 - cannot autosubscribe in the gui when partially subscribed
Summary: cannot autosubscribe in the gui when partially subscribed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta
: 7.0
Assignee: Carter Kozak
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2012-05-31 19:55 UTC by J.C. Molet
Modified: 2014-06-18 00:21 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:29:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
partial-auto (216.81 KB, image/png)
2012-05-31 20:00 UTC, J.C. Molet
no flags Details
What's wrong with this picture? (55.89 KB, image/png)
2012-08-02 20:55 UTC, John Sefler
no flags Details
partial-auto-bind (1.43 MB, image/png)
2013-11-08 18:19 UTC, Sharath Dwaral
no flags Details

Description J.C. Molet 2012-05-31 19:55:29 UTC
Description of problem:
When partially subscribed, you cannot use the auto-subscribe feature at all in the gui even though you should be able to.

Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.99.19-1.git.0.99a87e8.el6.x86_64
python-rhsm-0.99.12-1.git.1.6f89979.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. set up your product cert dir with a product that has associated subscriptions that are multi-subscribable/stackable
2. set your cpu.cpu_socket(s) to a number greater than those subscriptions provide
3. subscribe to one of those subscriptions in a way that you are only partially subscribed
4. in the subscription-manager-gui, click on "Auto-subscribe"

**NOTE: providing specific replication in following comment.
  
Actual results:
See screen shot.

You get an error saying that you are in full compliance.

Expected results:
You are allowed to auto-subscribe as normal.

Additional info:

Comment 2 J.C. Molet 2012-05-31 20:00:44 UTC
Created attachment 588184 [details]
partial-auto

screen shot

Comment 4 RHEL Program Management 2012-06-04 05:47:48 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 Devan Goodwin 2012-06-08 16:31:20 UTC
While opening up the wizard to run when in yellow state, we quickly hit problems with what to do if the system has no SLA preference set, and the wizard tries to get them to choose one. 

Previously logic was a valid SLA is any which provides access to all red products.

Clearly this doesn't work if we only have yellow products. It's also complicated because we shouldn't choose an SLA if it has no bearing on the SLA of existing entitlements.

Decision made to alter the behavior for the more generic situation where we have no SLA set on the system, but there are existing entitlements. (i.e. we're yellow, or we're red but have some products green) 

In this situation, we will check the existing entitlements for their SLAs, ignoring any which have no SLA. 

If there is only one SLA present, we will assume we can use this, set it on the system, and proceed as if they had selected it.

If multiple SLAs are present on current entitlements, we will error out, they must manually subscribe.

If no SLAs are present (i.e. all entitlements do not have an SLA), we assume this system should have no SLA, and do a normal non-SLA autobind as if from the CLI.

As requested in the bug, the autosub wizard should be allowed to run when in overall yellow state.

The user should never be prompted to choose an SLA if they have existing entitlements.


Currently the situation described in this bug can be worked around via the normal healing mechanism, or via the CLI autosubscribe. Because of the scope of the fix required, we will not pursue this fix for 6.3.z.

Comment 6 John Sefler 2012-08-02 20:55:45 UTC
Created attachment 602019 [details]
What's wrong with this picture?

This bug continues to be present in rhel59 and was re-discovered during a Test Day focused on entitlement stacking.

[root@jsefler-rhel59 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.0.11-1.git.11.4d6cb5a.el5

Comment 9 Carter Kozak 2013-09-09 15:31:32 UTC
I threw in a patch for this a while back, should work as expected now.

Comment 11 Sharath Dwaral 2013-11-08 18:19:19 UTC
Created attachment 821735 [details]
partial-auto-bind

Version

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.31-1
subscription-manager: 1.10.6-1.el7
python-rhsm: 1.10.6-1.el7

Before Auto-Bind

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Multi-Attribute Stackable (2 sockets)
Provides:          Multi-Attribute Limited Product
SKU:               sock2-multiattr
Contract:          2
Account:           12331131231
Serial:            7897029266099970173
Pool ID:           8a8d01e04238017101423801f34b0664
Active:            True
Quantity Used:     1
Service Level:     Premium
Service Type:      Level 3
Status Details:    Only covers 2 of 20 sockets.
Starts:            11/07/2013
Ends:              11/07/2014
System Type:       Physical


After Auto-Bind

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Multi-Attribute Stackable (2 sockets)
Provides:          Multi-Attribute Limited Product
SKU:               sock2-multiattr
Contract:          2
Account:           12331131231
Serial:            7897029266099970173
Pool ID:           8a8d01e04238017101423801f34b0664
Active:            True
Quantity Used:     1
Service Level:     Premium
Service Type:      Level 3
Status Details:    
Starts:            11/07/2013
Ends:              11/07/2014
System Type:       Physical

Subscription Name: Multi-Attribute Stackable (2 sockets)
Provides:          Multi-Attribute Limited Product
SKU:               sock2-multiattr
Contract:          3
Account:           12331131231
Serial:            8305956965275179001
Pool ID:           8a8d01e04238017101423801f26a061b
Active:            True
Quantity Used:     9
Service Level:     Premium
Service Type:      Level 3
Status Details:    
Starts:            11/07/2013
Ends:              11/07/2014
System Type:       Physical


Also see attachment for GUI verification


VERIFIED

Comment 12 Ludek Smid 2014-06-13 09:29:47 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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