Hide Forgot
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:
Fixed in katello-0.1.231-1. Better formatting of exception messages coming from subsystems added.
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