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 869575 - changeset update --add_product: "More than 1 product found with the name or label provided ..." - but actually not
Summary: changeset update --add_product: "More than 1 product found with the name or l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-24 10:06 UTC by Garik Khachikyan
Modified: 2019-09-25 20:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The request to the server for the product was not including the product "name" query parameter. As a result, the server returned all products resulting in the error. This bug fix corrects an issue with command line interface when the user would updates the changeset. The error no longer appears.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:57:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
katello logs (1.19 MB, application/x-gzip)
2012-10-24 10:06 UTC, Garik Khachikyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1543 0 normal SHIPPED_LIVE Important: CloudForms System Engine 1.1 update 2012-12-05 00:39:57 UTC

Description Garik Khachikyan 2012-10-24 10:06:59 UTC
Created attachment 632675 [details]
katello logs

Description of problem:
Recent puddle provided contains a regression issue on doing `changeset update --add_product`. It throws:
---
More than 1 product found with the name or label provided, recommend using product id.  The product id may be retrieved using the 'product list' command.
---

Version-Release number of selected component (if applicable):


How reproducible:
always on recent puddle

Steps to Reproduce:
do following on CLI
---
org create --name test1
client remember --option org --value test1
environment create --name testing --prior Library
provider create --name provider1
provider create --name provider2
product create --name product1 --provider provider1
product create --name product2 --provider provider2
repo create --name repo1 --product product1 --url http://inecas.fedorapeople.org/fakerepos/zoo3/
repo create --name repo2 --product product2 --url http://inecas.fedorapeople.org/fakerepos/zoo3/
changeset create --name cs1 --environment testing
changeset update --add_product product1 --name cs1 --environment testing

  
Actual results:
error (see above)

Expected results:
no errors should be thrown - as the product name are REALLY different (product1 != product2)

Additional info:
see logs tarball

Comment 1 Og Maciel 2012-10-24 13:11:03 UTC
Also tried this same scenario using the web ui and was successful, so this seems to affect the cli only apparently.

Comment 2 Mike McCune 2012-10-25 14:39:00 UTC
https://github.com/Katello/katello/pull/913

Comment 5 Corey Welton 2012-10-29 18:35:38 UTC
QE verified:

[root@se-rhelbox ~]# katello --user admin --password admin changeset create --name cs1 --environment testing
Successfully created changeset [ cs1 ] for environment [ testing ]
[root@se-rhelbox ~]# katello --user admin --password admin changeset update --add_product product1 --name cs1 --environment testing
Successfully updated changeset [ cs1 ]


CloudForms System Engine Version: 1.1.12-18.el6cf

Comment 7 errata-xmlrpc 2012-12-04 19:57:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1543.html

Comment 8 Mike McCune 2013-08-16 17:55:40 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.