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.

Bug 785139

Summary: [activation_key update] better message on subscription not found
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: katello-agentAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0.0CC: mkoci
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-0.1.231-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:23:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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