Bug 785139 - [activation_key update] better message on subscription not found
Summary: [activation_key update] better message on subscription not found
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
low
medium vote
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-27 12:41 UTC by Garik Khachikyan
Modified: 2019-09-25 21:08 UTC (History)
1 user (show)

Fixed In Version: katello-0.1.231-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:23:13 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 771666 0 medium CLOSED catch candlepin message - system already subscribed 2021-02-22 00:41:40 UTC

Internal Links: 771666

Description Garik Khachikyan 2012-01-27 12:41:01 UTC
Description of problem:
Recent version of Katello returns Candlepin message when there is subscription not found on a try adding something non-existing to the activation key.
---
RestClient::ResourceNotFound: Candlepin::Pool: 404 Resource Not Found {"displayMessage":"Pool with id sds could not be found"} (GET /candlepin/pools/sds)
---

Version-Release number of selected component (if applicable):
katello-cli-0.1.44-1.git.0.4cb9288.el6.noarch
katello-0.1.198-1.git.5.5f27de3.el6.noarch
candlepin-0.5.8-1.el6.noarch


How reproducible:
always

Steps to Reproduce:
1.make an activation key
2.do activation_key update --add_subscription sds --name ak1
3.
  
Actual results:
error described above

Expected results:
better message

Additional info:

Comment 1 Tomas Strachota 2012-02-10 11:40:52 UTC
Fixed in katello-0.1.231-1.
Better formatting of exception messages coming from subsystems added.

Comment 2 Garik Khachikyan 2012-02-15 09:53:31 UTC
# VERIFIED

the scenario on description now returns better formatted message like:
---
Pool with id sds could not be found
---

checked on katello:
---

katello-0.1.237-1.git.7.752d8de.el6.noarch
katello-cli-0.1.54-1.git.79.17c365f.el6.noarch


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