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 723226 - Output of the provider commands use id instead of name
Summary: Output of the provider commands use id instead of name
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-07-19 13:07 UTC by Bryan Kearney
Modified: 2019-09-25 21:27 UTC (History)
2 users (show)

Fixed In Version: katello-0.1.64-1~3^2~2^2~10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 17:50:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bryan Kearney 2011-07-19 13:07:46 UTC
The API takes name, however...

When you delete a provider with a name, the return message is "Deleted provider [id]"

When the manifest update fails, the id is used in the error message and not the name.

if we go with name, lets use name in all communications with the user.

Comment 1 Ivan Necas 2011-08-15 10:22:28 UTC
Fixed in commit 9698bd8.

Comment 2 Sachin Ghai 2011-12-27 06:32:56 UTC
Verified with following katello build:

[root@dhcp201-197 ~]# rpm -qa | grep katello
katello-glue-pulp-0.1.155-1.el6.noarch
katello-configure-0.1.48-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-cli-common-0.1.31-1.el6.noarch
katello-glue-foreman-0.1.155-1.el6.noarch
katello-common-0.1.155-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-0.1.155-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-repos-0.1.4-1.el6.noarch
katello-cli-0.1.31-1.el6.noarch
katello-glue-candlepin-0.1.155-1.el6.noarch
katello-all-0.1.155-1.el6.noarch
katello-certs-tools-1.0.1-1.el6.noarch


katello> provider create --name rhel --org ACME_Corporation
Successfully created provider [ rhel ]
katello> provider delete --name rhel --org ACME_Corporation
Deleted provider [ rhel ]
katello> 
 
Output of delete provider uses name instead of 'id', so moving this to verified.

Comment 3 Sachin Ghai 2011-12-27 06:35:49 UTC
In case of manifest import failure, provider name is used 'Red Hat'.

katello> provider import_manifest --org sghai_org --name "Red Hat" --file /root/stageSamTestSimple20Nov2011.zip
Importing manifest, please wait... Manifest import for provider [ Red Hat ]
failed, Candlepin::Owner: 409 Conflict {"displayMessage":"Import is older than
existing data"} (POST /candlepin/owners/sghai_org/imports)

Comment 6 Mike McCune 2013-08-16 18:16:27 UTC
getting rid of 6.0.0 version since that doesn't exist


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