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 1016615 - Quantity on the All Available Subscriptions tab is not considering all contracts
Summary: Quantity on the All Available Subscriptions tab is not considering all contracts
Keywords:
Status: CLOSED NOTABUG
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: rc
: 7.0
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-10-08 12:13 UTC by Shwetha Kallesh
Modified: 2013-11-06 17:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-06 17:34:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
All available subscriptions Tab (135.23 KB, image/png)
2013-10-08 12:13 UTC, Shwetha Kallesh
no flags Details
Contract selection dialogue (136.09 KB, image/png)
2013-10-08 12:14 UTC, Shwetha Kallesh
no flags Details

Description Shwetha Kallesh 2013-10-08 12:13:19 UTC
Created attachment 809243 [details]
All available subscriptions Tab

Description of problem:
Quantity on the All Available Subscriptions tab is not considering all contracts

Version-Release number of selected component (if applicable):
[root@localhost product]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.29-1
subscription-manager: 1.10.3-1.git.0.c59a391.el7
python-rhsm: 1.10.3-1.git.0.6ac2883.el7


How reproducible:


Steps to Reproduce:
1.[root@localhost product]# subscription-manager list --avail --match-installed 
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Pool ID:           8ac6a3a24197e65a014197e715310d56
Available:         10
Suggested:         10
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              10/08/2014
System Type:       Physical

Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Pool ID:           8ac6a3a24197e65a014197e71b9d1016
Available:         5
Suggested:         5
Service Level:     
Service Type:      
Multi-Entitlement: Yes
Ends:              10/08/2014
System Type:       Physical

[root@localhost product]# subscription-manager attach --pool 8ac6a3a24197e65a014197e71b9d1016 --quantity 2
Successfully attached a subscription for: Awesome OS for x86_64


PS: Attachment

Actual results:


Expected results:


Additional info:

Comment 1 Shwetha Kallesh 2013-10-08 12:14:15 UTC
Created attachment 809244 [details]
Contract selection dialogue

Comment 2 Shwetha Kallesh 2013-10-08 12:15:44 UTC
Expected results: Quantity column should consider all the contracts and should display quantity as 13

Comment 4 Carter Kozak 2013-11-06 17:34:25 UTC
I don't think this is a bug.  I don't think it is particularly clear either.  The suggested quantity is a value for "How many of this pool should I attach."

There is no good way right now for us to give a suggested quantity for one pool based on the assumption that the consumer is also attaching another.

If I see that output, I attach the suggested quantity from one pool.  Once I have made the bind, the suggested quantity of the other pool can change to be more correct for my system, assuming the subscriptions are stackable.

This IS taken into account if you run
subscription-manager attach --pool 8ac6a3a24197e65a014197e715310d56 --pool 8ac6a3a24197e65a014197e71b9d1016

We attach quantity 10 from the first, and 3 from the second, in order to make the system fully compliant.

If you have multiple  available pools, we cannot suggest more quantity than is available, and we cannot suggest a lower quantity for another pool on the assumption that the first will be bound to the system.

Please let me know if you would like more information, or think this should be re-opened.


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