Bug 834311 - Wrong Pool Id in "subscription-manager list --available"
Summary: Wrong Pool Id in "subscription-manager list --available"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Katello
Classification: Retired
Component: Webservice API
Version: 1.X
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Eric Helms
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-21 13:59 UTC by Hayk Hovsepyan
Modified: 2012-12-17 20:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-17 20:27:56 UTC
Embargoed:
mmccune: needinfo+


Attachments (Terms of Use)

Description Hayk Hovsepyan 2012-06-21 13:59:50 UTC
Description of problem:
When executing "subscription-manager list --available" it shows result with wrong "Pool Id" value.

Version-Release number of selected component (if applicable):
katello-certs-tools-1.1.6-1.el6.noarch
katello-glue-foreman-0.2.41-1.el6.noarch
qpid-cpp-server-0.14-14.el6_2.x86_64
pulp-1.1.10-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-0.2.41-1.el6.noarch
qpid-cpp-client-0.14-14.el6_2.x86_64
pulp-selinux-server-1.1.10-1.el6.noarch
mod_wsgi-3.3-3.pulp.el6.x86_64
python-qpid-0.14-7.el6_2.noarch
katello-glue-pulp-0.2.41-1.el6.noarch
candlepin-0.5.32-1.el6.noarch
qpid-cpp-server-ssl-0.14-14.el6_2.x86_64
katello-0.2.41-1.el6.noarch
katello-configure-0.2.26-1.el6.noarch
candlepin-tomcat6-0.5.32-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-cli-common-0.2.40-1.el6.noarch
katello-cli-0.2.40-1.el6.noarch
m2crypto-0.21.1.pulp-7.el6.x86_64
python-oauth2-1.5.170-2.pulp.el6.noarch
katello-common-0.2.41-1.el6.noarch
qpid-cpp-client-ssl-0.14-14.el6_2.x86_64
katello-selinux-0.2.5-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-agent-1.0.3-1.el6.noarch
katello-repos-0.2.4-1.el6.noarch
pulp-common-1.1.10-1.el6.noarch


How reproducible:
always

Steps to Reproduce:
1. Register consumer to katello by CLI "subscription-manager register --username admin --password admin --org $orgname --environment $env --name $name"
2. Now try to list available subscriptions by CLI "subscription-manager list --available". You will see there that the "Pool Id:" field value is not the correct one.
3. Try to subscribe to this pool by CLI "subscription-manager subscribe --pool $poolid". You will see that this "pool Id" is invalid. By WebUI you can see which is the correct pool Id.
  
Actual results:
Wrong Pool Id value is returned in step 2.

Expected results:
Correct Pool Id value in step 2.

Additional info:
On CFSE it works OK.

Comment 1 Pavel Pokorny 2012-07-18 12:56:20 UTC
Subscription manager print wrong id. Candlepin send pool id in 'id' parameter and subscription manager print 'productId' which is different.

Comment 2 Mike McCune 2012-09-05 15:24:50 UTC
what version of subscription-manager are you using?

Comment 3 Pavel Pokorny 2012-09-06 07:51:17 UTC
Not working with:

# subscription-manager version
remote entitlement server: Unknown
subscription-manager: 1.0.3-1.fc16
python-rhsm: 1.0.2-1.fc16

Updated to:

# subscription-manager version
remote entitlement server: Unknown
remote entitlement server type: subscription management service
subscription-manager: 1.0.13-1.fc16
python-rhsm: 1.0.5-1.fc16

And it is fixed! subscription-manager list --available shows correct Pool Id and the productId is labelled SKU.


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