Bug 741564

Summary: product create with --url: discovery produces list of repos doubled
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: katello-agentAssignee: Garik Khachikyan <gkhachik>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.1CC: mkoci
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 17:58:59 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:
Bug Depends On:    
Bug Blocks: 747354    

Description Garik Khachikyan 2011-09-27 09:56:04 UTC
Description of problem:
the mode when Katello CLI product create gets provided with --url (discover mode) the list of repos found are listed actually doubled (each repo 2 times).

One can try: 
product create --provider provider_yum --org org1 --name product1 --url http://repos.fedorapeople.org/repos/pulp/pulp/

Version-Release number of selected component (if applicable):
katello-cli-0.1.10-1.git.300.19ad8f0.el6.noarch
katello-0.1.83-1.git.48.02111ba.fc15.noarch
pulp-0.0.233-1.fc15.noarch

How reproducible:
always

Steps to Reproduce:
1. see above
2.
3.
  
Actual results:
repositories listed twice 

Expected results:
unique repository list in --url option


Additional info:

Comment 2 Garik Khachikyan 2012-01-13 11:38:01 UTC
# VERIFIED

The list of repos now is not doubled. Proper count of repositories are creating as well.

checked against:
katello-0.1.174-2.el6.noarch
katello-cli-0.1.34-2.el6.noarch
pulp-0.0.256-1.el6.noarch
candlepin-0.5.8-1.el6.noarch

---
katello> product create --provider provider_yum --org ACME_Corporation --name product3 --url http://repos.fedorapeople.org/repos/pulp/pulp/6Server/
Successfully created product [ product3 ]
Discovering repository urls, this could take some time...
(-)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

Select urls for which candidate repos should be created; use `y` to confirm (h for help):1
(+)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

Select urls for which candidate repos should be created; use `y` to confirm (h for help):1
(+)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(-)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

Select urls for which candidate repos should be created; use `y` to confirm (h for help):2
(+)  [1] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/x86_64
(+)  [2] http://repos.fedorapeople.org/repos/pulp/pulp/6Server/i386

Select urls for which candidate repos should be created; use `y` to confirm (h for help):y
Successfully created repository [ product3_repos_pulp_pulp_6Server_x86_64 ]
Successfully created repository [ product3_repos_pulp_pulp_6Server_i386 ]

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