Bug 869575

Summary: changeset update --add_product: "More than 1 product found with the name or label provided ..." - but actually not
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: katello-agentAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED ERRATA QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: asettle, cwelton, dmacpher, mkoci, mmccune, omaciel
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:57:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
katello logs none

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