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 845600 - Suggested quantities are incorrect for stacking subscriptions
Summary: Suggested quantities are incorrect for stacking subscriptions
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
unspecified
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-08-03 14:38 UTC by J.C. Molet
Modified: 2014-06-18 00:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 11:55:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
quantity bug (70.02 KB, image/png)
2012-08-03 14:39 UTC, J.C. Molet
no flags Details
quantity os subscriptions when partially subscribed (1023.81 KB, image/png)
2013-11-08 16:47 UTC, Sharath Dwaral
no flags Details

Description J.C. Molet 2012-08-03 14:38:40 UTC
Description of problem:
In subscription-manager-gui when you are manually subscribing to subscriptions, the gui gives a suggested default quantity in order to become compliant.

For example if you have 8 sockets, and you have a stackable subscription that provides for 2 sockets each, the suggested default quantity would be 4.  If you are then already subscribed to two, the suggested default quantity would be 2.

This works for single subscriptions, but when you have multiple stacking subscriptions the default quantity calculation does not consider other subscriptions (within the same stacking_id group) when you are partially subscribed.

Version-Release number of selected component (if applicable):
subscription-manager-1.0.12-1.git.9.871cb04.el5
subscription-manager-gui-1.0.12-1.git.9.871cb04.el5
python-rhsm-1.0.4-1.git.7.47e5112.el5

How reproducible:
always

Steps to Reproduce:
(Have a rhel5.9 system with the rhel sever product - 69.pem installed)
1.echo '{"cpu.cpu_socket(s)":"8"}' > /etc/rhsm/facts/sockets.facts
2.[root@jmolet-vm0 product]# grep . /etc/rhsm/rhsm.conf | grep -v \# | head -4
[server]
hostname=subscription.rhn.stage.redhat.com
prefix=/subscription
port=443
3. subscription-manager register --username=stacking-stage --password=redhat
4. in the gui, partially subscribe to one of the stackable subscriptions titled: 

Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up to 4 guests)

5. 'Update' your search list in "all available subscriptions", with all filters off

Actual results:
If you subscribed with a quanity of 2 subscriptions in step 4, only the subscription with the same SKU will have an updated suggested quantity.  The other subscription (different SKU) that is stackable with your current subscription will not have an updated suggested quantity.  It will still suggest you subscribe to 4 subscriptions.  You would then be oversubscribing.  See screenshot in next comment.

Expected results:
The suggested quantities for all subscriptions with the same stacking-id would be updated upon every subscribe.

Additional info:

Comment 1 J.C. Molet 2012-08-03 14:39:16 UTC
Created attachment 602143 [details]
quantity bug

screenshot for comment 0

Comment 2 RHEL Program Management 2012-08-03 14:48:33 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 RHEL Program Management 2012-12-14 08:47:22 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 Carter Kozak 2013-09-09 19:04:57 UTC
commit 12b5879bbf1b873ba349364cd2b10821bd07059c
Author: ckozak <ckozak>
Date:   Mon Sep 9 12:52:58 2013 -0400

    845600, 996672: fix suggested quantities

Comment 7 Sharath Dwaral 2013-11-08 16:47:49 UTC
Created attachment 821708 [details]
quantity os subscriptions when partially subscribed

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

Verification:
# subscription-manager facts --list | grep "cpu_socket(s)"
cpu.cpu_socket(s): 20

# 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:            2817593470809605432
Pool ID:           8a8d01e04238017101423801f34b0664
Active:            True
Quantity Used:     1
Service Level:     Premium
Service Type:      Level 3
Status Details:    Only covers 2 of 20 sockets.    <------  Partial subscription
Starts:            11/07/2013
Ends:              11/07/2014
System Type:       Physical

It can be seen from the attachment that, subscriptions with the same SKU decrease in number accordingly when partially subscribed.

Other subscriptions which are stackable with it but have different SKUs are not affected.

VERIFIED

Comment 8 Ludek Smid 2014-06-13 11:55:54 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.