Bug 908671 - RFE: include pool id in list --consumed
Summary: RFE: include pool id in list --consumed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: Alex Wood
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-02-07 10:09 UTC by Marian Ganisin
Modified: 2013-09-30 22:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:55:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description Marian Ganisin 2013-02-07 10:09:56 UTC
Description of problem:

Command:

# subscription-manager list --consumed

Does not report pool id as it is visible in output of:

# subscription-manager list --available

Version-Release number of selected component (if applicable):
subscription-manager-0.99.19-1.el6

Expected results:
pool id part of output for each consumed subscription

Comment 2 Mike McCune 2013-02-07 19:08:10 UTC
+1 from me, really makes it hard to see which pool you originally subscribed to if --consumed doesn't show it.

Comment 3 Alex Wood 2013-02-28 19:35:37 UTC
This fix required commits to three different code bases.

python-rhsm:
commit 41d9aa21c9879f35a71961226e477fec20faa183
Author: Alex Wood <awood>
Date:   Fri Feb 15 16:33:31 2013 -0500

    908671: Adding pool id to entitlement certificate.

subscription-manager:
commit 9d00dba6916ab209c2b02414fde02455df6a7873
Author: Alex Wood <awood>
Date:   Mon Feb 18 15:57:31 2013 -0500

    908671: Display the pool ID when available.

Candlepin:
commit 6353204d889e93059064ead98eed57f9636b24d6
Author: Alex Wood <awood>
Date:   Tue Feb 19 13:46:21 2013 -0500

    908671: Add pool ID to entitlement certificate.

Comment 4 Sharath Dwaral 2013-03-11 19:04:19 UTC
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-firstboot-1.8.4-1.el7.x86_64
python-rhsm-1.8.7-1.el7.x86_64
subscription-manager-gui-1.8.4-1.el7.x86_64
subscription-manager-migration-1.8.4-1.el7.x86_64
subscription-manager-1.8.4-1.el7.x86_64
subscription-manager-debuginfo-1.8.4-1.el7.x86_64

# subscription-manager list --available
This system is not yet registered. Try 'subscription-manager register --help' for more information.
# subscription-manager list --consumed
No consumed subscription pools to list

# subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
[root@dhcp129-175 sub-man]# subscription-manager register
Username: *****
Password: *****
Organization: ****
The system has been registered with id: 6b60f402-7e34-434d-accb-c36a98575d20 

# subscription-manager subscribe --pool=8a90f8243d494504013d494618d506a2
Successfully attached a subscription for: Awesome OS for x86_64
# subscription-manager subscribe --pool=8a90f8243d494504013d49461e50081c
Successfully attached a subscription for: Awesome OS Server Basic
# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+

Subscription Name: Awesome OS for x86_64
Provides:          Awesome OS for x86_64 Bits
SKU:               awesomeos-x86_64
Contract:          74
Account:           12331131231
Serial Number:     4299516961585399936
Pool ID:           Not Available
Active:            True
Quantity Used:     1
Service Level:     
Service Type:      
Starts:            03/07/2013
Ends:              03/07/2014

Subscription Name: Awesome OS Server Basic
Provides:          Awesome OS Server Bits
SKU:               awesomeos-server-basic
Contract:          15
Account:           12331131231
Serial Number:     7745735905546137152
Pool ID:           Not Available
Active:            True
Quantity Used:     1
Service Level:     None
Service Type:      Self-Support
Starts:            03/07/2013
Ends:              03/07/2014


The pool ID field in subscription-maanger list --consumed is still not populated.

QA failed.

Comment 5 Alex Wood 2013-03-12 15:06:45 UTC
What version of Candlepin were you running against?  Including the pool ID in the certificate required a change to Candlepin.  If the pool ID is not present in the entitlement certificate, subscription-manager will report the pool ID as "Not Available."

Comment 6 John Sefler 2013-04-26 13:38:03 UTC
As stated in comment 5, since the entitlement granted by the old version of candlepin used in comment 4 did not contain the poolId, then the subscription-manager list consumed report will show the poolId as "Not Available".  Thanks for verifying that this is working as designed.


Veriying Version against a newer candlepin...
[root@jsefler-5 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.4-1
subscription-manager: 1.8.6-1.el5
python-rhsm: 1.8.8-1.el5


[root@jsefler-5 ~]# subscription-manager list --avail | grep "Pool ID:" | head -1
Pool ID:           8a90f8313e31f6dd013e31f8147b033f
[root@jsefler-5 ~]# subscription-manager subscribe --pool 8a90f8313e31f6dd013e31f8147b033f
Successfully attached a subscription for: Multi-Attribute (non-stackable) (24 cores, 6 sockets, 8GB RAM)
[root@jsefler-5 ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+

Subscription Name: Multi-Attribute (non-stackable) (24 cores, 6 sockets, 8GB
                   RAM)
Provides:          Multi-Attribute Limited Product
SKU:               non-stacked-multiattr
Contract:          211
Account:           12331131231
Serial Number:     368236347555326308
Pool ID:           8a90f8313e31f6dd013e31f8147b033f      <===== VERIFIED match from subscribe transaction 
Active:            True
Quantity Used:     1
Service Level:     Super
Service Type:      Level 3
Starts:            04/21/2013
Ends:              04/21/2014

[root@jsefler-5 ~]# 

VERIFIED: The list of consumed subscriptions now reports the poolId from which the subscription entitlement was granted.

Comment 9 errata-xmlrpc 2013-09-30 22:55:52 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1332.html


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