Bug 908671
| Summary: | RFE: include pool id in list --consumed | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Marian Ganisin <mganisin> |
| Component: | subscription-manager | Assignee: | Alex Wood <awood> |
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.10 | CC: | awood, bgollahe, fsharath, jgalipea, jsefler, mmccune |
| Target Milestone: | beta | Keywords: | FutureFeature |
| Target Release: | 5.10 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: |
No description necessary
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-30 22:55:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 840995, 920191 | ||
|
Description
Marian Ganisin
2013-02-07 10:09:56 UTC
+1 from me, really makes it hard to see which pool you originally subscribed to if --consumed doesn't show it. 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.
# 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. 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." 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. 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 |