Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
DescriptionGarik Khachikyan
2012-01-04 14:37:01 UTC
Description of problem:
There is recently displaying the whole Candlepin error stack on the `system subscribe --pool` when the system is already subscribed to that pool.
Version-Release number of selected component (if applicable):
katello-cli-0.1.31-1.fc16.noarch
How reproducible:
always
Steps to Reproduce:
1.subscribe a system to Katello through cli
2.try to resubscribe to the same pool
3.
Actual results:
RestClient::Forbidden: Candlepin::Consumer: 403 Forbidden {"displayMessage":"This consumer is already subscribed to the product matching pool with id '8aa2a25f34a8110b0134a8629b52001f'."} (POST /candlepin/consumers/07d0be5f-d996-4c41-a6ae-ba3d7943678c/entitlements?pool=8aa2a25f34a8110b0134a8629b52001f&quantity=1)
Expected results:
Better error back like: This consumer is already subscribed to the product matching pool with id '8aa2a25f34a8110b0134a8629b52001f'
Additional info:
Hi Tomas. Is this the expected behavior?
# subscription-manager register --force --username=mbloomberg --password=*****
The system with UUID d01360f2-6a86-4cbd-a36d-6ebe7349f86e has been unregistered
The system has been registered with id: 152e4bbe-02fd-4d69-bfab-927737f96249
# subscription-manager register --username=mbloomberg --password=*****
This system is already registered. Use --force to override
Hi,
this bug was in katello cli. Following commands test the behavior:
# katello system register --name devsys
Successfully registered System [ devsys ]
# katello system subscribe --name devsys --pool POOL_ID
Successfully subscribed System [ devsys ]
# katello system subscribe --name devsys --pool POOL_ID
This consumer is already subscribed to the product matching pool with id 'POOL_ID'.
Command should print only "displayMessage" part of the hash from the bug description.
# VERIFIED
and the scenario on command#3 gets fixed.
I confirm - a message like: "This consumer is already subscribed to the product matching pool with id 'ff808081357edc0e013580891ece0114'." getting displayed now.
checked against:
---
katello-0.1.237-1.git.7.752d8de.el6.noarch
katello-cli-0.1.54-1.git.79.17c365f.el6.noarch
candlepin-0.5.17-1.el6.noarch
pulp-0.0.265-1.el6.noarch
Description of problem: There is recently displaying the whole Candlepin error stack on the `system subscribe --pool` when the system is already subscribed to that pool. Version-Release number of selected component (if applicable): katello-cli-0.1.31-1.fc16.noarch How reproducible: always Steps to Reproduce: 1.subscribe a system to Katello through cli 2.try to resubscribe to the same pool 3. Actual results: RestClient::Forbidden: Candlepin::Consumer: 403 Forbidden {"displayMessage":"This consumer is already subscribed to the product matching pool with id '8aa2a25f34a8110b0134a8629b52001f'."} (POST /candlepin/consumers/07d0be5f-d996-4c41-a6ae-ba3d7943678c/entitlements?pool=8aa2a25f34a8110b0134a8629b52001f&quantity=1) Expected results: Better error back like: This consumer is already subscribed to the product matching pool with id '8aa2a25f34a8110b0134a8629b52001f' Additional info: